|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.lib.AbstractPMapcluster
Abstract common implementation of a PMapCluster. This implementation manages the dependencies (the list of classes of the cluster).
Field Summary | |
protected java.util.Set |
jcNames
The names of the Jorm classes defined and managed by this PMapCluster |
protected boolean |
structuresActive
Indicates if the cluster is active: - data structure created - cluster started |
protected java.util.Set |
unresolvedDependencies
The names of the Jorm classes not yet defined but to manage by this PMapCluster. |
Constructor Summary | |
AbstractPMapcluster()
|
Method Summary | |
void |
addDependency(java.lang.String jcname)
Add a dependency to the cluster |
void |
classDefined(java.lang.String jcname)
|
boolean |
containClass(java.lang.String jcname)
Looks for this JORM class name into this map cluster. |
java.util.Collection |
getClusterClasses()
Retrieves an Iterator over the collection of all JORM classes whose mapping structures have to be controlled altogether. |
java.util.Set |
getUnResolvedDependencies()
|
boolean |
isDefined()
Indicates if the mapping cluster is fully defined. |
void |
start()
Starts this map cluster. |
void |
stop()
Stops this map cluster. |
void |
updateMappingStructures()
Aligns existing mapping structures to the ones define by this map cluster. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jorm.api.PMapCluster |
createMappingStructures, deleteData, deleteMappingStructures |
Field Detail |
protected java.util.Set jcNames
protected java.util.Set unresolvedDependencies
protected boolean structuresActive
Constructor Detail |
public AbstractPMapcluster()
Method Detail |
public java.util.Collection getClusterClasses()
getClusterClasses
in interface PMapCluster
public boolean isDefined()
PMapCluster
isDefined
in interface PMapCluster
public java.util.Set getUnResolvedDependencies()
getUnResolvedDependencies
in interface PMapCluster
public void addDependency(java.lang.String jcname)
PMapCluster
addDependency
in interface PMapCluster
jcname
- the name of the jorm classpublic void classDefined(java.lang.String jcname)
classDefined
in interface PMapCluster
public boolean containClass(java.lang.String jcname)
jcname
- The JORM class name.
public void start() throws PException
start
in interface PMapCluster
org.objectweb.jorm.api.PException
PException
public void stop() throws PException
stop
in interface PMapCluster
org.objectweb.jorm.api.PException
PException
public void updateMappingStructures() throws PException, java.lang.UnsupportedOperationException
updateMappingStructures
in interface PMapCluster
org.objectweb.jorm.api.PException
- Thrown when the data store cannot perform this
operation.
java.lang.UnsupportedOperationException
- Thrown if this operation is not
supported by the mapping.
PException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |