public class Container<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Container.TYPE |
Constructor and Description |
---|
Container()
Create a container without a name.
|
Container(Container.TYPE type) |
Container(String name)
Create a named container.
|
Container(String name,
Container.TYPE type) |
Modifier and Type | Method and Description |
---|---|
T |
clone(T instance,
T proxy)
Given an identified for an existing object, create another handle.
|
T |
create(T member)
Given an object we create a new transactional instance of it and return that
for future use.
|
String |
name()
Get the name of the container.
|
Container.TYPE |
type() |
public Container()
public Container(Container.TYPE type)
public Container(String name)
name
- the name (should be unique, but this is not enforced).public Container(String name, Container.TYPE type)
public final String name()
public final Container.TYPE type()
public T create(T member)
member
- the instance of type T that you want to be made transactional and persistent.public T clone(T instance, T proxy)
member
- the instance of type T that you want to be made transactional and persistent.id
- the Uid of the object.Copyright © 2013. All rights reserved.