org.objectweb.jorm.mapper.fos.lib
Class FosPMapCluster

java.lang.Object
  extended byorg.objectweb.jorm.lib.AbstractPMapcluster
      extended byorg.objectweb.jorm.mapper.fos.lib.FosPMapCluster
All Implemented Interfaces:
PMapCluster

public class FosPMapCluster
extends AbstractPMapcluster

Defines the PMapCluster used to manage the directory tree for the FOS mappers.

Author:
P. Dechamboux

Field Summary
 
Fields inherited from class org.objectweb.jorm.lib.AbstractPMapcluster
jcNames, structuresActive, unresolvedDependencies
 
Method Summary
 void createMappingStructures(boolean force)
          Creates the mapping structures defined by this map cluster.
 void deleteData()
          Deletes the data that have been inserted into the mapping structures defined by this map cluster.
 void deleteMappingStructures()
          Deletes all or part of the mapping structures defined by this map cluster when they exist.
 
Methods inherited from class org.objectweb.jorm.lib.AbstractPMapcluster
addDependency, classDefined, containClass, getClusterClasses, getUnResolvedDependencies, isDefined, start, stop, updateMappingStructures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createMappingStructures

public void createMappingStructures(boolean force)
                             throws PException
Creates the mapping structures defined by this map cluster. Nothing to do with FOS.

Parameters:
force - If true, the creation of an existing table leads to an exception.
Throws:
PException - Thrown if it cannot be performed (especially if all or some of these mapping structures already exist.

deleteData

public void deleteData()
                throws PException
Deletes the data that have been inserted into the mapping structures defined by this map cluster.

Throws:
PException - Thrown when the data store cannot perform this operation.

deleteMappingStructures

public void deleteMappingStructures()
                             throws PException
Deletes all or part of the mapping structures defined by this map cluster when they exist. If they contain some data, they are also deleted.

Throws:
PException - Thrown when the data store cannot perform this operation.