Project Wonder 5.0.0.8795

er.extensions.jdbc
Class ERXJDBCAdaptor.Channel

java.lang.Object
  extended by com.webobjects.eoaccess.EOAdaptorChannel
      extended by com.webobjects.jdbcadaptor.JDBCChannel
          extended by er.extensions.jdbc.ERXJDBCAdaptor.Channel
Enclosing class:
ERXJDBCAdaptor

public static class ERXJDBCAdaptor.Channel
extends JDBCChannel

Channel subclass to support notification posting.

Author:
ak

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.eoaccess.EOAdaptorChannel
EOAdaptorChannel.Delegate
 
Field Summary
 
Fields inherited from class com.webobjects.jdbcadaptor.JDBCChannel
_attributes, _fetchColumnCount, _isOpen, _resultSet, _rowsProcessedCount, _rowsUpdateCount, _selectedColumns, _statement, _storedProcedureBindings
 
Fields inherited from class com.webobjects.eoaccess.EOAdaptorChannel
_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 Summary
ERXJDBCAdaptor.Channel(JDBCContext jdbccontext)
           
 
Method Summary
 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 attributes)
           
 
Methods inherited from class com.webobjects.jdbcadaptor.JDBCChannel
addStoredProceduresNamed, attributesToFetch, cancelFetch, closeChannel, deleteRowsDescribedByQualifier, describeModelWithTableNames, describeResults, describeStoredProcedureNames, describeTableNames, evaluateExpression, executeStoredProcedure, fetchRow, insertRow, isFetchInProgress, isOpen, openChannel, primaryKeyForNewRowWithEntity, returnValuesForLastStoredProcedureInvocation, rowsProcessedCount, updateValuesInRowsDescribedByQualifier
 
Methods inherited from class com.webobjects.eoaccess.EOAdaptorChannel
_raiseOptimisticLockingExceptionWithReason, _setRawDictionaryInitializerForAttributes, adaptorContext, delegate, deleteRowDescribedByQualifier, dictionaryWithObjectsForAttributes, lockRowComparingAttributes, performAdaptorOperation, setDelegate, updateValuesInRowDescribedByQualifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXJDBCAdaptor.Channel

public ERXJDBCAdaptor.Channel(JDBCContext jdbccontext)
Method Detail

setAttributesToFetch

public void setAttributesToFetch(NSArray attributes)
Overrides:
setAttributesToFetch in class JDBCChannel

selectAttributes

public void selectAttributes(NSArray array,
                             EOFetchSpecification fetchspecification,
                             boolean lock,
                             EOEntity entity)
Overridden to switch the connection to read-only while selecting.

Overrides:
selectAttributes in class JDBCChannel

performAdaptorOperations

public void performAdaptorOperations(NSArray ops)
Overridden to post a notification when the operations were performed.

Overrides:
performAdaptorOperations in class EOAdaptorChannel

primaryKeysForNewRowsWithEntity

public NSArray primaryKeysForNewRowsWithEntity(int cnt,
                                               EOEntity entity)
Batch-fetches new primary keys. Set the property 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.

Overrides:
primaryKeysForNewRowsWithEntity in class JDBCChannel

Last updated: Fri, Jan 9, 2009 • 04:35 AM EST

Copyright © 2002 – 2007 Project Wonder.