FileDocCategorySizeDatePackage
IASPersistenceManagerDescriptor.javaAPI DocGlassfish v2 API6365Fri May 04 22:31:50 BST 2007com.sun.enterprise.deployment.runtime

IASPersistenceManagerDescriptor

public class IASPersistenceManagerDescriptor extends Descriptor
This class contains information about the persistent state (abstract persistence schema) for EJB2.0 CMP EntityBeans .
author
Prashant Jamkhedkar

Fields Summary
public static final String
PM_IDENTIFIER_DEFAULT
public static final String
PM_VERSION_DEFAULT
public static final String
PM_CONFIG_DEFAULT
public static final String
PM_CLASS_GENERATOR_DEFAULT
public static final String
PM_CLASS_GENERATOR_DEFAULT_OLD
public static final String
PM_MAPPING_FACTORY_DEFAULT
private String
pm_identifier
private String
pm_version
private String
pm_config
private String
pm_class_generator
private String
pm_mapping_factory
private static com.sun.enterprise.util.LocalStringManagerImpl
localStrings
private static final Logger
_logger
private Descriptor
parentDesc
Constructors Summary
public IASPersistenceManagerDescriptor()

 //the bean whose persistence I describe


      
       pm_identifier = PM_IDENTIFIER_DEFAULT;
       pm_version = PM_VERSION_DEFAULT;
       pm_config = PM_CONFIG_DEFAULT;
       pm_class_generator = PM_CLASS_GENERATOR_DEFAULT;
       pm_mapping_factory = PM_MAPPING_FACTORY_DEFAULT;
       _logger.finer("***IASPersistenceManagerDescriptor.constructed done -#-");	              
    
public IASPersistenceManagerDescriptor(String id, String ver, String conf, String generator, String factory)
The copy constructor.

    
       pm_identifier = id;
       pm_version = ver;
       pm_config = conf;
       pm_class_generator = generator;
       pm_mapping_factory = factory;

       _logger.finer("***IASPersistenceManagerDescriptor.constructed done -#-");	       
    
Methods Summary
public booleanclassesChanged()
Called from EjbCMPEntityDescriptor when some classes in this object are updated.

        return false;
    
public java.lang.StringgetPersistenceManagerClassGenerator()

      return pm_class_generator;
    
public java.lang.StringgetPersistenceManagerConfig()

      return pm_config;
    
public java.lang.StringgetPersistenceManagerIdentifier()

      return pm_identifier;
    
public java.lang.StringgetPersistenceManagerMappingFactory()

      return pm_mapping_factory;
    
public java.lang.StringgetPersistenceManagerVersion()

      return pm_version;
    
public voidsetPersistenceManagerClassGenerator(java.lang.String pm_class_generator)

        if (pm_class_generator == null) {
            this.pm_class_generator = PM_CLASS_GENERATOR_DEFAULT;
        } else {
            this.pm_class_generator = pm_class_generator;
        }
    
public voidsetPersistenceManagerConfig(java.lang.String pm_config)

        if (pm_config == null) {
            this.pm_config = PM_CONFIG_DEFAULT;
        } else {
            this.pm_config = pm_config;
        }
    
public voidsetPersistenceManagerIdentifier(java.lang.String pm_identifier)

        if (pm_identifier == null) {
            this.pm_identifier = PM_IDENTIFIER_DEFAULT;
        } else {
            this.pm_identifier = pm_identifier;
        }
    
public voidsetPersistenceManagerMappingFactory(java.lang.String pm_mapping_factory)

        if (pm_mapping_factory == null) {
            this.pm_mapping_factory = PM_MAPPING_FACTORY_DEFAULT;
        } else {
            this.pm_mapping_factory = pm_mapping_factory;
        }
    
public voidsetPersistenceManagerVersion(java.lang.String pm_version)

        if (pm_version == null) {
            this.pm_version = PM_VERSION_DEFAULT;
        } else {
            this.pm_version = pm_version;
        }