public abstract class AbstractUPSContext<ENTITY,ENTITY_ID,BLUEPRINT extends ENTITY,EDITOR extends ENTITY,PARENT,WORKER extends UPSWorker<ENTITY,ENTITY_ID,BLUEPRINT,EDITOR,PARENT,CONTEXT,WORKER>,CONTEXT extends UPSContext<ENTITY,ENTITY_ID,BLUEPRINT,EDITOR,PARENT,WORKER,CONTEXT>> extends Object implements UPSContext<ENTITY,ENTITY_ID,BLUEPRINT,EDITOR,PARENT,WORKER,CONTEXT>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RANDOM_STRING_LENGTH |
| Constructor and Description |
|---|
AbstractUPSContext(WORKER worker,
PARENT parent,
Session session) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, generate, getEntityIDpublic static final int DEFAULT_RANDOM_STRING_LENGTH
public ENTITY detachEntity() throws IllegalStateException
detachEntity in interface UPSContext<ENTITY,ENTITY_ID,BLUEPRINT extends ENTITY,EDITOR extends ENTITY,PARENT,WORKER extends UPSWorker<ENTITY,ENTITY_ID,BLUEPRINT,EDITOR,PARENT,CONTEXT,WORKER>,CONTEXT extends UPSContext<ENTITY,ENTITY_ID,BLUEPRINT,EDITOR,PARENT,WORKER,CONTEXT>>IllegalStateExceptionpublic CONTEXT findAll()
public BlueprintList<ENTITY,ENTITY_ID,BLUEPRINT,EDITOR,PARENT,WORKER,CONTEXT> generate(int count)
public CONTEXT persist(Collection<? extends BLUEPRINT> blueprints)
public CONTEXT merge(Collection<? extends ENTITY> entities)
public CONTEXT removeAll()
public CONTEXT remove(Collection<? extends ENTITY> entities)
public PARENT getParent()
public WORKER getWorker()
public Session getSession()
protected void store(EDITOR editor)
protected void localRemove(ENTITY_ID id)
protected boolean contains(ENTITY_ID id)
protected void clear()
protected String randomString()
protected String randomStringOfLength(int length)
protected abstract CONTEXT castInstance()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.