com.webobjects.jdbcadaptor
Class MicrosoftPlugIn.MicrosoftExpression
java.lang.Object
com.webobjects.eoaccess.EOSQLExpression
com.webobjects.jdbcadaptor.JDBCExpression
com.webobjects.jdbcadaptor.MicrosoftPlugIn.MicrosoftExpression
- Direct Known Subclasses:
- MerantPlugIn.MerantExpression
- Enclosing class:
- MicrosoftPlugIn
- public static class MicrosoftPlugIn.MicrosoftExpression
- extends JDBCExpression
Method Summary |
String |
assembleSelectStatementWithAttributes(NSArray attributes,
boolean lock,
EOQualifier qualifier,
NSArray fetchOrder,
String selectString,
String columnList,
String tableList,
String whereClause,
String joinClause,
String orderByClause,
String lockClause)
This method is invoked from prepareSelectExpressionWithAttributes
to return an SQL SELECT statement. |
String |
lockClause()
Overridden by subclasses to return the SQL string used in a
SELECT statement to lock selected rows. |
Methods inherited from class com.webobjects.jdbcadaptor.JDBCExpression |
addSelectListAttribute, allowsNullClauseForConstraint, appendItemToListString, appendItemToOrderByString, appendItemToValueListString, bindVariableDictionaryForAttribute, columnTypeStringForAttribute, externalNameQuoteCharacter, formatValueForAttribute, jdbcInfo, mustUseBindVariableForAttribute, prepareSelectExpressionWithAttributes, setJDBCInfo, shouldUseBindVariableForAttribute, useBindVariables |
Methods inherited from class com.webobjects.eoaccess.EOSQLExpression |
addBindVariableDictionary, addCreateClauseForAttribute, addInsertListAttribute, addJoinClause, addOrderByAttributeOrdering, addUpdateListAttribute, aliasesByRelationshipPath, appendItemToListString, assembleDeleteStatementWithQualifier, assembleInsertStatementWithRow, assembleJoinClause, assembleUpdateStatementWithRow, bindVariableDictionaries, entity, formatSQLString, formatStringValue, joinClauseString, 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 |
MicrosoftPlugIn.MicrosoftExpression
public MicrosoftPlugIn.MicrosoftExpression(EOEntity entity)
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)
- Description copied from class:
EOSQLExpression
- This method is invoked from
prepareSelectExpressionWithAttributes
to return an SQL SELECT statement. The statment is of the form:
SELECT columnList
FROM tableList lockClause
WHERE whereClause AND joinClause
ORDER BY orderByClause
If lockClause
is null
, it is omitted from
the statement. Similarly, if orderByClause
is
null
, the "ORDER BY orderByClause" is omitted. If either
whereClause
or joinClause
is null
,
the "AND" and null
-valued argument are omitted. If both are
null
, the entire WHERE clause
is omitted. attributes, lock, qualifer, fetchOrder
arguments to
prepareSelectExpressionWithAttributes
from which the other
assembleSelect... arguments were derived. They are provided for subclasses
that need to generate the clauses of the SELECT statement in a
particular way.
- Overrides:
assembleSelectStatementWithAttributes
in class EOSQLExpression
- Parameters:
attributes
- an NSArray of attributeslock
- flag for locking rows in databasequalifier
- an EOQualifier for selecting rowsfetchOrder
- specifies fetch orderselectString
- SQL SELECT keyword, possibly with DISTINCTcolumnList
- SQL column listtableList
- SQL table listwhereClause
- SQL WHERE clausejoinClause
- specifies join condition to add to WHERE clauseorderByClause
- SQL ORDER BY clauselockClause
- specifies clause for lock
- Returns:
- a constructed SELECT statement
- See Also:
EOSQLExpression.prepareSelectExpressionWithAttributes(NSArray attributes, boolean lock, EOFetchSpecification fetchSpec)
lockClause
public String lockClause()
- Description copied from class:
EOSQLExpression
- Overridden by subclasses to return the SQL string used in a
SELECT statement to lock selected rows. A concrete subclass of
EOSQLExpression must override this method to return the string
used by its adaptor's RDBMS.
- Overrides:
lockClause
in class JDBCExpression
Copyright © 2004 Apple Computer, Inc.