org.gvsig.tools.persistence.impl
Class DefaultFactories
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
org.gvsig.tools.persistence.impl.DefaultFactories
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, List, RandomAccess, PersistenceManager.Factories
public class DefaultFactories
- extends ArrayList
- implements PersistenceManager.Factories
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
DefaultFactories
public DefaultFactories()
add
public boolean add(PersistenceFactory factory,
String classNameAlias)
- Description copied from interface:
PersistenceManager.Factories
- Add a new factory to the list registering an alias.
If factory already registered anly add the alias.
- Specified by:
add
in interface PersistenceManager.Factories
- Returns:
- true when ok.
add
public boolean add(PersistenceFactory factory)
- Description copied from interface:
PersistenceManager.Factories
- Add a new class to the factory.
- Specified by:
add
in interface PersistenceManager.Factories
- Returns:
- true when ok
get
public PersistenceFactory get(String className)
- Return the associated persistence factory to the java class name passed as parameter
- Parameters:
className
-
- Returns:
get
public PersistenceFactory get(Class theClass)
- Description copied from interface:
PersistenceManager.Factories
- Return factory associated to class passed as parameter.
- Specified by:
get
in interface PersistenceManager.Factories
- Returns:
- Persistence factory that manage the class
get
public PersistenceFactory get(Object object)
- Description copied from interface:
PersistenceManager.Factories
- Return factory associated to the object passed as parameter.
- Specified by:
get
in interface PersistenceManager.Factories
- Returns:
- Persistence factory that manage object
get
public PersistenceFactory get(PersistentState state)
- Description copied from interface:
PersistenceManager.Factories
- Return factory associated to the object stored in the state.
- Specified by:
get
in interface PersistenceManager.Factories
- Returns:
- Persistence factory that manage the state
Copyright © 2004-2011 gvSIG. All Rights Reserved.