_FrontBasePlugIn.FrontbaseExpression Class Reference

Inherits com::webobjects::jdbcadaptor::JDBCExpression.

Collaboration diagram for _FrontBasePlugIn.FrontbaseExpression:

Collaboration graph
[legend]

List of all members.

Classes

class  JoinClause

Public Member Functions

Class _synchronizationFactoryClass ()
void addCreateClauseForAttribute (EOAttribute attribute)
String addEscapeChars (String value)
void addJoinClause (String leftName, String rightName, int semantic)
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)
String assembleSelectStatementWithAttributes (NSArray attributes, boolean lock, EOQualifier qualifier, NSArray fetchOrder, String selectString, String columnList, String tableList, String whereClause, String joinClause, String orderByClause, String lockClause)
String assembleUpdateStatementWithRow (NSDictionary dictionary, EOQualifier qualifier, String table, String values, String sqlQualifier)
String columnTypeStringForAttribute (EOAttribute attribute)
String escapedString (Object obj)
String externalNameQuoteCharacter ()
String formatValueForAttribute (Object obj, EOAttribute eoattribute)
 FrontbaseExpression (EOEntity eoentity)
String joinClauseString ()
String lockClause ()
boolean mustUseBindVariableForAttribute (EOAttribute eoattribute)
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 ()

Protected Member Functions

boolean shouldAllowNull (EOAttribute attribute)

Package Functions

String formatBit (NSData data)
boolean hasLOBsToUpdate ()
NSArray lobList ()
EOQualifier qualifier ()
void resetlobList ()

Package Attributes

NSMutableArray _lobList
EOQualifier _qualifier

Private Member Functions

void _appendNotNullConstraintIfNecessary (EOAttribute attribute, StringBuffer sql)
EOEntity entityForKeyPath (String keyPath)
String getTimeZone (java.util.TimeZone tz)
boolean isLOBAttribute (EOAttribute att)

Private Attributes

NSMutableArray _alreadyJoined = new NSMutableArray()
boolean _useBindVariables


Constructor & Destructor Documentation

FrontbaseExpression ( EOEntity  eoentity  ) 


Member Function Documentation

void _appendNotNullConstraintIfNecessary ( EOAttribute  attribute,
StringBuffer  sql 
) [private]

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.

Parameters:
leftName the table name on the left side of the clause
rightName the table name on the right side of the clause
semantic the join semantic

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.

Parameters:
leftName the table name on the left side of the clause
rightName the table name on the right side of the clause
semantic the join semantic
Returns:
the join clause

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.

Parameters:
attributes the attributes to select
lock flag for locking rows in the database
qualifier the qualifier to restrict the selection
fetchOrder specifies the fetch order
columnList the SQL columns to be fetched
tableList the the SQL tables to be fetched
whereClause the SQL where clause
joinClause the SQL join clause
orderByClause the SQL sort order clause
lockClause the SQL lock clause
Returns:
the select statement

String assembleUpdateStatementWithRow ( NSDictionary  dictionary,
EOQualifier  qualifier,
String  table,
String  values,
String  sqlQualifier 
)

String columnTypeStringForAttribute ( EOAttribute  attribute  ) 

EOEntity entityForKeyPath ( String  keyPath  )  [private]

Utility that traverses a key path to find the last destination entity

Parameters:
keyPath the key path
Returns:
the entity at the end of the keypath

String escapedString ( Object  obj  ) 

String externalNameQuoteCharacter (  ) 

String formatBit ( NSData  data  )  [package]

String formatValueForAttribute ( Object  obj,
EOAttribute  eoattribute 
)

String getTimeZone ( java.util.TimeZone  tz  )  [private]

boolean hasLOBsToUpdate (  )  [package]

boolean isLOBAttribute ( EOAttribute  att  )  [private]

String joinClauseString (  ) 

Overrides the parent implementation to compose the final string expression for the join clauses.

NSArray lobList (  )  [package]

String lockClause (  ) 

boolean mustUseBindVariableForAttribute ( EOAttribute  eoattribute  ) 

EOQualifier qualifier (  )  [package]

void resetlobList (  )  [package]

boolean shouldAllowNull ( EOAttribute  attribute  )  [protected]

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 (  ) 


Member Data Documentation

Holds array of join clauses.

EOQualifier _qualifier [package]

boolean _useBindVariables [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:32 2012 for Project Wonder by  doxygen 1.5.8