it.eng.qbe.model
Class XHQLStatement

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

public class XHQLStatement
extends XBasicStatement

The Class HQLStatement.


Nested Class Summary
static interface XHQLStatement.IConditionalOperator
           
 
Field Summary
static java.util.Map conditionalOperators
           
 
Constructor Summary
protected XHQLStatement(IDataMartModel dataMartModel)
           
protected XHQLStatement(IDataMartModel dataMartModel, Query query)
           
 
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(Query 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(Query query, java.util.Map parameters, int pageNumber, int pageSize, int maxResults)
          Execute with pagination.
 java.lang.String getQueryString(Query query)
           
 java.lang.String getQueryString(Query query, java.util.Map parameters)
          Gets the query string.
 
Methods inherited from class it.eng.qbe.model.XBasicStatement
getDataMartModel, getFetchSize, getMaxResults, getOffset, getParameters, getQuery, getQueryString, setFetchSize, setMaxResults, setOffset, setParameters, setQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conditionalOperators

public static java.util.Map conditionalOperators
Constructor Detail

XHQLStatement

protected XHQLStatement(IDataMartModel dataMartModel)

XHQLStatement

protected XHQLStatement(IDataMartModel dataMartModel,
                        Query query)
Method Detail

getQueryString

public java.lang.String getQueryString(Query query)

getQueryString

public java.lang.String getQueryString(Query query,
                                       java.util.Map parameters)
                                throws java.io.IOException
Description copied from interface: XIStatement
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.

execute

public it.eng.spago.base.SourceBean execute(int offset,
                                            int fetchSize)
                                     throws java.lang.Exception
Description copied from interface: XIStatement
Execute.

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

execute

public it.eng.spago.base.SourceBean execute(int offset)
                                     throws java.lang.Exception
Description copied from interface: XIStatement
Execute.

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

execute

public it.eng.spago.base.SourceBean execute()
                                     throws java.lang.Exception
Description copied from interface: XIStatement
Execute.

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

execute

public it.eng.spago.base.SourceBean execute(Query query,
                                            java.util.Map parameters,
                                            int offset,
                                            int fetchSize,
                                            int maxResults)
                                     throws java.lang.Exception
Description copied from interface: XIStatement
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

public it.eng.spago.base.SourceBean executeWithPagination(int offset,
                                                          int fetchSize,
                                                          int maxResults)
                                                   throws java.lang.Exception
Description copied from interface: XIStatement
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

executeWithPagination

public it.eng.spago.base.SourceBean executeWithPagination(int pageNumber,
                                                          int pageSize)
                                                   throws java.lang.Exception
Description copied from interface: XIStatement
Execute with pagination.

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

executeWithPagination

public it.eng.spago.base.SourceBean executeWithPagination(Query query,
                                                          java.util.Map parameters,
                                                          int pageNumber,
                                                          int pageSize,
                                                          int maxResults)
                                                   throws java.lang.Exception
Description copied from interface: XIStatement
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