org.gvsig.tools.persistence.impl
Class DefaultFactories

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
DefaultFactories()
           
 
Method Summary
 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
 
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 class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

DefaultFactories

public DefaultFactories()
Method Detail

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.