it.eng.qbe.model
Interface IStatement

All Known Implementing Classes:
BasicStatement, CopyOfHQLStatement, HQLStatement

public interface IStatement

The Interface IStatement.

Author:
Andrea Gioia

Method Summary
 it.eng.spago.base.SourceBean execute()
          Execute.
 it.eng.spago.base.SourceBean execute(int offset)
          Execute.
 it.eng.spago.base.SourceBean execute(int offset, int fetchSize)
          Execute.
 it.eng.spago.base.SourceBean execute(IQuery query, java.util.Map parameters, int offset, int fetchSize, int maxResults)
          Execute.
 it.eng.spago.base.SourceBean executeWithPagination(int pageNumber, int pageSize)
          Execute with pagination.
 it.eng.spago.base.SourceBean executeWithPagination(int offset, int fetchSize, int maxResults)
          Execute with pagination.
 it.eng.spago.base.SourceBean executeWithPagination(IQuery query, java.util.Map parameters, int pageNumber, int pageSize, int maxResults)
          Execute with pagination.
 IDataMartModel getDataMartModel()
          Gets the data mart model.
 int getFetchSize()
          Gets the fetch size.
 int getMaxResults()
          Gets the max results.
 int getOffset()
          Gets the offset.
 IQuery getQuery()
          Gets the query.
 java.lang.String getQueryString()
          Gets the query string.
 java.lang.String getQueryString(IQuery query, java.util.Map parameters)
          Gets the query string.
 void setFetchSize(int fetchSize)
          Sets the fetch size.
 void setMaxResults(int maxResults)
          Sets the max results.
 void setOffset(int offset)
          Sets the offset.
 void setParameters(java.util.Map parameters)
          Sets the parameters.
 void setQuery(IQuery query)
          Sets the query.
 

Method Detail

setQuery

void setQuery(IQuery query)
Sets the query.

Parameters:
query - the new query

getQuery

IQuery getQuery()
Gets the query.

Returns:
the query

getQueryString

java.lang.String getQueryString()
Gets the query string.

Returns:
the query string

getQueryString

java.lang.String getQueryString(IQuery query,
                                java.util.Map parameters)
                                throws java.io.IOException
Gets the query string.

Parameters:
query - the query
parameters - the parameters
Returns:
the query string
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

getDataMartModel

IDataMartModel getDataMartModel()
Gets the data mart model.

Returns:
the data mart model

getFetchSize

int getFetchSize()
Gets the fetch size.

Returns:
the fetch size

setFetchSize

void setFetchSize(int fetchSize)
Sets the fetch size.

Parameters:
fetchSize - the new fetch size

getMaxResults

int getMaxResults()
Gets the max results.

Returns:
the max results

setMaxResults

void setMaxResults(int maxResults)
Sets the max results.

Parameters:
maxResults - the new max results

getOffset

int getOffset()
Gets the offset.

Returns:
the offset

setOffset

void setOffset(int offset)
Sets the offset.

Parameters:
offset - the new offset

setParameters

void setParameters(java.util.Map parameters)
Sets the parameters.

Parameters:
parameters - the new parameters

execute

it.eng.spago.base.SourceBean execute()
                                     throws java.lang.Exception
Execute.

Returns:
the source bean
Throws:
java.lang.Exception - the exception

execute

it.eng.spago.base.SourceBean execute(int offset)
                                     throws java.lang.Exception
Execute.

Parameters:
offset - the offset
Returns:
the source bean
Throws:
java.lang.Exception - the exception

execute

it.eng.spago.base.SourceBean execute(int offset,
                                     int fetchSize)
                                     throws java.lang.Exception
Execute.

Parameters:
offset - the offset
fetchSize - the fetch size
Returns:
the source bean
Throws:
java.lang.Exception - the exception

execute

it.eng.spago.base.SourceBean execute(IQuery query,
                                     java.util.Map parameters,
                                     int offset,
                                     int fetchSize,
                                     int maxResults)
                                     throws java.lang.Exception
Execute.

Parameters:
query - the query
parameters - the parameters
offset - the offset
fetchSize - the fetch size
maxResults - the max results
Returns:
the source bean
Throws:
java.lang.Exception - the exception

executeWithPagination

it.eng.spago.base.SourceBean executeWithPagination(int pageNumber,
                                                   int pageSize)
                                                   throws java.lang.Exception
Execute with pagination.

Parameters:
pageNumber - the page number
pageSize - the page size
Returns:
the source bean
Throws:
java.lang.Exception - the exception

executeWithPagination

it.eng.spago.base.SourceBean executeWithPagination(IQuery query,
                                                   java.util.Map parameters,
                                                   int pageNumber,
                                                   int pageSize,
                                                   int maxResults)
                                                   throws java.lang.Exception
Execute with pagination.

Parameters:
query - the query
parameters - the parameters
pageNumber - the page number
pageSize - the page size
maxResults - the max results
Returns:
the source bean
Throws:
java.lang.Exception - the exception

executeWithPagination

it.eng.spago.base.SourceBean executeWithPagination(int offset,
                                                   int fetchSize,
                                                   int maxResults)
                                                   throws java.lang.Exception
Execute with pagination.

Parameters:
offset - the offset
fetchSize - the fetch size
maxResults - the max results
Returns:
the source bean
Throws:
java.lang.Exception - the exception