public interface EJBToRAAdapter
Modifier and Type | Field and Description |
---|---|
static int |
LOCKTYPE_NOTAPPLICABLE |
static int |
LOCKTYPE_SELECT |
static int |
LOCKTYPE_SELECT_FOR_UPDATE |
static int |
LOCKTYPE_SELECT_FOR_UPDATE_WITH_RR |
static int |
LOCKTYPE_SELECT_FOR_UPDATE_WITH_RS |
Modifier and Type | Method and Description |
---|---|
boolean |
checkBackendId(javax.resource.cci.ConnectionFactory connectionFactory,
java.lang.String backendId)
Return if currentBackendId is valid for the datasource connection factory connected to .
|
javax.resource.cci.Interaction |
createInteraction(javax.resource.cci.Connection conn)
Deprecated.
(From WAS 6.0)
|
javax.resource.cci.Interaction |
createInteraction(javax.resource.cci.Connection conn,
AccessIntent intent,
java.util.HashMap properties)
Using the given Connection object, call its "createInteraction()" method;
the Interaction returned from that call is also returned by this method.
|
javax.resource.cci.Record |
executeCreate(javax.resource.cci.Interaction interaction,
javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.IndexedRecord inputRecord)
Using the given Interaction object, call its "execute(InteractionSpec ispec, Record inrec)" method with the given
InteractionSpec and input Record; the Record returned from that call is also returned by this method.
|
javax.resource.cci.Record |
executeCreate(javax.resource.cci.Interaction interaction,
javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.IndexedRecord[] inputRecord)
This is the batch create
|
javax.resource.cci.Record |
executeFinder(javax.resource.cci.Interaction interaction,
javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.IndexedRecord inputRecord)
Using the given Interaction object, call its "execute(InteractionSpec ispec, Record inrec)" method with the given
InteractionSpec and input Record; the Record returned from that call is also returned by this method
(see next paragraph for specifics on the Record returned).
|
javax.resource.cci.Record |
executeOther(javax.resource.cci.Interaction interaction,
javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.IndexedRecord inputRecord)
Using the given Interaction object, call its "execute(InteractionSpec ispec, Record inrec)" method with the given
InteractionSpec and input Record; the Record returned from that call may also be returned by this method, or a new
Record may be constructed by this method to further post-process the returned data.
|
javax.resource.cci.Record |
executeOther(javax.resource.cci.Interaction interaction,
javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.IndexedRecord[] inputRecord)
this is the batch executeOther
|
boolean[] |
executeReadReadChecking(javax.resource.cci.Interaction interaction,
javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.IndexedRecord[] input)
Execute read read checking
|
javax.resource.cci.Record |
executeRemove(javax.resource.cci.Interaction interaction,
javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.IndexedRecord[] inputRecord,
javax.resource.cci.IndexedRecord[] predicates)
This is the batch remove
|
javax.resource.cci.Record |
executeRemove(javax.resource.cci.Interaction interaction,
javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.IndexedRecord inputRecord,
javax.resource.cci.IndexedRecord predicates)
Using the given Interaction object, call its "execute(InteractionSpec ispec, Record inrec)" method with the given
InteractionSpec and input Record; the Record returned from that call is also returned by this method.
|
javax.resource.cci.Record |
executeUpdate(javax.resource.cci.Interaction interaction,
javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.IndexedRecord[] inputrec,
javax.resource.cci.IndexedRecord[] predicates,
boolean[][] dirtyBits,
java.lang.String cursorName)
this is the batch update
|
javax.resource.cci.Record |
executeUpdate(javax.resource.cci.Interaction interaction,
javax.resource.cci.InteractionSpec ispec,
javax.resource.cci.IndexedRecord inputrec,
javax.resource.cci.IndexedRecord predicates,
boolean[] dirtyBits,
java.lang.String cursorName)
Using the given Interaction object, call its "execute(InteractionSpec ispec, Record inrec)" method with the given
InteractionSpec and input Record; the Record returned from that call is also returned by this method.
|
javax.resource.cci.Connection |
getConnection(javax.resource.cci.ConnectionFactory connectionFactory,
AccessIntent accessIntent)
Using the given ConnectionFactory object, call its
"getConnection(javax.resource.cci.ConnectionFactory factory, javax.resource.cci.ConnectionSpec connSpec)"
method, creating the ConnectionSpec subclass (if any) designed to work for the given
ConnectionFactory subclass.
|
int |
getLockType(javax.resource.cci.ConnectionFactory connectionFactory,
AccessIntent accessIntent)
Return the Lock Type basing on the current backend information and AccessIntent
This method returns a value indicating what sort of locking behavior is needed when executing the requested method.
|
int |
getLockType(javax.resource.cci.ConnectionFactory connectionFactory,
AccessIntent accessIntent,
java.util.HashMap properties)
534869 fix: introduce a new parameter: Hashmap properties to adapter class, WSEJBToRAAdapter
which implements PM interface EJBToRAAdapter.
|
java.lang.Object |
getNativeConnection(javax.resource.cci.Connection conn)
Return the native connection corresponding to the given cci.Connection, or null if there is no
"native" connection.
|
javax.resource.cci.RecordFactory |
getRecordFactory(javax.resource.cci.ConnectionFactory connectionFactory)
Return the RecordFactory for the given ConnectionFactory.
|
boolean |
isBatchSupported(javax.resource.cci.ConnectionFactory connectionFactory,
AccessIntent accessIntent)
Return if batch is supported basing on the current backend information and AccessIntent
|
static final int LOCKTYPE_NOTAPPLICABLE
static final int LOCKTYPE_SELECT
static final int LOCKTYPE_SELECT_FOR_UPDATE
static final int LOCKTYPE_SELECT_FOR_UPDATE_WITH_RS
static final int LOCKTYPE_SELECT_FOR_UPDATE_WITH_RR
javax.resource.cci.Interaction createInteraction(javax.resource.cci.Connection conn) throws javax.resource.ResourceException
conn
- javax.resource.cci.Connection see J2EE Connector spec, CCIjavax.resource.ResourceException
javax.resource.cci.Interaction createInteraction(javax.resource.cci.Connection conn, AccessIntent intent, java.util.HashMap properties) throws javax.resource.ResourceException
conn
- javax.resource.cci.Connection see J2EE Connector spec, CCIintent
- the AccessIntent in effect for this operation. The values in intent shall be used
as necessary when executing the returned interaction. The values include choice of pessimistic versus
optimistic access, intent to read versus update the data, and others. See the javadoc for AccessIntent
for additional details.property
- HashMap, the additional information for point releases. Will pass null for now.javax.resource.ResourceException
javax.resource.cci.Record executeCreate(javax.resource.cci.Interaction interaction, javax.resource.cci.InteractionSpec ispec, javax.resource.cci.IndexedRecord inputRecord) throws javax.ejb.CreateException, javax.resource.ResourceException
interaction
- javax.resource.cci.Interaction the interaction this method should call "execute(...)" onispec
- javax.resource.cci.InteractionSpec see J2EE Connector spec, CCIinputRecord
- javax.resource.cci.IndexedRecord see J2EE Connector spec, CCI. This parameter may be null,
which indicates there are no input parameters for this function.javax.ejb.CreateException
javax.resource.ResourceException
javax.resource.cci.Record executeCreate(javax.resource.cci.Interaction interaction, javax.resource.cci.InteractionSpec ispec, javax.resource.cci.IndexedRecord[] inputRecord) throws javax.ejb.CreateException, javax.resource.ResourceException
javax.ejb.CreateException
javax.resource.ResourceException
javax.resource.cci.Record executeFinder(javax.resource.cci.Interaction interaction, javax.resource.cci.InteractionSpec ispec, javax.resource.cci.IndexedRecord inputRecord) throws javax.ejb.FinderException, javax.resource.ResourceException
interaction
- javax.resource.cci.Interaction the interaction this method should call "execute(...)" onispec
- javax.resource.cci.InteractionSpec see J2EE Connector spec, CCIinputRecord
- javax.resource.cci.IndexedRecord see J2EE Connector spec, CCI.This parameter may be null,
which indicates there are no input parameters for this function.javax.resource.ResourceException
- The exception description.javax.ejb.FinderException
javax.resource.cci.Record executeRemove(javax.resource.cci.Interaction interaction, javax.resource.cci.InteractionSpec ispec, javax.resource.cci.IndexedRecord inputRecord, javax.resource.cci.IndexedRecord predicates) throws javax.ejb.RemoveException, javax.resource.ResourceException
interaction
- javax.resource.cci.Interaction the interaction this method should call "execute(...)" onispec
- javax.resource.cci.InteractionSpec see J2EE Connector spec, CCIinputRecord
- javax.resource.cci.Record input Record, see J2EE Connector spec, CCI.This parameter may be null,
which indicates there are no input parameters for this function.javax.resource.cci.IndexedRecord
- predicates PM-specific data class holding old values for optimistic
concurrency control. The size and shape (element types) of this record are the same as that defined for
this EJB type. We should not update this bean if any attribute has been changed from its old value by
some other user of this data store. This parameter may be null which indicates no predicate checking should be done.javax.resource.ResourceException
- The exception description.javax.ejb.RemoveException
javax.resource.cci.Record executeRemove(javax.resource.cci.Interaction interaction, javax.resource.cci.InteractionSpec ispec, javax.resource.cci.IndexedRecord[] inputRecord, javax.resource.cci.IndexedRecord[] predicates) throws javax.ejb.RemoveException, javax.resource.ResourceException
javax.ejb.RemoveException
javax.resource.ResourceException
javax.resource.cci.Record executeUpdate(javax.resource.cci.Interaction interaction, javax.resource.cci.InteractionSpec ispec, javax.resource.cci.IndexedRecord inputrec, javax.resource.cci.IndexedRecord predicates, boolean[] dirtyBits, java.lang.String cursorName) throws javax.ejb.EJBException, javax.resource.ResourceException
interaction
- javax.resource.cci.Interaction the interaction this method should call "execute(...)" onispec
- javax.resource.cci.InteractionSpec see J2EE Connector spec, CCIinputrec
- javax.resource.cci.IndexedRecord input Record, see J2EE Connector spec, CCI.This parameter may be null,
which indicates there are no input parameters for this function. This is not normal but you should code to handle it
(for example., by ignoring the update request).javax.resource.cci.IndexedRecord
- predicates PM-specific data class holding old values for optimistic
concurrency control. The size and shape (element types) of this record are the same as that defined for
this EJB type. Elements not changed are ignored (see dirtyBits, below). We should not update this bean if
any updated attribute has been changed from its old value by some other user of this data store. This parameter
may be null, which indicates no predicate checking should be done.boolean[]
- dirtyBits PM-specific array of boolean, each corresponding to an element in "predicates".
Any element in "predicates" which has changed since the last read from the backend (e.g., a "finder")
must have it's corresponding boolean element in "dirtyBits" set to true. This parameter
may be null, which indicates no predicate checking should be done.cursorName
- java.lang.String an optional cursor name, obtained by PM runtime via a call to
java.sql.ResultSet.getCursorName(), using the ResultSet which contains the bean/row being updated.
This parameter is used to perform "positional update", a more efficient data updating mechanism supported
by certain Resource Managers (mostly, relational databases). If a Resource Adapter does not support
positioned update then this parameter can be ignored.javax.resource.ResourceException
- The exception description.javax.ejb.EJBException
javax.resource.cci.Record executeUpdate(javax.resource.cci.Interaction interaction, javax.resource.cci.InteractionSpec ispec, javax.resource.cci.IndexedRecord[] inputrec, javax.resource.cci.IndexedRecord[] predicates, boolean[][] dirtyBits, java.lang.String cursorName) throws javax.ejb.EJBException, javax.resource.ResourceException
javax.ejb.EJBException
javax.resource.ResourceException
javax.resource.cci.Record executeOther(javax.resource.cci.Interaction interaction, javax.resource.cci.InteractionSpec ispec, javax.resource.cci.IndexedRecord inputRecord) throws javax.resource.ResourceException
interaction
- javax.resource.cci.Interaction the interaction this method should call "execute(...)" onispec
- javax.resource.cci.InteractionSpec see J2EE Connector spec, CCIinputRecord
- javax.resource.cci.IndexedRecord see J2EE Connector spec, CCI.This parameter may be null,
which indicates there are no input parameters for this function.javax.resource.ResourceException
javax.resource.cci.Record executeOther(javax.resource.cci.Interaction interaction, javax.resource.cci.InteractionSpec ispec, javax.resource.cci.IndexedRecord[] inputRecord) throws javax.resource.ResourceException
javax.resource.ResourceException
javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionFactory connectionFactory, AccessIntent accessIntent) throws javax.resource.ResourceException
connectionFactory
- javax.resource.cci.ConnectionFactory see J2EE Connector spec, CCIaccessIntent
- com.ibm.ws.ejbpersistence.AccessIntent data class to hold
access-intent-related info of potential use by any Resource Adapter. This method uses this
parameter to locate a possible cached connection suitable for use with this AccessIntent.
If there is no such cached connection, PM obtains one and caches it for future use.javax.resource.ResourceException
java.lang.Object getNativeConnection(javax.resource.cci.Connection conn)
javax.resource.cci.RecordFactory getRecordFactory(javax.resource.cci.ConnectionFactory connectionFactory) throws javax.resource.ResourceException
javax.resource.ResourceException
int getLockType(javax.resource.cci.ConnectionFactory connectionFactory, AccessIntent accessIntent)
boolean isBatchSupported(javax.resource.cci.ConnectionFactory connectionFactory, AccessIntent accessIntent)
boolean checkBackendId(javax.resource.cci.ConnectionFactory connectionFactory, java.lang.String backendId) throws javax.resource.ResourceException
javax.resource.ResourceException
boolean[] executeReadReadChecking(javax.resource.cci.Interaction interaction, javax.resource.cci.InteractionSpec ispec, javax.resource.cci.IndexedRecord[] input) throws javax.ejb.EJBException, javax.resource.ResourceException
javax.ejb.EJBException
javax.resource.ResourceException
int getLockType(javax.resource.cci.ConnectionFactory connectionFactory, AccessIntent accessIntent, java.util.HashMap properties)