|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.query.callbacks.SqlSelectQueryCallback com.ibm.websphere.query.callbacks.OracleSqlSelectQueryCallback
public class OracleSqlSelectQueryCallback
The OracleSqlSelectQueryCallback class is a query builder callback that adds the functionality of querying by Date objects on Oracle, and adding limit to Oracle queries.
Field Summary | |
---|---|
static java.lang.String |
ORACLE_SQL_QUERY_LIMITHEAD
|
Fields inherited from interface com.ibm.websphere.query.base.ISelectQueryCallback |
---|
JOIN_CONDITIONS, JOIN_TABLES, JOINS, LAST_TABLE_ALIAS_INTEGER, MULTIVALUE_PROPERTY_NAMES, NAME_MAPPING, PREDICATE_IS_NULL, SELECT_ATTRIBUTES, TABLE_MAP, TABLE_NAME, TYPE_MAPPING |
Constructor Summary | |
---|---|
OracleSqlSelectQueryCallback()
Creates a new OracleSqlSelectQueryCallback instance. |
|
OracleSqlSelectQueryCallback(java.util.Map nameMapping,
java.util.Map typeMapping)
Creates a new OracleSqlSelectQueryCallback instance with the given attribute and type mappings. |
Method Summary | |
---|---|
void |
buildAttribute(IAttribute attribute,
java.lang.StringBuffer sb)
Appends the string representation of the specified attribute to the specified string buffer. |
void |
buildLimit(ISelectQuery selectQuery,
java.lang.StringBuffer sb,
java.util.Map metadata)
|
void |
buildSelectQuery(ISelectQuery selectQuery,
java.lang.StringBuffer sb,
java.util.Map metadata)
|
void |
buildValue(IValue value,
java.lang.StringBuffer sb)
Returns the Oracle SQL value string for the given value. |
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 ORACLE_SQL_QUERY_LIMITHEAD
Constructor Detail |
---|
public OracleSqlSelectQueryCallback()
public OracleSqlSelectQueryCallback(java.util.Map nameMapping, java.util.Map typeMapping)
Method Detail |
---|
public void buildValue(IValue value, java.lang.StringBuffer sb) throws QueryException
Returns the Oracle SQL value string for the given value.
This method generates the value string in SQL based on the data type.
buildValue
in interface ISelectQueryCallback
buildValue
in class SqlSelectQueryCallback
QueryException
public void buildLimit(ISelectQuery selectQuery, java.lang.StringBuffer sb, java.util.Map metadata) throws QueryException
QueryException
ISelectQueryCallback.buildLimit(ISelectQuery)
public void buildSelectQuery(ISelectQuery selectQuery, java.lang.StringBuffer sb, java.util.Map metadata) throws QueryException
QueryException
ISelectQueryCallback.buildSelectQuery(ISelectQuery)
public void buildAttribute(IAttribute attribute, java.lang.StringBuffer sb) throws QueryException
SqlSelectQueryCallback
buildAttribute
in interface ISelectQueryCallback
buildAttribute
in class SqlSelectQueryCallback
attribute
- the attribute to expandsb
- the string buffer to append to
QueryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |