com.googlecode.objectify.TxnType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectify Show documentation
Show all versions of objectify Show documentation
The simplest convenient interface to the Google App Engine datastore
package com.googlecode.objectify;
/**
* Just like the EJB options. See http://docs.oracle.com/javaee/6/api/javax/ejb/TransactionAttributeType.html
*
* @author Jeff Schnitzer
*/
public enum TxnType
{
/** Require that there must already be a transaction running. If no transaction, throw an IllegalStateException. */
MANDATORY,
/** Require that there must NOT be a transaction running. If there is, throw an IllegalStateException. */
NEVER,
/** Execute the work without a transaction, pausing an existing transaction if there is one. */
NOT_SUPPORTED,
/** Use the existing transaction (if present), or start a new transaction if not. */
REQUIRED,
/** Start a new transaction, pausing the old one. */
REQUIRES_NEW,
/** Inherits previous transaction state. */
SUPPORTS;
}