it.eng.qbe.model
Class BasicStatement

java.lang.Object
  extended by it.eng.qbe.model.BasicStatement
All Implemented Interfaces:
IStatement
Direct Known Subclasses:
CopyOfHQLStatement, HQLStatement

public abstract class BasicStatement
extends java.lang.Object
implements IStatement

The Class BasicStatement.

Author:
Andrea Gioia

Constructor Summary
protected BasicStatement(IDataMartModel dataMartModel)
          Instantiates a new basic statement.
protected BasicStatement(IDataMartModel dataMartModel, IQuery 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.
 IQuery 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(IQuery 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.IStatement
execute, execute, execute, execute, executeWithPagination, executeWithPagination, executeWithPagination, getQueryString
 

Constructor Detail

BasicStatement

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

Parameters:
dataMartModel - the data mart model

BasicStatement

protected BasicStatement(IDataMartModel dataMartModel,
                         IQuery 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: IStatement
Gets the query string.

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

getDataMartModel

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

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

getQuery

public IQuery getQuery()
Description copied from interface: IStatement
Gets the query.

Specified by:
getQuery in interface IStatement
Returns:
the query

setQuery

public void setQuery(IQuery query)
Description copied from interface: IStatement
Sets the query.

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

getFetchSize

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

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

setFetchSize

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

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

getMaxResults

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

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

setMaxResults

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

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

getOffset

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

Specified by:
getOffset in interface IStatement
Returns:
the offset

setOffset

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

Specified by:
setOffset in interface IStatement
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: IStatement
Sets the parameters.

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