|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jbo.common.CommonCriteriaAdapter
public abstract class CommonCriteriaAdapter
Field Summary | |
---|---|
static java.lang.String |
BETWEEN |
static java.lang.String |
IN |
static java.lang.String |
IS |
static java.lang.String |
LIKE |
static java.lang.String |
LIKE_QOT |
static java.lang.String |
NOT |
static java.lang.String |
NULL |
static char |
QOT |
static java.lang.String |
QOTSTR |
Constructor Summary | |
---|---|
CommonCriteriaAdapter() |
Method Summary | |
---|---|
void |
cleanUpTemporaryBindVariables(ViewCriteria criteria) Removes the temporary bind variables created to hold the view criteria item literal values. |
protected void |
cleanUpTemporaryBindVars(ViewCriteria criteria) Deprecated. Use cleanUpTemporaryBindVariables(oracle.jbo.ViewCriteria) public method instead. |
protected java.lang.String |
convertCriteriaItemToWhereFragment(ViewCriteria criteria, ViewCriteriaRow row, int attrIndex, boolean firstClause) |
protected java.lang.String |
convertOpandRHSToWhereFragment(ViewCriteria vc, ViewCriteriaItem vci, java.lang.String operator, java.lang.Object value, boolean isBindVarOrSqlFragment) |
protected java.lang.Object |
convertValueToWhereFragment(ViewCriteria vc, ViewCriteriaItem curDef, java.lang.String trimmedValue) |
protected java.lang.String |
correctOprandLiteral(java.lang.String restVal) |
protected java.lang.String |
createTempBindVar(ViewCriteria criteria, ViewCriteriaItem vcItem, int valueIndex) Deprecated. Use createTemporaryBindVar(oracle.jbo.ViewCriteria, oracle.jbo.ViewCriteriaItem, int) from the client code. |
java.lang.String |
createTemporaryBindVar(ViewCriteria criteria, ViewCriteriaItem vcItem, int valueIndex) Create temporary bind variable for a view criteria item value for useBindVarsOnly mode for binding literal values defined in the view criteria item. |
protected abstract java.lang.Object |
formatAttributeValue(ViewCriteria vc, AttributeDef curDef, java.lang.String valString) |
protected java.util.HashMap |
getBindValsForSqlGen(ViewCriteria vc) |
protected java.lang.String |
getCriteriaClause(AttributeDef[] attrDefs, ViewCriteria criteria) Generate a where clause fragment for the view criteria. |
java.lang.String |
getCriteriaClause(ViewCriteria criteria) Generate a where clause fragment for the view criteria. |
protected java.lang.String |
getFormattedLHSCompareFragment(AttributeDef attrDef, int sqlType, java.lang.String lhs, java.lang.Object rhs) |
protected java.lang.String |
getFormattedLHSCompareFragment(ViewCriteria vc, AttributeDef attrDef, int sqlType, java.lang.String lhs, java.lang.Object rhs) |
protected java.lang.String |
getFormattedRHSCompareFragment(ViewCriteria vc, AttributeDef attrDef, int sqlType, java.lang.String rhs) |
protected java.lang.String |
getOptionalItemClause(ViewCriteria vc, ViewCriteriaItem vci) Returns any additional clause to be added to the where clause for optional view criteria item if there is any. |
protected RowSet |
getRowSetForSqlGen(ViewCriteria vc) |
protected java.lang.String |
getStringConcatOper(boolean bIncludeSpaces) |
protected java.lang.String |
getWhereFragmentFromVO(ViewCriteria criteria, ViewCriteriaItem vci) |
boolean |
isCharType(int type) |
boolean |
isDateType(int type) |
protected boolean |
isLHSFragmentOptional(ViewCriteria vc, AttributeDef attrDef, java.lang.String lhs) |
boolean |
isNumericType(int type) |
protected ViewCriteriaItem |
parseOperatorAndValueFromItemValue(ViewCriteria vc, ViewCriteriaItem vci) |
protected java.lang.String |
setupBindVarExtendedData(ViewCriteria criteria, java.lang.String criteriaClause) Subclasses should overwrite this method if it needs to set up extended data for bind variables for JDBC positional binding style, and to replace the name bind variables in the where clause if necessary. |
protected boolean |
shouldUseTempBindVariableForValue(ViewCriteria criteria, ViewCriteriaItem vci) Allow subclasses to override the useBindVarsOnly mode for the given view criteria item.If view criteria is in useBindVarsOnly mode, |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char QOT
public static final java.lang.String QOTSTR
public static final java.lang.String LIKE_QOT
public static final java.lang.String LIKE
public static final java.lang.String IS
public static final java.lang.String IN
public static final java.lang.String NOT
public static final java.lang.String NULL
public static final java.lang.String BETWEEN
Constructor Detail |
---|
public CommonCriteriaAdapter()
Method Detail |
---|
protected abstract java.lang.Object formatAttributeValue(ViewCriteria vc, AttributeDef curDef, java.lang.String valString)
protected java.lang.String setupBindVarExtendedData(ViewCriteria criteria, java.lang.String criteriaClause)
criteria
- The view criteria that we are building the where clause forcriteriaClause
- The where clause that has been generatedpublic void cleanUpTemporaryBindVariables(ViewCriteria criteria)
criteria
- ViewCriteria containing the view criteria itemprotected void cleanUpTemporaryBindVars(ViewCriteria criteria)
cleanUpTemporaryBindVariables(oracle.jbo.ViewCriteria)
public method instead.criteria
- ViewCriteria containing the view criteria itempublic java.lang.String getCriteriaClause(ViewCriteria criteria)
getCriteriaClause(oracle.jbo.AttributeDef[], oracle.jbo.ViewCriteria)
is invoked for a root view criteria as well as nested view criteria.getCriteriaClause
in interface CriteriaAdapter
criteria
- a view criteria instanceprotected java.lang.String getCriteriaClause(AttributeDef[] attrDefs, ViewCriteria criteria)
attrDefs
- attribute definitions in the structure def that owns the criteria.criteria
- a view criteria instanceprotected java.lang.String getWhereFragmentFromVO(ViewCriteria criteria, ViewCriteriaItem vci)
protected boolean shouldUseTempBindVariableForValue(ViewCriteria criteria, ViewCriteriaItem vci)
criteria
-vci
-public java.lang.String createTemporaryBindVar(ViewCriteria criteria, ViewCriteriaItem vcItem, int valueIndex)
getCriteriaClause
.criteria
- ViewCriteria containing the view criteria itemvcItem
- ViewCriteriaItem containing the value for which temporary bind variable is to be created for.valueIndex
- The value for which temporary bind variable is to be created for.protected java.lang.String createTempBindVar(ViewCriteria criteria, ViewCriteriaItem vcItem, int valueIndex)
createTemporaryBindVar(oracle.jbo.ViewCriteria, oracle.jbo.ViewCriteriaItem, int)
from the client code.getCriteriaClause
.protected java.lang.String convertCriteriaItemToWhereFragment(ViewCriteria criteria, ViewCriteriaRow row, int attrIndex, boolean firstClause)
protected java.lang.String correctOprandLiteral(java.lang.String restVal)
protected java.lang.String getStringConcatOper(boolean bIncludeSpaces)
protected java.lang.String getOptionalItemClause(ViewCriteria vc, ViewCriteriaItem vci)
vc
- ViewCriteria containing the view criteria itemvci
- ViewCriteriaItem for which a clause for the optional clause is to be constructed. The ViewCriteriaItem passed is either a selectively required item or an optional item, but not a required item.protected java.lang.String convertOpandRHSToWhereFragment(ViewCriteria vc, ViewCriteriaItem vci, java.lang.String operator, java.lang.Object value, boolean isBindVarOrSqlFragment)
protected RowSet getRowSetForSqlGen(ViewCriteria vc)
protected java.util.HashMap getBindValsForSqlGen(ViewCriteria vc)
protected ViewCriteriaItem parseOperatorAndValueFromItemValue(ViewCriteria vc, ViewCriteriaItem vci)
protected java.lang.Object convertValueToWhereFragment(ViewCriteria vc, ViewCriteriaItem curDef, java.lang.String trimmedValue)
protected java.lang.String getFormattedRHSCompareFragment(ViewCriteria vc, AttributeDef attrDef, int sqlType, java.lang.String rhs)
protected java.lang.String getFormattedLHSCompareFragment(ViewCriteria vc, AttributeDef attrDef, int sqlType, java.lang.String lhs, java.lang.Object rhs)
protected java.lang.String getFormattedLHSCompareFragment(AttributeDef attrDef, int sqlType, java.lang.String lhs, java.lang.Object rhs)
protected boolean isLHSFragmentOptional(ViewCriteria vc, AttributeDef attrDef, java.lang.String lhs)
public boolean isCharType(int type)
public boolean isDateType(int type)
public boolean isNumericType(int type)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |