public static class _FrontBasePlugIn.FrontbaseExpression
extends com.webobjects.jdbcadaptor.JDBCExpression
| Modifier and Type | Class and Description |
|---|---|
static class |
_FrontBasePlugIn.FrontbaseExpression.JoinClause
Helper class that stores a join definition and
helps
FrontbaseExpression 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 |
|---|
FrontbaseExpression(com.webobjects.eoaccess.EOEntity eoentity) |
| Modifier and Type | Method and Description |
|---|---|
Class |
_synchronizationFactoryClass() |
void |
addCreateClauseForAttribute(EOAttribute attribute) |
String |
addEscapeChars(String value) |
void |
addJoinClause(String leftName,
String rightName,
int semantic)
Overridden to not call the super implementation.
|
void |
addOrderByAttributeOrdering(com.webobjects.eocontrol.EOSortOrdering eosortordering) |
String |
assembleDeleteStatementWithQualifier(com.webobjects.eocontrol.EOQualifier eoqualifier,
String table,
String qualifier) |
String |
assembleInsertStatementWithRow(NSDictionary row,
String table,
String columns,
String values) |
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.
|
String |
assembleUpdateStatementWithRow(NSDictionary row,
com.webobjects.eocontrol.EOQualifier qualifier,
String table,
String values,
String sqlQualifier) |
String |
columnTypeStringForAttribute(EOAttribute attribute) |
String |
escapedString(Object obj) |
String |
externalNameQuoteCharacter() |
String |
formatValueForAttribute(Object obj,
EOAttribute eoattribute) |
String |
joinClauseString()
Overrides the parent implementation to compose the final string
expression for the join clauses.
|
String |
lockClause() |
boolean |
mustUseBindVariableForAttribute(EOAttribute eoattribute) |
protected boolean |
shouldAllowNull(EOAttribute attribute) |
boolean |
shouldUseBindVariableForAttribute(EOAttribute eoattribute) |
String |
sqlStringForAttribute(EOAttribute attribute) |
String |
sqlStringForCaseInsensitiveLike(String value,
String column) |
String |
sqlStringForKeyValueQualifier(com.webobjects.eocontrol.EOKeyValueQualifier eokeyvaluequalifier) |
String |
sqlStringForSelector(com.webobjects.foundation.NSSelector selector,
Object value) |
protected String |
sqlStringForSelectorTreatingContainsAsLike(com.webobjects.foundation.NSSelector qualifierOperator,
Object value) |
boolean |
useBindVariables() |
addSelectListAttribute, allowsNullClauseForConstraint, appendItemToListString, appendItemToOrderByString, appendItemToValueListString, bindVariableDictionaryForAttribute, jdbcInfo, prepareSelectExpressionWithAttributes, setJDBCInfo_aliasForRelatedAttributeRelationshipPath, _aliasForRelationshipPath, _defaultDateFormatter, _entityForRelationshipPathOrigin, _flattenRelPathEntity, _listString, _orderByString, _rootEntityForExpression, _setEntity, _sqlStringForJoinSemanticMatchSemantic, _stringForDate, _truncatedString, _truncatedStringForData, _valueList, addBindVariableDictionary, addInsertListAttribute, addUpdateListAttribute, aliasesByRelationshipPath, appendItemToListString, bindVariableDictionaries, entity, formatSQLString, formatStringValue, joinExpression, listString, orderByString, prepareConstraintStatementForRelationship, prepareDeleteExpressionForQualifier, prepareInsertExpressionWithRow, prepareUpdateExpressionWithRow, setStatement, setUseAliases, setUseBindVariables, setUseQuotedExternalNames, sqlEscapeChar, sqlPatternFromShellPattern, sqlPatternFromShellPatternWithEscapeCharacter, sqlStringForAttributeNamed, sqlStringForAttributePath, sqlStringForConjoinedQualifiers, sqlStringForData, sqlStringForDisjoinedQualifiers, sqlStringForKeyComparisonQualifier, sqlStringForNegatedQualifier, sqlStringForNumber, sqlStringForQualifier, sqlStringForSchemaObjectName, sqlStringForString, sqlStringForValue, statement, tableListWithRootEntity, toString, useAliases, useQuotedExternalNames, valueList, whereClauseStringpublic FrontbaseExpression(com.webobjects.eoaccess.EOEntity eoentity)
public void addCreateClauseForAttribute(EOAttribute attribute)
addCreateClauseForAttribute in class com.webobjects.eoaccess.EOSQLExpressionprotected boolean shouldAllowNull(EOAttribute attribute)
public String columnTypeStringForAttribute(EOAttribute attribute)
columnTypeStringForAttribute in class com.webobjects.jdbcadaptor.JDBCExpressionpublic Class _synchronizationFactoryClass()
public String sqlStringForSelector(com.webobjects.foundation.NSSelector selector, Object value)
sqlStringForSelector in class com.webobjects.eoaccess.EOSQLExpressionprotected String sqlStringForSelectorTreatingContainsAsLike(com.webobjects.foundation.NSSelector qualifierOperator, Object value)
public String externalNameQuoteCharacter()
externalNameQuoteCharacter in class com.webobjects.jdbcadaptor.JDBCExpressionpublic String sqlStringForAttribute(EOAttribute attribute)
sqlStringForAttribute in class com.webobjects.eoaccess.EOSQLExpressionpublic void addJoinClause(String leftName, String rightName, int semantic)
addJoinClause in class com.webobjects.eoaccess.EOSQLExpressionleftName - 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.EOSQLExpressionleftName - the table name on the left side of the clauserightName - the table name on the right side of the clausesemantic - the join semanticpublic 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.EOSQLExpressionattributes - 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.EOSQLExpressionpublic void addOrderByAttributeOrdering(com.webobjects.eocontrol.EOSortOrdering eosortordering)
addOrderByAttributeOrdering in class com.webobjects.eoaccess.EOSQLExpressionpublic String assembleDeleteStatementWithQualifier(com.webobjects.eocontrol.EOQualifier eoqualifier, String table, String qualifier)
assembleDeleteStatementWithQualifier in class com.webobjects.eoaccess.EOSQLExpressionpublic String assembleInsertStatementWithRow(NSDictionary row, String table, String columns, String values)
assembleInsertStatementWithRow in class com.webobjects.eoaccess.EOSQLExpressionpublic String assembleUpdateStatementWithRow(NSDictionary row, com.webobjects.eocontrol.EOQualifier qualifier, String table, String values, String sqlQualifier)
assembleUpdateStatementWithRow in class com.webobjects.eoaccess.EOSQLExpressionpublic String lockClause()
lockClause in class com.webobjects.jdbcadaptor.JDBCExpressionpublic boolean useBindVariables()
useBindVariables in class com.webobjects.jdbcadaptor.JDBCExpressionpublic boolean shouldUseBindVariableForAttribute(EOAttribute eoattribute)
shouldUseBindVariableForAttribute in class com.webobjects.jdbcadaptor.JDBCExpressionpublic boolean mustUseBindVariableForAttribute(EOAttribute eoattribute)
mustUseBindVariableForAttribute in class com.webobjects.jdbcadaptor.JDBCExpressionpublic String sqlStringForCaseInsensitiveLike(String value, String column)
sqlStringForCaseInsensitiveLike in class com.webobjects.eoaccess.EOSQLExpressionpublic String sqlStringForKeyValueQualifier(com.webobjects.eocontrol.EOKeyValueQualifier eokeyvaluequalifier)
sqlStringForKeyValueQualifier in class com.webobjects.eoaccess.EOSQLExpressionpublic String formatValueForAttribute(Object obj, EOAttribute eoattribute)
formatValueForAttribute in class com.webobjects.jdbcadaptor.JDBCExpressionCopyright © 2002 – 2020 Project Wonder.