FileDocCategorySizeDatePackage
PersistenceUnitDescriptor.javaAPI DocGlassfish v2 API6056Fri May 04 22:31:22 BST 2007com.sun.enterprise.deployment

PersistenceUnitDescriptor

public class PersistenceUnitDescriptor extends Descriptor
A persistence.xml file can contain one or more s This class represents information about a .
author
Sanjeeb.Sahoo@Sun.COM

Fields Summary
private PersistenceUnitsDescriptor
parent
private String
name
private String
transactionType
private String
description
private String
provider
private String
jtaDataSource
private String
nonJtaDataSource
private List
mappingFiles
private List
jarFiles
private List
classes
private Properties
properties
private boolean
excludeUnlistedClasses
Constructors Summary
public PersistenceUnitDescriptor()


      
    
Methods Summary
public voidaddClass(java.lang.String className)

        classes.add(className);
        this.changed();
    
public voidaddJarFile(java.lang.String jarFile)

        jarFiles.add(jarFile);
        this.changed();
    
public voidaddMappingFile(java.lang.String mappingFile)

        mappingFiles.add(mappingFile);
    
public voidaddProperty(java.lang.String name, java.lang.Object value)

        properties.put(name, value);
        this.changed();
    
public java.lang.StringgetAbsolutePuRoot()

return
the absolute path of the root of this persistence unit
see
#getPuRoot()
see
PersistenceUnitsDescriptor#getAbsolutePuRoot()

        return getParent().getAbsolutePuRoot();
     
public java.lang.ClassLoadergetClassLoader()

        return getParent().getClassLoader();
    
public java.util.ListgetClasses()

        return Collections.unmodifiableList(classes);
    
public java.lang.StringgetDescription()

        return description;
    
public java.util.ListgetJarFiles()

        return Collections.unmodifiableList(jarFiles);
    
public java.lang.StringgetJtaDataSource()

        return jtaDataSource;
    
public java.util.ListgetMappingFiles()

        return Collections.unmodifiableList(mappingFiles);
    
public java.lang.StringgetName()

        return name;
    
public java.lang.StringgetNonJtaDataSource()

        return nonJtaDataSource;
    
public PersistenceUnitsDescriptorgetParent()

        return parent;
    
public java.util.PropertiesgetProperties()

        return (Properties) properties.clone();
    
public java.lang.StringgetProvider()

        return provider;
    
public java.lang.StringgetPuRoot()

        return parent.getPuRoot();
    
public java.lang.StringgetTransactionType()

        return transactionType;
    
public booleanisExcludeUnlistedClasses()

        return excludeUnlistedClasses;
    
public voidsetDescription(java.lang.String description)

        this.description = description;
    
public voidsetExcludeUnlistedClasses(boolean excludeUnlistedClasses)

        this.excludeUnlistedClasses = excludeUnlistedClasses;
    
public voidsetJtaDataSource(java.lang.String value)

        this.jtaDataSource = value;
        this.changed();
    
public voidsetName(java.lang.String value)

        this.name = value;
        this.changed();
    
public voidsetNonJtaDataSource(java.lang.String value)

        this.nonJtaDataSource = value;
        this.changed();
    
protected voidsetParent(PersistenceUnitsDescriptor parent)

        assert(this.parent==null);
        this.parent = parent;
    
public voidsetProvider(java.lang.String value)

        this.changed();
        this.provider = value;
    
public voidsetTransactionType(java.lang.String transactionType)

        this.transactionType = transactionType;