net.sourceforge.ccxjc.it.model.priv.indexed.valueclass.persistence.orm
Class PersistenceUnitDefaults

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.priv.indexed.valueclass.persistence.orm.PersistenceUnitDefaults
All Implemented Interfaces:
Serializable, Cloneable

public class PersistenceUnitDefaults
extends Object
implements Serializable, Cloneable

These defaults are applied to the persistence unit as a whole unless they are overridden by local annotation or XML element settings. schema - Used as the schema for all tables or secondary tables that apply to the persistence unit catalog - Used as the catalog for all tables or secondary tables that apply to the persistence unit access - Used as the access type for all managed classes in the persistence unit cascade-persist - Adds cascade-persist to the set of cascade options in entity relationships of the persistence unit entity-listeners - List of default entity listeners to be invoked on each entity in the persistence unit.

Java class for persistence-unit-defaults complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="persistence-unit-defaults">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" minOccurs="0"/>
         <element name="cascade-persist" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
         <element name="entity-listeners" type="{http://java.sun.com/xml/ns/persistence/orm}entity-listeners" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  AccessType access
           
protected  EmptyType cascadePersist
           
protected  String catalog
           
protected  EntityListeners entityListeners
           
protected  String schema
           
 
Constructor Summary
PersistenceUnitDefaults()
          Creates a new net.sourceforge.ccxjc.it.model.priv.indexed.valueclass.persistence.orm.PersistenceUnitDefaults instance.
PersistenceUnitDefaults(PersistenceUnitDefaults o)
          Creates a new net.sourceforge.ccxjc.it.model.priv.indexed.valueclass.persistence.orm.PersistenceUnitDefaults instance by copying a given instance.
 
Method Summary
 PersistenceUnitDefaults clone()
          Creates and returns a copy of this object.
 AccessType getAccess()
          Gets the value of the access property.
 EmptyType getCascadePersist()
          Gets the value of the cascadePersist property.
 String getCatalog()
          Gets the value of the catalog property.
 EntityListeners getEntityListeners()
          Gets the value of the entityListeners property.
 String getSchema()
          Gets the value of the schema property.
 void setAccess(AccessType value)
          Sets the value of the access property.
 void setCascadePersist(EmptyType value)
          Sets the value of the cascadePersist property.
 void setCatalog(String value)
          Sets the value of the catalog property.
 void setEntityListeners(EntityListeners value)
          Sets the value of the entityListeners property.
 void setSchema(String value)
          Sets the value of the schema property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schema

protected String schema

catalog

protected String catalog

access

protected AccessType access

cascadePersist

protected EmptyType cascadePersist

entityListeners

protected EntityListeners entityListeners
Constructor Detail

PersistenceUnitDefaults

public PersistenceUnitDefaults()
Creates a new net.sourceforge.ccxjc.it.model.priv.indexed.valueclass.persistence.orm.PersistenceUnitDefaults instance.


PersistenceUnitDefaults

public PersistenceUnitDefaults(PersistenceUnitDefaults o)
Creates a new net.sourceforge.ccxjc.it.model.priv.indexed.valueclass.persistence.orm.PersistenceUnitDefaults instance by copying a given instance.

Parameters:
o - The instance to copy or null.
Method Detail

getSchema

public String getSchema()
Gets the value of the schema property.

Returns:
possible object is String

setSchema

public void setSchema(String value)
Sets the value of the schema property.

Parameters:
value - allowed object is String

getCatalog

public String getCatalog()
Gets the value of the catalog property.

Returns:
possible object is String

setCatalog

public void setCatalog(String value)
Sets the value of the catalog property.

Parameters:
value - allowed object is String

getAccess

public AccessType getAccess()
Gets the value of the access property.

Returns:
possible object is AccessType

setAccess

public void setAccess(AccessType value)
Sets the value of the access property.

Parameters:
value - allowed object is AccessType

getCascadePersist

public EmptyType getCascadePersist()
Gets the value of the cascadePersist property.

Returns:
possible object is EmptyType

setCascadePersist

public void setCascadePersist(EmptyType value)
Sets the value of the cascadePersist property.

Parameters:
value - allowed object is EmptyType

getEntityListeners

public EntityListeners getEntityListeners()
Gets the value of the entityListeners property.

Returns:
possible object is EntityListeners

setEntityListeners

public void setEntityListeners(EntityListeners value)
Sets the value of the entityListeners property.

Parameters:
value - allowed object is EntityListeners

clone

public PersistenceUnitDefaults clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A clone of this instance.


Copyright © 2009 The CC-XJC Community. All Rights Reserved.