public class DefaultFactories extends ArrayList implements PersistenceManager.Factories
modCount
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,
String classNameAlias)
Add a new factory to the list registering an alias.
|
PersistenceFactory |
get(Class theClass)
Return factory associated to class passed as parameter.
|
PersistenceFactory |
get(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(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
equals, hashCode
containsAll, toString
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
parallelStream, removeIf, stream
public boolean add(PersistenceFactory factory, String classNameAlias)
PersistenceManager.Factories
add
in interface PersistenceManager.Factories
public boolean add(PersistenceFactory factory)
PersistenceManager.Factories
add
in interface PersistenceManager.Factories
public PersistenceFactory get(String className)
className
- public PersistenceFactory get(Class theClass)
PersistenceManager.Factories
get
in interface PersistenceManager.Factories
public PersistenceFactory get(Object object)
PersistenceManager.Factories
get
in interface PersistenceManager.Factories
public PersistenceFactory get(PersistentState state)
PersistenceManager.Factories
get
in interface PersistenceManager.Factories