public abstract class Transactor<O extends Objectify> extends Object
Modifier and Type | Field and Description |
---|---|
protected Deferrer |
deferrer
Any deferred operations
|
protected Session |
session
Our session
|
Constructor and Description |
---|
Transactor(Objectify ofy)
Construct a transactor with a fresh session
|
Transactor(Objectify ofy,
Session session)
Construct a transactor with an explicit session
|
Modifier and Type | Method and Description |
---|---|
abstract <R> R |
execute(ObjectifyImpl<O> parent,
TxnType txnType,
Work<R> work) |
Deferrer |
getDeferrer() |
Session |
getSession() |
abstract TransactionImpl |
getTransaction() |
abstract <R> R |
transact(ObjectifyImpl<O> parent,
Work<R> work) |
abstract ObjectifyImpl<O> |
transactionless(ObjectifyImpl<O> parent) |
abstract <R> R |
transactNew(ObjectifyImpl<O> parent,
int limitTries,
Work<R> work) |
protected Session session
protected Deferrer deferrer
public Transactor(Objectify ofy)
public Session getSession()
public Deferrer getDeferrer()
public abstract TransactionImpl getTransaction()
public abstract ObjectifyImpl<O> transactionless(ObjectifyImpl<O> parent)
parent
- is the parent objectify instance; the one being transitioned frompublic abstract <R> R execute(ObjectifyImpl<O> parent, TxnType txnType, Work<R> work)
Objectify.execute(TxnType, Work)
public abstract <R> R transact(ObjectifyImpl<O> parent, Work<R> work)
Objectify.transact(Work)
public abstract <R> R transactNew(ObjectifyImpl<O> parent, int limitTries, Work<R> work)
Objectify.transactNew(int, Work)
Copyright © 2016. All rights reserved.