public static class _H2PlugIn.H2Expression
extends com.webobjects.jdbcadaptor.JDBCExpression
Modifier and Type | Class and Description |
---|---|
static class |
_H2PlugIn.H2Expression.JoinClause
Helper class that stores a join definition and
helps
H2Expression to assemble
the correct join clause. |
_externalQuoteChar, _inSelect, _jdbcInfo, _rtrimFunctionName
_aliasesByRelationshipPath, _bindings, _contextStack, _defaultDateFormatter, _entity, _joinClauseString, _listString, _NibbleToHex, _orderByString, _statement, _upperFunctionName, _useAliases, _valueListString, _whereClauseString, BindVariableAttributeKey, BindVariableColumnKey, BindVariableNameKey, BindVariablePlaceHolderKey, BindVariableValueKey
Constructor and Description |
---|
H2Expression(com.webobjects.eoaccess.EOEntity entity) |
Modifier and Type | Method and Description |
---|---|
void |
addCreateClauseForAttribute(EOAttribute attribute) |
void |
addJoinClause(String leftName,
String rightName,
int semantic)
Overridden to not call the super implementation.
|
String |
assembleJoinClause(String leftName,
String rightName,
int semantic)
Overridden to construct a valid SQL92 JOIN clause as opposed to
the Oracle-like SQL the superclass produces.
|
String |
assembleSelectStatementWithAttributes(NSArray attributes,
boolean lock,
com.webobjects.eocontrol.EOQualifier qualifier,
NSArray fetchOrder,
String selectString,
String columnList,
String tableList,
String whereClause,
String joinClause,
String orderByClause,
String lockClause)
Overridden to handle correct placements of join conditions and
to handle DISTINCT fetches with compareCaseInsensitiveA(De)scending sort orders.
|
protected boolean |
enableBooleanQuoting() |
String |
formatValueForAttribute(Object value,
EOAttribute eoattribute) |
String |
joinClauseString()
Overrides the parent implementation to compose the final string
expression for the join clauses.
|
void |
prepareSelectExpressionWithAttributes(NSArray<EOAttribute> attributes,
boolean lock,
com.webobjects.eocontrol.EOFetchSpecification fetchSpec)
Overridden so we can get the fetch limit from the fetchSpec.
|
addSelectListAttribute, allowsNullClauseForConstraint, appendItemToListString, appendItemToOrderByString, appendItemToValueListString, bindVariableDictionaryForAttribute, columnTypeStringForAttribute, externalNameQuoteCharacter, jdbcInfo, lockClause, mustUseBindVariableForAttribute, setJDBCInfo, shouldUseBindVariableForAttribute, useBindVariables
_aliasForRelatedAttributeRelationshipPath, _aliasForRelationshipPath, _defaultDateFormatter, _entityForRelationshipPathOrigin, _flattenRelPathEntity, _listString, _orderByString, _rootEntityForExpression, _setEntity, _sqlStringForJoinSemanticMatchSemantic, _stringForDate, _truncatedString, _truncatedStringForData, _valueList, addBindVariableDictionary, addInsertListAttribute, addOrderByAttributeOrdering, addUpdateListAttribute, aliasesByRelationshipPath, appendItemToListString, assembleDeleteStatementWithQualifier, assembleInsertStatementWithRow, assembleUpdateStatementWithRow, bindVariableDictionaries, entity, formatSQLString, formatStringValue, joinExpression, listString, orderByString, prepareConstraintStatementForRelationship, prepareDeleteExpressionForQualifier, prepareInsertExpressionWithRow, prepareUpdateExpressionWithRow, setStatement, setUseAliases, setUseBindVariables, setUseQuotedExternalNames, sqlEscapeChar, sqlPatternFromShellPattern, sqlPatternFromShellPatternWithEscapeCharacter, sqlStringForAttribute, sqlStringForAttributeNamed, sqlStringForAttributePath, sqlStringForCaseInsensitiveLike, sqlStringForConjoinedQualifiers, sqlStringForData, sqlStringForDisjoinedQualifiers, sqlStringForKeyComparisonQualifier, sqlStringForKeyValueQualifier, sqlStringForNegatedQualifier, sqlStringForNumber, sqlStringForQualifier, sqlStringForSchemaObjectName, sqlStringForSelector, sqlStringForString, sqlStringForValue, statement, tableListWithRootEntity, toString, useAliases, useQuotedExternalNames, valueList, whereClauseString
public void addCreateClauseForAttribute(EOAttribute attribute)
addCreateClauseForAttribute
in class com.webobjects.eoaccess.EOSQLExpression
protected boolean enableBooleanQuoting()
public String formatValueForAttribute(Object value, EOAttribute eoattribute)
formatValueForAttribute
in class com.webobjects.jdbcadaptor.JDBCExpression
public void prepareSelectExpressionWithAttributes(NSArray<EOAttribute> attributes, boolean lock, com.webobjects.eocontrol.EOFetchSpecification fetchSpec)
prepareSelectExpressionWithAttributes
in class com.webobjects.jdbcadaptor.JDBCExpression
attributes
- the array of attributeslock
- locking flagfetchSpec
- the fetch specificationpublic String assembleSelectStatementWithAttributes(NSArray attributes, boolean lock, com.webobjects.eocontrol.EOQualifier qualifier, NSArray fetchOrder, String selectString, String columnList, String tableList, String whereClause, String joinClause, String orderByClause, String lockClause)
assembleSelectStatementWithAttributes
in class com.webobjects.eoaccess.EOSQLExpression
attributes
- the attributes to selectlock
- flag for locking rows in the databasequalifier
- the qualifier to restrict the selectionfetchOrder
- specifies the fetch ordercolumnList
- the SQL columns to be fetchedtableList
- the the SQL tables to be fetchedwhereClause
- the SQL where clausejoinClause
- the SQL join clauseorderByClause
- the SQL sort order clauselockClause
- the SQL lock clausepublic String joinClauseString()
joinClauseString
in class com.webobjects.eoaccess.EOSQLExpression
public void addJoinClause(String leftName, String rightName, int semantic)
addJoinClause
in class com.webobjects.eoaccess.EOSQLExpression
leftName
- the table name on the left side of the clauserightName
- the table name on the right side of the clausesemantic
- the join semanticpublic String assembleJoinClause(String leftName, String rightName, int semantic)
assembleJoinClause
in class com.webobjects.eoaccess.EOSQLExpression
leftName
- the table name on the left side of the clauserightName
- the table name on the right side of the clausesemantic
- the join semanticCopyright © 2002 – 2020 Project Wonder.