public static class _FrontBasePlugIn.FrontbaseExpression extends 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. |
EOSQLExpression.SQLValue
_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(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(EOSortOrdering eosortordering) |
String |
assembleDeleteStatementWithQualifier(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,
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,
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(EOKeyValueQualifier eokeyvaluequalifier) |
String |
sqlStringForSelector(NSSelector selector,
Object value) |
protected String |
sqlStringForSelectorTreatingContainsAsLike(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, whereClauseString
public FrontbaseExpression(EOEntity eoentity)
public void addCreateClauseForAttribute(EOAttribute attribute)
addCreateClauseForAttribute
in class EOSQLExpression
protected boolean shouldAllowNull(EOAttribute attribute)
public String columnTypeStringForAttribute(EOAttribute attribute)
columnTypeStringForAttribute
in class JDBCExpression
public Class _synchronizationFactoryClass()
public String sqlStringForSelector(NSSelector selector, Object value)
sqlStringForSelector
in class EOSQLExpression
protected String sqlStringForSelectorTreatingContainsAsLike(NSSelector qualifierOperator, Object value)
public String externalNameQuoteCharacter()
externalNameQuoteCharacter
in class JDBCExpression
public String sqlStringForAttribute(EOAttribute attribute)
sqlStringForAttribute
in class EOSQLExpression
public void addJoinClause(String leftName, String rightName, int semantic)
addJoinClause
in class 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 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 assembleSelectStatementWithAttributes(NSArray attributes, boolean lock, EOQualifier qualifier, NSArray fetchOrder, String selectString, String columnList, String tableList, String whereClause, String joinClause, String orderByClause, String lockClause)
assembleSelectStatementWithAttributes
in class 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 EOSQLExpression
public void addOrderByAttributeOrdering(EOSortOrdering eosortordering)
addOrderByAttributeOrdering
in class EOSQLExpression
public String assembleDeleteStatementWithQualifier(EOQualifier eoqualifier, String table, String qualifier)
assembleDeleteStatementWithQualifier
in class EOSQLExpression
public String assembleInsertStatementWithRow(NSDictionary row, String table, String columns, String values)
assembleInsertStatementWithRow
in class EOSQLExpression
public String assembleUpdateStatementWithRow(NSDictionary row, EOQualifier qualifier, String table, String values, String sqlQualifier)
assembleUpdateStatementWithRow
in class EOSQLExpression
public String lockClause()
lockClause
in class JDBCExpression
public boolean useBindVariables()
useBindVariables
in class JDBCExpression
public boolean shouldUseBindVariableForAttribute(EOAttribute eoattribute)
shouldUseBindVariableForAttribute
in class JDBCExpression
public boolean mustUseBindVariableForAttribute(EOAttribute eoattribute)
mustUseBindVariableForAttribute
in class JDBCExpression
public String sqlStringForCaseInsensitiveLike(String value, String column)
sqlStringForCaseInsensitiveLike
in class EOSQLExpression
public String sqlStringForKeyValueQualifier(EOKeyValueQualifier eokeyvaluequalifier)
sqlStringForKeyValueQualifier
in class EOSQLExpression
public String formatValueForAttribute(Object obj, EOAttribute eoattribute)
formatValueForAttribute
in class JDBCExpression
Copyright © 2002 – 2024 Project Wonder.