|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.qbe.model.BasicStatement
it.eng.qbe.model.HQLStatement
public class HQLStatement
The Class HQLStatement.
Field Summary | |
---|---|
static java.lang.String |
CONTAINS
The Constant CONTAINS. |
static java.lang.String |
ENDS_WITH
The Constant ENDS_WITH. |
static java.lang.String |
EQUALS_OR_GREATER_THAN
The Constant EQUALS_OR_GREATER_THAN. |
static java.lang.String |
EQUALS_OR_LESS_THAN
The Constant EQUALS_OR_LESS_THAN. |
static java.lang.String |
EQUALS_TO
The Constant EQUALS_TO. |
static java.lang.String |
GREATER_THAN
The Constant GREATER_THAN. |
static java.lang.String |
IS_NULL
The Constant IS_NULL. |
static java.lang.String |
LESS_THAN
The Constant LESS_THAN. |
static java.lang.String |
NOT_CONTAINS
The Constant NOT_CONTAINS. |
static java.lang.String |
NOT_ENDS_WITH
The Constant NOT_ENDS_WITH. |
static java.lang.String |
NOT_EQUALS_TO
The Constant NOT_EQUALS_TO. |
static java.lang.String |
NOT_NULL
The Constant NOT_NULL. |
static java.lang.String |
NOT_STARTS_WITH
The Constant NOT_STARTS_WITH. |
static java.lang.String |
STARTS_WITH
The Constant STARTS_WITH. |
Constructor Summary | |
---|---|
protected |
HQLStatement(IDataMartModel dataMartModel)
Instantiates a new hQL statement. |
protected |
HQLStatement(IDataMartModel dataMartModel,
IQuery query)
Instantiates a new hQL statement. |
Method Summary | |
---|---|
java.lang.String |
buildFromClause(IQuery query)
Builds the from clause. |
java.lang.String |
buildGroupByClause(IQuery query)
Builds the group by clause. |
java.lang.String |
buildOrderByClause(IQuery query)
Builds the order by clause. |
java.lang.String |
buildWhereClause(IQuery query)
Builds the where clause. |
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. |
java.lang.String |
getQueryString(IQuery query)
Gets the query string. |
java.lang.String |
getQueryString(IQuery query,
java.util.Map parameters)
Gets the query string. |
Methods inherited from class it.eng.qbe.model.BasicStatement |
---|
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 |
---|
public static final java.lang.String EQUALS_TO
public static final java.lang.String NOT_EQUALS_TO
public static final java.lang.String GREATER_THAN
public static final java.lang.String EQUALS_OR_GREATER_THAN
public static final java.lang.String LESS_THAN
public static final java.lang.String EQUALS_OR_LESS_THAN
public static final java.lang.String STARTS_WITH
public static final java.lang.String NOT_STARTS_WITH
public static final java.lang.String ENDS_WITH
public static final java.lang.String NOT_ENDS_WITH
public static final java.lang.String NOT_NULL
public static final java.lang.String IS_NULL
public static final java.lang.String CONTAINS
public static final java.lang.String NOT_CONTAINS
Constructor Detail |
---|
protected HQLStatement(IDataMartModel dataMartModel)
dataMartModel
- the data mart modelprotected HQLStatement(IDataMartModel dataMartModel, IQuery query)
dataMartModel
- the data mart modelquery
- the queryMethod Detail |
---|
public java.lang.String buildFromClause(IQuery query)
query
- the query
public java.lang.String buildWhereClause(IQuery query)
query
- the query
public java.lang.String buildGroupByClause(IQuery query)
query
- the query
public java.lang.String buildOrderByClause(IQuery query)
query
- the query
public java.lang.String getQueryString(IQuery query)
query
- the query
public java.lang.String getQueryString(IQuery query, java.util.Map parameters) throws java.io.IOException
IStatement
query
- the queryparameters
- the parameters
java.io.IOException
- Signals that an I/O exception has occurred.public it.eng.spago.base.SourceBean execute(int offset, int fetchSize) throws java.lang.Exception
IStatement
offset
- the offsetfetchSize
- the fetch size
java.lang.Exception
- the exceptionpublic it.eng.spago.base.SourceBean execute(int offset) throws java.lang.Exception
IStatement
offset
- the offset
java.lang.Exception
- the exceptionpublic it.eng.spago.base.SourceBean execute() throws java.lang.Exception
IStatement
java.lang.Exception
- the exceptionpublic it.eng.spago.base.SourceBean execute(IQuery query, java.util.Map parameters, int offset, int fetchSize, int maxResults) throws java.lang.Exception
IStatement
query
- the queryparameters
- the parametersoffset
- the offsetfetchSize
- the fetch sizemaxResults
- the max results
java.lang.Exception
- the exceptionpublic it.eng.spago.base.SourceBean executeWithPagination(int offset, int fetchSize, int maxResults) throws java.lang.Exception
IStatement
offset
- the offsetfetchSize
- the fetch sizemaxResults
- the max results
java.lang.Exception
- the exceptionpublic it.eng.spago.base.SourceBean executeWithPagination(int pageNumber, int pageSize) throws java.lang.Exception
IStatement
pageNumber
- the page numberpageSize
- the page size
java.lang.Exception
- the exceptionpublic it.eng.spago.base.SourceBean executeWithPagination(IQuery query, java.util.Map parameters, int pageNumber, int pageSize, int maxResults) throws java.lang.Exception
IStatement
query
- the queryparameters
- the parameterspageNumber
- the page numberpageSize
- the page sizemaxResults
- the max results
java.lang.Exception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |