src/main/java/com/googlecode/objectify/impl/TransactorNo.java
@Override
	public <R> R execute(final ObjectifyImpl parent, final TxnType txnType, final Work<R> work) {
		switch (txnType) {
			case MANDATORY:
				throw new IllegalStateException("MANDATORY transaction but no transaction present");

			case NOT_SUPPORTED:
			case NEVER:
			case SUPPORTS:
				return work.run();

			case REQUIRED:
			case REQUIRES_NEW:
				return transact(parent, work);

			default:
				throw new IllegalStateException("Impossible, some unknown txn type");
		}

	}
@Override
	public <R> R execute(final ObjectifyImpl parent, final TxnType txnType, final Work<R> work) {
		switch (txnType) {
			case MANDATORY:
				throw new IllegalStateException("MANDATORY transaction but no transaction present");

			case NOT_SUPPORTED:
			case NEVER:
			case SUPPORTS:
				return work.run();

			case REQUIRED:
			case REQUIRES_NEW:
				return transact(parent, work);

			default:
				throw new IllegalStateException("Impossible, some unknown txn type");
		}

	}
@ Override public < R > R execute ( final ObjectifyImpl parent , final TxnType txnType , final Work < R > work ) { switch ( txnType ) { case MANDATORY : throw new IllegalStateException ( "MANDATORY transaction but no transaction present" ) ; case NOT_SUPPORTED : case NEVER : case SUPPORTS : return work . run ( ) ; case REQUIRED : case REQUIRES_NEW : return transact ( parent , work ) ; default : throw new IllegalStateException ( "Impossible, some unknown txn type" ) ; } }
/* (non-Javadoc)
@see com.googlecode.objectify.impl.cmd.Transactor#execute(com.googlecode.objectify.TxnType, com.googlecode.objectify.Work)
/ * ( non - Javadoc )