DODS 7.3 API

com.lutris.appserver.server.sql
Interface CachedDBTransaction

All Superinterfaces:
DBTransaction
All Known Implementing Classes:
InformixDBTransaction, OracleDBTransaction, StandardDBTransaction

public interface CachedDBTransaction
extends DBTransaction

Author:
P.Djojic

Method Summary
 void addDeletedDO(CoreDO DO)
           
 java.util.List checkChanged(java.lang.String tableName, QueryCacheItem queryItem, Transaction[] array)
           
 void dontAggregateDOModifications()
           
 boolean getAutoWrite()
          Method returns value of a data member.
 java.util.Vector getDeletedDOs()
           
 CoreDO[] getDOs()
          Gets an array of DOs.
 DOCache getTransactionCache()
          Method return transaction Cache
 boolean isFirstWrite()
           
 boolean isHolding()
           
 boolean isReleased()
          Method to ensure this object is still valid.
 boolean isTableModified(java.lang.String tableName)
          Returns indicator whether the table defined with tableName parameter was changed in the transaction (if there were any inserts and/or deletes and/or updates).
 void resetDeletedDOs()
           
 void saveDirtyDOs()
           
 void setFirstWrite(boolean newfw)
           
 boolean wasReadOnly()
          Although it's internally used to skip uneccessary commits against the database, this information is made publicly accessible through this method.
 
Methods inherited from interface com.lutris.appserver.server.sql.DBTransaction
commit, createQuery, delete, getDatabaseName, getDO, getDO, handleException, insert, lockDO, preventCacheQueries, release, rollback, setDatabaseName, update, write
 

Method Detail

isReleased

boolean isReleased()
Method to ensure this object is still valid. Once this object has been released it cannot be used any more.

Returns:
boolean True if the transaction is released, otherwise false

getDOs

CoreDO[] getDOs()
Gets an array of DOs.

Returns:
array of DOs from this transaction

saveDirtyDOs

void saveDirtyDOs()

getTransactionCache

DOCache getTransactionCache()
Method return transaction Cache

Returns:
implementation of DOCache

getDeletedDOs

java.util.Vector getDeletedDOs()

addDeletedDO

void addDeletedDO(CoreDO DO)

resetDeletedDOs

void resetDeletedDOs()

dontAggregateDOModifications

void dontAggregateDOModifications()

getAutoWrite

boolean getAutoWrite()
Method returns value of a data member.

Returns:
value of config parameter AutoWrite true means all DOs are writen into database, as they come in false - no writes are done implicitly

isFirstWrite

boolean isFirstWrite()

setFirstWrite

void setFirstWrite(boolean newfw)

wasReadOnly

boolean wasReadOnly()
Although it's internally used to skip uneccessary commits against the database, this information is made publicly accessible through this method. Application may decide would it call a commit method or not thus improving performance a bit more.

Returns:
true if no writes happened

isHolding

boolean isHolding()

checkChanged

java.util.List checkChanged(java.lang.String tableName,
                            QueryCacheItem queryItem,
                            Transaction[] array)

isTableModified

boolean isTableModified(java.lang.String tableName)
Returns indicator whether the table defined with tableName parameter was changed in the transaction (if there were any inserts and/or deletes and/or updates).

Returns:
true if the table was changed in the transaction.

DODS 7.3 API