|
Oracle® TimesTen In-Memory Database JMS/XLA Java API Reference Release 11.2.1 E13084-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TargetDataStore
This interface is used to apply XLA update records from a source datastore to a target datastore. It assumes that the source and target datastore schema are IDENTICAL for the subject tables.
| Method Summary | |
|---|---|
int |
apply(byte[] updateDescriptor)Applies XLA update descriptor to the target datastore. |
int |
apply(byte[] updateDescriptor, boolean useCommitFlag)Applies XLA update descriptor to the target datastore. |
int |
apply(byte[] updateDescriptor, boolean useCommitFlag, boolean checkUpdateConflict)Applies XLA update descriptor to the target datastore. |
void |
close()Closes the connections to the datastore and releases all the resources in a timely manner. |
int |
commit()Use this method to perform a manual commit. |
boolean |
getAutoCommitFlag()Returns the value of autocommit flag. |
java.lang.String |
getConnectionString()Returns the connection string for this data store. |
boolean |
getUpdateConflictCheckFlag()Returns the value of the flag to check update conflicts. |
boolean |
isClosed()Use this method to check if this object is closed. |
boolean |
isDataStoreValid()Checks if the datastore is valid. |
int |
rollback()Use this method to rollback the last transaction in case of errors. |
void |
setAutoCommitFlag(boolean flag)Sets the flag for autocommit during apply. |
void |
setUpdateConflictCheckFlag(boolean flag)Sets the flag for checking update conflicts during apply. |
| Method Detail |
|---|
java.lang.String getConnectionString()
void setUpdateConflictCheckFlag(boolean flag)
flag - If set to true, update conflicts will be checked during apply.apply(byte[]), apply(byte[], boolean)boolean getUpdateConflictCheckFlag()
void setAutoCommitFlag(boolean flag)
flag - If set to true, apply will commit if TT_UPDCOMMIT is set or record type is COMMITONLY.apply(byte[]), commit(), rollback()boolean getAutoCommitFlag()
int apply(byte[] updateDescriptor)
throws javax.jms.JMSException
updateDescriptor - XLA update descriptor. This can be extracted from JMS/XLA TimesTenMapMessage.javax.jms.JMSException - If there are database errors or schema mismatch, this exception will be thrown.setAutoCommitFlag(boolean), setUpdateConflictCheckFlag(boolean)
int apply(byte[] updateDescriptor,
boolean useCommitFlag)
throws javax.jms.JMSException
updateDescriptor - XLA update descriptor. This can be extracted from JMS/XLA TimesTenMapMessage.useCommitFlag - If set, transactions will be committed if TT_UPDCOMMIT flag is set or if the record type is COMMITONLY.javax.jms.JMSException - If there are database errors or schema mismatch, this exception will be thrown.setUpdateConflictCheckFlag(boolean)
int apply(byte[] updateDescriptor,
boolean useCommitFlag,
boolean checkUpdateConflict)
throws javax.jms.JMSException
updateDescriptor - XLA update descriptor. This can be extracted from JMS/XLA TimesTenMapMessage.useCommitFlag - If set, transactions will be committed if TT_UPDCOMMIT flag is set or if the record type is COMMITONLY.checkUpdateConflict - If set, check for update conflicts and report.javax.jms.JMSException - If there are database errors or schema mismatch, this exception will be thrown.
int commit()
throws javax.jms.JMSException
javax.jms.JMSException - if commit fails.setAutoCommitFlag(boolean)
int rollback()
throws javax.jms.JMSException
javax.jms.JMSException - if rollback fails.
boolean isDataStoreValid()
throws javax.jms.JMSException
javax.jms.JMSException - if it cannot ascertain the status of the datastore.close()
void close()
throws javax.jms.JMSException
javax.jms.JMSException - if some unrecoverable error occurs while closing.boolean isClosed()
|
Oracle® TimesTen In-Memory Database JMS/XLA Java API Reference Release 11.2.1 E13084-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||