All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nyla.solutions.global.patterns.transaction.Transactional Maven / Gradle / Ivy

Go to download

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy