org.gvsig.tools.persistence
Interface PersistenceManager.Factories

All Superinterfaces:
Collection, Iterable, List
All Known Implementing Classes:
DefaultFactories
Enclosing interface:
PersistenceManager

public static interface PersistenceManager.Factories
extends List


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.
 
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
 

Method Detail

add

boolean add(PersistenceFactory factory,
            String classNameAlias)
Add a new factory to the list registering an alias. If factory already registered anly add the alias.

Parameters:
factory -
classNameAlias -
Returns:
true when ok.

add

boolean add(PersistenceFactory factory)
Add a new class to the factory.

Parameters:
factory -
Returns:
true when ok

get

PersistenceFactory get(Class theClass)
Return factory associated to class passed as parameter.

Parameters:
class - name
Returns:
Persistence factory that manage the class

get

PersistenceFactory get(Object object)
Return factory associated to the object passed as parameter.

Parameters:
object -
Returns:
Persistence factory that manage object

get

PersistenceFactory get(PersistentState state)
Return factory associated to the object stored in the state.

Parameters:
state -
Returns:
Persistence factory that manage the state


Copyright © 2004-2011 gvSIG. All Rights Reserved.