com.onewebsql.dao
Class QueryFetchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.onewebsql.dao.QueryFetchException
All Implemented Interfaces:
Serializable

public class QueryFetchException
extends RuntimeException

Exception thrown when an SQL query returned the number of rows which is not expected. This exception usually indicates an inconsistency between the database schema and the generated DAO objects.

See Also:
Serialized Form

Constructor Summary
QueryFetchException(String message, SelectObjectListResult<? extends Object> fetchResult)
          Constructor.
 
Method Summary
 SelectObjectListResult<? extends Object> getFetchResult()
          Returns the query result.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryFetchException

public QueryFetchException(String message,
                           SelectObjectListResult<? extends Object> fetchResult)
Constructor.

Parameters:
message - exception message
fetchResult - result of a query.
Method Detail

getFetchResult

public SelectObjectListResult<? extends Object> getFetchResult()
Returns the query result.

Returns:
query result.


Copyright © 2011-2013 e-point SA. All Rights Reserved.