nyla.solutions.global.patterns.transaction.Transactional Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nyla.solutions.global Show documentation
Show all versions of nyla.solutions.global Show documentation
Nyla Solutions Global Java API provides support for basic application
utilities (application configuration, data encryption, debugger and text
processing).
The newest version!
package nyla.solutions.global.patterns.transaction;
/**
* This interface indicates the nature of a function call transaction support.
*
* NONE - non-transaction
* READONLY- read (not write)
* WRITE - read/write or read transaction data
* @author Gregory Green
*
*/
public interface Transactional
{
/**
*
* NONE - no transaction support
* READONLY- read (not write) transaction
* WRITE - read/write or read transaction data
*/
public enum TransactionType
{
NONE,
READONLY,
WRITE
}// ------------------------------------------------
/**
* Set the transaction type
* @param transactionType the transaction type to set
*/
void setTransactionType(TransactionType transactionType);
/**
*
* @return the current transaction status
*/
TransactionType getTransactionType();
}