public class DefaultFactories extends java.util.ArrayList implements PersistenceManager.Factories
Constructor and Description |
---|
DefaultFactories() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(PersistenceFactory factory)
Add a new class to the factory.
|
boolean |
add(PersistenceFactory factory,
java.lang.String classNameAlias)
Add a new factory to the list registering an alias.
|
PersistenceFactory |
get(java.lang.Class theClass)
Return factory associated to class passed as parameter.
|
PersistenceFactory |
get(java.lang.Object object)
Return factory associated to the object passed as parameter.
|
PersistenceFactory |
get(PersistentState state)
Return factory associated to the object stored in the state.
|
PersistenceFactory |
get(java.lang.String className)
Return the associated persistence factory to the java class name passed
as parameter
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
public boolean add(PersistenceFactory factory, java.lang.String classNameAlias)
PersistenceManager.Factories
add
in interface PersistenceManager.Factories
public boolean add(PersistenceFactory factory)
PersistenceManager.Factories
add
in interface PersistenceManager.Factories
public PersistenceFactory get(java.lang.String className)
className
- public PersistenceFactory get(java.lang.Class theClass)
PersistenceManager.Factories
get
in interface PersistenceManager.Factories
public PersistenceFactory get(java.lang.Object object)
PersistenceManager.Factories
get
in interface PersistenceManager.Factories
public PersistenceFactory get(PersistentState state)
PersistenceManager.Factories
get
in interface PersistenceManager.Factories