it.eng.qbe.model
Class XBasicStatement

java.lang.Object
  extended by it.eng.qbe.model.XBasicStatement
All Implemented Interfaces:
XIStatement
Direct Known Subclasses:
XHQLStatement

public abstract class XBasicStatement
extends java.lang.Object
implements XIStatement

The Class BasicStatement.

Author:
Andrea Gioia

Constructor Summary
protected XBasicStatement(IDataMartModel dataMartModel)
          Instantiates a new basic statement.
protected XBasicStatement(IDataMartModel dataMartModel, Query query)
          Instantiates a new basic statement.
 
Method Summary
 IDataMartModel getDataMartModel()
          Gets the data mart model.
 int getFetchSize()
          Gets the fetch size.
 int getMaxResults()
          Gets the max results.
 int getOffset()
          Gets the offset.
 java.util.Map getParameters()
          Gets the parameters.
 Query getQuery()
          Gets the query.
 java.lang.String getQueryString()
          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(Query query)
          Sets the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.qbe.model.XIStatement
execute, execute, execute, execute, executeWithPagination, executeWithPagination, executeWithPagination, getQueryString
 

Constructor Detail

XBasicStatement

protected XBasicStatement(IDataMartModel dataMartModel)
Instantiates a new basic statement.

Parameters:
dataMartModel - the data mart model

XBasicStatement

protected XBasicStatement(IDataMartModel dataMartModel,
                          Query query)
Instantiates a new basic statement.

Parameters:
dataMartModel - the data mart model
query - the query
Method Detail

getQueryString

public java.lang.String getQueryString()
Description copied from interface: XIStatement
Gets the query string.

Specified by:
getQueryString in interface XIStatement
Returns:
the query string

getDataMartModel

public IDataMartModel getDataMartModel()
Description copied from interface: XIStatement
Gets the data mart model.

Specified by:
getDataMartModel in interface XIStatement
Returns:
the data mart model

getQuery

public Query getQuery()
Description copied from interface: XIStatement
Gets the query.

Specified by:
getQuery in interface XIStatement
Returns:
the query

setQuery

public void setQuery(Query query)
Description copied from interface: XIStatement
Sets the query.

Specified by:
setQuery in interface XIStatement
Parameters:
query - the new query

getFetchSize

public int getFetchSize()
Description copied from interface: XIStatement
Gets the fetch size.

Specified by:
getFetchSize in interface XIStatement
Returns:
the fetch size

setFetchSize

public void setFetchSize(int fetchSize)
Description copied from interface: XIStatement
Sets the fetch size.

Specified by:
setFetchSize in interface XIStatement
Parameters:
fetchSize - the new fetch size

getMaxResults

public int getMaxResults()
Description copied from interface: XIStatement
Gets the max results.

Specified by:
getMaxResults in interface XIStatement
Returns:
the max results

setMaxResults

public void setMaxResults(int maxResults)
Description copied from interface: XIStatement
Sets the max results.

Specified by:
setMaxResults in interface XIStatement
Parameters:
maxResults - the new max results

getOffset

public int getOffset()
Description copied from interface: XIStatement
Gets the offset.

Specified by:
getOffset in interface XIStatement
Returns:
the offset

setOffset

public void setOffset(int offset)
Description copied from interface: XIStatement
Sets the offset.

Specified by:
setOffset in interface XIStatement
Parameters:
offset - the new offset

getParameters

public java.util.Map getParameters()
Gets the parameters.

Returns:
the parameters

setParameters

public void setParameters(java.util.Map parameters)
Description copied from interface: XIStatement
Sets the parameters.

Specified by:
setParameters in interface XIStatement
Parameters:
parameters - the new parameters