public static class ERXJDBCAdaptor.Channel
extends com.webobjects.jdbcadaptor.JDBCChannel
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_CLASS_NAME_KEY |
_attributes, _fetchColumnCount, _isOpen, _resultSet, _rowsProcessedCount, _rowsUpdateCount, _selectedColumns, _statement, _storedProcedureBindings
_context, _debug, _delegate, _delegateRespondsTo_didChangeResultSet, _delegateRespondsTo_didEvaluateExpression, _delegateRespondsTo_didExecuteStoredProcedure, _delegateRespondsTo_didFetchRow, _delegateRespondsTo_didFinishFetching, _delegateRespondsTo_didPerformOperations, _delegateRespondsTo_didSelectAttributes, _delegateRespondsTo_shouldConstructStoredProcedureReturnValues, _delegateRespondsTo_shouldEvaluateExpression, _delegateRespondsTo_shouldExecuteStoredProcedure, _delegateRespondsTo_shouldReturnValuesForStoredProcedure, _delegateRespondsTo_shouldSelectAttributes, _delegateRespondsTo_willFetchRow, _delegateRespondsTo_willPerformOperations, _rawAttributesCache, _rawDictionaryInitializer, AdaptorFailureKey, AdaptorOperationsKey, AdaptorOptimisticLockingFailure, FailedAdaptorOperationKey
Constructor and Description |
---|
Channel(com.webobjects.jdbcadaptor.JDBCContext jdbccontext) |
Modifier and Type | Method and Description |
---|---|
static Class |
columnClass()
The class of the JDBCColumn.
|
int |
deleteRowsDescribedByQualifier(com.webobjects.eocontrol.EOQualifier eoqualifier,
com.webobjects.eoaccess.EOEntity eoentity)
Overridden to clean up after a transaction fails.
|
void |
evaluateExpression(com.webobjects.eoaccess.EOSQLExpression eosqlexpression)
Overridden to clean up after a transaction fails.
|
void |
executeStoredProcedure(com.webobjects.eoaccess.EOStoredProcedure eostoredprocedure,
NSDictionary nsdictionary)
Overridden to clean up after a transaction fails.
|
static ERXJDBCColumn |
newERXJDBCColumn(EOAttribute attribute,
com.webobjects.jdbcadaptor.JDBCChannel channel,
int column,
ResultSet rs) |
static ERXJDBCColumn |
newERXJDBCColumn(ERXJDBCAdaptor.Channel channel) |
void |
performAdaptorOperations(NSArray ops)
Overridden to post a notification when the operations were performed.
|
NSArray |
primaryKeysForNewRowsWithEntity(int cnt,
com.webobjects.eoaccess.EOEntity entity)
Batch-fetches new primary keys.
|
void |
selectAttributes(NSArray array,
com.webobjects.eocontrol.EOFetchSpecification fetchspecification,
boolean lock,
com.webobjects.eoaccess.EOEntity entity)
Overridden to switch the connection to read-only while selecting.
|
void |
setAttributesToFetch(NSArray<EOAttribute> attributes) |
int |
updateValuesInRowsDescribedByQualifier(NSDictionary nsdictionary,
com.webobjects.eocontrol.EOQualifier eoqualifier,
com.webobjects.eoaccess.EOEntity eoentity)
Overridden to clea up after a transaction fails.
|
addStoredProceduresNamed, attributesToFetch, cancelFetch, closeChannel, describeModelWithTableNames, describeResults, describeStoredProcedureNames, describeTableNames, fetchRow, insertRow, isFetchInProgress, isOpen, openChannel, primaryKeyForNewRowWithEntity, returnValuesForLastStoredProcedureInvocation, rowsProcessedCount
_raiseOptimisticLockingExceptionWithReason, _setRawDictionaryInitializerForAttributes, adaptorContext, delegate, deleteRowDescribedByQualifier, dictionaryWithObjectsForAttributes, lockRowComparingAttributes, performAdaptorOperation, setDelegate, updateValuesInRowDescribedByQualifier
public static final String COLUMN_CLASS_NAME_KEY
public static Class columnClass()
er.extensions.ERXJDBCAdaptor.columnClassName
If no value is set, then the default class is ERXJDBCColumn.public static ERXJDBCColumn newERXJDBCColumn(ERXJDBCAdaptor.Channel channel)
public static ERXJDBCColumn newERXJDBCColumn(EOAttribute attribute, com.webobjects.jdbcadaptor.JDBCChannel channel, int column, ResultSet rs)
public void setAttributesToFetch(NSArray<EOAttribute> attributes)
setAttributesToFetch
in class com.webobjects.jdbcadaptor.JDBCChannel
public void selectAttributes(NSArray array, com.webobjects.eocontrol.EOFetchSpecification fetchspecification, boolean lock, com.webobjects.eoaccess.EOEntity entity)
selectAttributes
in class com.webobjects.jdbcadaptor.JDBCChannel
public void performAdaptorOperations(NSArray ops)
performAdaptorOperations
in class com.webobjects.eoaccess.EOAdaptorChannel
public NSArray primaryKeysForNewRowsWithEntity(int cnt, com.webobjects.eoaccess.EOEntity entity)
er.extensions.ERXPrimaryKeyBatchSize
to a number
larger than 0. Also, you can fine-tune the size by adding a key
ERXPrimaryKeyBatchSize
to your model or entity user
info.primaryKeysForNewRowsWithEntity
in class com.webobjects.jdbcadaptor.JDBCChannel
public void evaluateExpression(com.webobjects.eoaccess.EOSQLExpression eosqlexpression)
evaluateExpression
in class com.webobjects.jdbcadaptor.JDBCChannel
public void executeStoredProcedure(com.webobjects.eoaccess.EOStoredProcedure eostoredprocedure, NSDictionary nsdictionary)
executeStoredProcedure
in class com.webobjects.jdbcadaptor.JDBCChannel
public int deleteRowsDescribedByQualifier(com.webobjects.eocontrol.EOQualifier eoqualifier, com.webobjects.eoaccess.EOEntity eoentity)
deleteRowsDescribedByQualifier
in class com.webobjects.jdbcadaptor.JDBCChannel
public int updateValuesInRowsDescribedByQualifier(NSDictionary nsdictionary, com.webobjects.eocontrol.EOQualifier eoqualifier, com.webobjects.eoaccess.EOEntity eoentity)
updateValuesInRowsDescribedByQualifier
in class com.webobjects.jdbcadaptor.JDBCChannel
Copyright © 2002 – 2020 Project Wonder.