public class PersistentContainer<T> extends RecoverableContainer<T>
_objectModel, _transactionalProxies, _type
Constructor and Description |
---|
PersistentContainer()
Create a container without a name.
|
PersistentContainer(int objectModel)
Create a container without a name.
|
PersistentContainer(String name)
Create a named container.
|
PersistentContainer(String name,
int objectModel)
Create a named container.
|
Modifier and Type | Method and Description |
---|---|
T |
enlist(T member)
Given an object we create a new transactional instance of it and return that
for future use.
|
T |
recreate(T member,
Uid id)
Given a unique identifier, the container will either return an existing handle to the object or
recreate the handle with the same state that existed at the commit of the last transaction to use it.
|
String |
toString()
Gives the name of the container.
|
checkObjectType, createHandle, enlist, getHandle, getUidForHandle, getUidForOriginal, isPessimistic, name, objectModel, objectType
public PersistentContainer()
public PersistentContainer(String name)
name
- the name (should be unique, but this is not enforced).public PersistentContainer(int objectModel)
global
- whether the instances are to be shared across address spaces
or classloaders.public PersistentContainer(String name, int objectModel)
name
- the name (should be unique, but this is not enforced).global
- whether the instances are to be shared across address spaces
or classloaders.public T enlist(T member)
enlist
in class RecoverableContainer<T>
member
- the instance of type T that you want to be made transactional and persistent.public T recreate(T member, Uid id)
member
- the instance of type T that you want to be made transactional and persistent.id
- the unique identifier for the instance.public String toString()
toString
in class RecoverableContainer<T>
Copyright © 2021 JBoss by Red Hat. All rights reserved.