com.webobjects.jdbcadaptor
Class _FrontBasePlugIn.FrontbaseExpression
java.lang.Object
com.webobjects.eoaccess.EOSQLExpression
com.webobjects.jdbcadaptor.JDBCExpression
com.webobjects.jdbcadaptor._FrontBasePlugIn.FrontbaseExpression
- Enclosing class:
- _FrontBasePlugIn
public static class _FrontBasePlugIn.FrontbaseExpression
- extends JDBCExpression
| Fields inherited from class com.webobjects.eoaccess.EOSQLExpression |
_aliasesByRelationshipPath, _bindings, _contextStack, _defaultDateFormatter, _entity, _joinClauseString, _listString, _NibbleToHex, _orderByString, _statement, _upperFunctionName, _useAliases, _valueListString, _whereClauseString, BindVariableAttributeKey, BindVariableColumnKey, BindVariableNameKey, BindVariablePlaceHolderKey, BindVariableValueKey |
|
Method Summary |
Class |
_synchronizationFactoryClass()
|
void |
addCreateClauseForAttribute(EOAttribute attribute)
|
void |
addJoinClause(String leftName,
String rightName,
int semantic)
Overridden to not call the super implementation. |
void |
addOrderByAttributeOrdering(EOSortOrdering eosortordering)
|
String |
assembleDeleteStatementWithQualifier(EOQualifier eoqualifier,
String table,
String qualifier)
|
String |
assembleInsertStatementWithRow(NSDictionary nsdictionary,
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,
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 dictionary,
EOQualifier qualifier,
String table,
String values,
String sqlQualifier)
|
String |
columnTypeStringForAttribute(EOAttribute attribute)
|
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(EOKeyValueQualifier eokeyvaluequalifier)
|
String |
sqlStringForSelector(NSSelector qualifierOperator,
Object value)
|
boolean |
useBindVariables()
|
| Methods inherited from class com.webobjects.eoaccess.EOSQLExpression |
_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, whereClauseString |
_FrontBasePlugIn.FrontbaseExpression
public _FrontBasePlugIn.FrontbaseExpression(EOEntity eoentity)
addCreateClauseForAttribute
public void addCreateClauseForAttribute(EOAttribute attribute)
- Overrides:
addCreateClauseForAttribute in class EOSQLExpression
shouldAllowNull
protected boolean shouldAllowNull(EOAttribute attribute)
columnTypeStringForAttribute
public String columnTypeStringForAttribute(EOAttribute attribute)
- Overrides:
columnTypeStringForAttribute in class JDBCExpression
_synchronizationFactoryClass
public Class _synchronizationFactoryClass()
sqlStringForSelector
public String sqlStringForSelector(NSSelector qualifierOperator,
Object value)
- Overrides:
sqlStringForSelector in class EOSQLExpression
externalNameQuoteCharacter
public String externalNameQuoteCharacter()
- Overrides:
externalNameQuoteCharacter in class JDBCExpression
sqlStringForAttribute
public String sqlStringForAttribute(EOAttribute attribute)
- Overrides:
sqlStringForAttribute in class EOSQLExpression
addJoinClause
public void addJoinClause(String leftName,
String rightName,
int semantic)
- Overridden to not call the super implementation.
- Overrides:
addJoinClause in class EOSQLExpression
- Parameters:
leftName - the table name on the left side of the clauserightName - the table name on the right side of the clausesemantic - the join semantic
assembleJoinClause
public 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.
- Overrides:
assembleJoinClause in class EOSQLExpression
- Parameters:
leftName - the table name on the left side of the clauserightName - the table name on the right side of the clausesemantic - the join semantic
- Returns:
- the join clause
assembleSelectStatementWithAttributes
public String assembleSelectStatementWithAttributes(NSArray attributes,
boolean lock,
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.
- Overrides:
assembleSelectStatementWithAttributes in class EOSQLExpression
- Parameters:
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 clause
- Returns:
- the select statement
joinClauseString
public String joinClauseString()
- Overrides the parent implementation to compose the final string
expression for the join clauses.
- Overrides:
joinClauseString in class EOSQLExpression
addOrderByAttributeOrdering
public void addOrderByAttributeOrdering(EOSortOrdering eosortordering)
- Overrides:
addOrderByAttributeOrdering in class EOSQLExpression
assembleDeleteStatementWithQualifier
public String assembleDeleteStatementWithQualifier(EOQualifier eoqualifier,
String table,
String qualifier)
- Overrides:
assembleDeleteStatementWithQualifier in class EOSQLExpression
assembleInsertStatementWithRow
public String assembleInsertStatementWithRow(NSDictionary nsdictionary,
String table,
String columns,
String values)
- Overrides:
assembleInsertStatementWithRow in class EOSQLExpression
assembleUpdateStatementWithRow
public String assembleUpdateStatementWithRow(NSDictionary dictionary,
EOQualifier qualifier,
String table,
String values,
String sqlQualifier)
- Overrides:
assembleUpdateStatementWithRow in class EOSQLExpression
lockClause
public String lockClause()
- Overrides:
lockClause in class JDBCExpression
useBindVariables
public boolean useBindVariables()
- Overrides:
useBindVariables in class JDBCExpression
shouldUseBindVariableForAttribute
public boolean shouldUseBindVariableForAttribute(EOAttribute eoattribute)
- Overrides:
shouldUseBindVariableForAttribute in class JDBCExpression
mustUseBindVariableForAttribute
public boolean mustUseBindVariableForAttribute(EOAttribute eoattribute)
- Overrides:
mustUseBindVariableForAttribute in class JDBCExpression
sqlStringForCaseInsensitiveLike
public String sqlStringForCaseInsensitiveLike(String value,
String column)
- Overrides:
sqlStringForCaseInsensitiveLike in class EOSQLExpression
sqlStringForKeyValueQualifier
public String sqlStringForKeyValueQualifier(EOKeyValueQualifier eokeyvaluequalifier)
- Overrides:
sqlStringForKeyValueQualifier in class EOSQLExpression
formatValueForAttribute
public String formatValueForAttribute(Object obj,
EOAttribute eoattribute)
- Overrides:
formatValueForAttribute in class JDBCExpression
Copyright © 2002 – 2007 Project Wonder.