public static class ERXJDBCAdaptor.Channel extends JDBCChannel
EOAdaptorChannel.Delegate
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(JDBCContext jdbccontext) |
Modifier and Type | Method and Description |
---|---|
static Class |
columnClass()
The class of the JDBCColumn.
|
int |
deleteRowsDescribedByQualifier(EOQualifier eoqualifier,
EOEntity eoentity)
Overridden to clean up after a transaction fails.
|
void |
evaluateExpression(EOSQLExpression eosqlexpression)
Overridden to clean up after a transaction fails.
|
void |
executeStoredProcedure(EOStoredProcedure eostoredprocedure,
NSDictionary nsdictionary)
Overridden to clean up after a transaction fails.
|
static ERXJDBCColumn |
newERXJDBCColumn(EOAttribute attribute,
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,
EOEntity entity)
Batch-fetches new primary keys.
|
void |
selectAttributes(NSArray array,
EOFetchSpecification fetchspecification,
boolean lock,
EOEntity entity)
Overridden to switch the connection to read-only while selecting.
|
void |
setAttributesToFetch(NSArray<EOAttribute> attributes) |
int |
updateValuesInRowsDescribedByQualifier(NSDictionary nsdictionary,
EOQualifier eoqualifier,
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 Channel(JDBCContext jdbccontext)
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, JDBCChannel channel, int column, ResultSet rs)
public void setAttributesToFetch(NSArray<EOAttribute> attributes)
setAttributesToFetch
in class JDBCChannel
public void selectAttributes(NSArray array, EOFetchSpecification fetchspecification, boolean lock, EOEntity entity)
selectAttributes
in class JDBCChannel
public void performAdaptorOperations(NSArray ops)
performAdaptorOperations
in class EOAdaptorChannel
public NSArray primaryKeysForNewRowsWithEntity(int cnt, 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 JDBCChannel
public void evaluateExpression(EOSQLExpression eosqlexpression)
evaluateExpression
in class JDBCChannel
public void executeStoredProcedure(EOStoredProcedure eostoredprocedure, NSDictionary nsdictionary)
executeStoredProcedure
in class JDBCChannel
public int deleteRowsDescribedByQualifier(EOQualifier eoqualifier, EOEntity eoentity)
deleteRowsDescribedByQualifier
in class JDBCChannel
public int updateValuesInRowsDescribedByQualifier(NSDictionary nsdictionary, EOQualifier eoqualifier, EOEntity eoentity)
updateValuesInRowsDescribedByQualifier
in class JDBCChannel
Copyright © 2002 – 2024 Project Wonder.