org.jvnet.hyperjaxb3.ejb.schemas.customizations
Class Persistence

java.lang.Object
  extended by org.jvnet.hyperjaxb3.ejb.schemas.customizations.Persistence
All Implemented Interfaces:
Cloneable, Mergeable, org.jvnet.jaxb2_commons.lang.CopyTo, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.MergeFrom

public class Persistence
extends Object
implements Cloneable, Mergeable, org.jvnet.jaxb2_commons.lang.CopyTo, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.MergeFrom

Java class for persistence complex type.

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

 <complexType name="persistence">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="default-entity" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}entity"/>
         <element name="default-mapped-superclass" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}mapped-superclass"/>
         <element name="default-embeddable" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}embeddable"/>
         <element name="default-id" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}id"/>
         <element name="default-generated-id" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}generated-id"/>
         <element name="default-embedded-id" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}embedded-id"/>
         <element name="default-version" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}version"/>
         <element name="default-generated-version" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}generated-version"/>
         <element name="default-basic" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}basic"/>
         <element name="default-to-one" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}to-one"/>
         <element name="default-to-many" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}to-many"/>
         <element name="default-many-to-one" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}many-to-one"/>
         <element name="default-one-to-many" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}one-to-many"/>
         <element name="default-one-to-one" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}one-to-one"/>
         <element name="default-many-to-many" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}many-to-many"/>
         <element name="default-element-collection" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}element-collection"/>
         <element name="default-embedded" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}embedded"/>
         <element name="default-single-property" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}single-property" maxOccurs="unbounded" minOccurs="0"/>
         <element name="default-collection-property" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}collection-property" maxOccurs="unbounded" minOccurs="0"/>
         <element name="default-jaxb-context" type="{http://hyperjaxb3.jvnet.org/ejb/schemas/customizations}jaxb-context"/>
       </sequence>
       <attribute name="merge" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  Basic defaultBasic
           
protected  List<CollectionProperty> defaultCollectionProperty
           
protected  ElementCollection defaultElementCollection
           
protected  Embeddable defaultEmbeddable
           
protected  Embedded defaultEmbedded
           
protected  EmbeddedId defaultEmbeddedId
           
protected  Entity defaultEntity
           
protected  GeneratedId defaultGeneratedId
           
protected  GeneratedVersion defaultGeneratedVersion
           
protected  Id defaultId
           
protected  JaxbContext defaultJaxbContext
           
protected  ManyToMany defaultManyToMany
           
protected  ManyToOne defaultManyToOne
           
protected  MappedSuperclass defaultMappedSuperclass
           
protected  OneToMany defaultOneToMany
           
protected  OneToOne defaultOneToOne
           
protected  List<SingleProperty> defaultSingleProperty
           
protected  ToMany defaultToMany
           
protected  ToOne defaultToOne
           
protected  Version defaultVersion
           
protected  Boolean merge
           
 
Constructor Summary
Persistence()
           
 
Method Summary
 Object clone()
           
 Object copyTo(Object target)
           
 Object copyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, Object target, org.jvnet.jaxb2_commons.lang.CopyStrategy strategy)
           
 Object createNewInstance()
           
 boolean equals(Object object)
           
 boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
           
 Basic getDefaultBasic()
          Gets the value of the defaultBasic property.
 List<CollectionProperty> getDefaultCollectionProperty()
          Gets the value of the defaultCollectionProperty property.
 ElementCollection getDefaultElementCollection()
          Gets the value of the defaultElementCollection property.
 Embeddable getDefaultEmbeddable()
          Gets the value of the defaultEmbeddable property.
 Embedded getDefaultEmbedded()
          Gets the value of the defaultEmbedded property.
 EmbeddedId getDefaultEmbeddedId()
          Gets the value of the defaultEmbeddedId property.
 Entity getDefaultEntity()
          Gets the value of the defaultEntity property.
 GeneratedId getDefaultGeneratedId()
          Gets the value of the defaultGeneratedId property.
 GeneratedVersion getDefaultGeneratedVersion()
          Gets the value of the defaultGeneratedVersion property.
 Id getDefaultId()
          Gets the value of the defaultId property.
 JaxbContext getDefaultJaxbContext()
          Gets the value of the defaultJaxbContext property.
 ManyToMany getDefaultManyToMany()
          Gets the value of the defaultManyToMany property.
 ManyToOne getDefaultManyToOne()
          Gets the value of the defaultManyToOne property.
 MappedSuperclass getDefaultMappedSuperclass()
          Gets the value of the defaultMappedSuperclass property.
 OneToMany getDefaultOneToMany()
          Gets the value of the defaultOneToMany property.
 OneToOne getDefaultOneToOne()
          Gets the value of the defaultOneToOne property.
 List<SingleProperty> getDefaultSingleProperty()
          Gets the value of the defaultSingleProperty property.
 ToMany getDefaultToMany()
          Gets the value of the defaultToMany property.
 ToOne getDefaultToOne()
          Gets the value of the defaultToOne property.
 Version getDefaultVersion()
          Gets the value of the defaultVersion property.
 int hashCode()
           
 int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
           
 boolean isMerge()
          Gets the value of the merge property.
 void mergeFrom(org.jvnet.jaxb2_commons.locator.ObjectLocator leftLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator rightLocator, Object left, Object right, org.jvnet.jaxb2_commons.lang.MergeStrategy strategy)
           
 void mergeFrom(Object left, Object right)
           
 void setDefaultBasic(Basic value)
          Sets the value of the defaultBasic property.
 void setDefaultElementCollection(ElementCollection value)
          Sets the value of the defaultElementCollection property.
 void setDefaultEmbeddable(Embeddable value)
          Sets the value of the defaultEmbeddable property.
 void setDefaultEmbedded(Embedded value)
          Sets the value of the defaultEmbedded property.
 void setDefaultEmbeddedId(EmbeddedId value)
          Sets the value of the defaultEmbeddedId property.
 void setDefaultEntity(Entity value)
          Sets the value of the defaultEntity property.
 void setDefaultGeneratedId(GeneratedId value)
          Sets the value of the defaultGeneratedId property.
 void setDefaultGeneratedVersion(GeneratedVersion value)
          Sets the value of the defaultGeneratedVersion property.
 void setDefaultId(Id value)
          Sets the value of the defaultId property.
 void setDefaultJaxbContext(JaxbContext value)
          Sets the value of the defaultJaxbContext property.
 void setDefaultManyToMany(ManyToMany value)
          Sets the value of the defaultManyToMany property.
 void setDefaultManyToOne(ManyToOne value)
          Sets the value of the defaultManyToOne property.
 void setDefaultMappedSuperclass(MappedSuperclass value)
          Sets the value of the defaultMappedSuperclass property.
 void setDefaultOneToMany(OneToMany value)
          Sets the value of the defaultOneToMany property.
 void setDefaultOneToOne(OneToOne value)
          Sets the value of the defaultOneToOne property.
 void setDefaultToMany(ToMany value)
          Sets the value of the defaultToMany property.
 void setDefaultToOne(ToOne value)
          Sets the value of the defaultToOne property.
 void setDefaultVersion(Version value)
          Sets the value of the defaultVersion property.
 void setMerge(Boolean value)
          Sets the value of the merge property.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultEntity

protected Entity defaultEntity

defaultMappedSuperclass

protected MappedSuperclass defaultMappedSuperclass

defaultEmbeddable

protected Embeddable defaultEmbeddable

defaultId

protected Id defaultId

defaultGeneratedId

protected GeneratedId defaultGeneratedId

defaultEmbeddedId

protected EmbeddedId defaultEmbeddedId

defaultVersion

protected Version defaultVersion

defaultGeneratedVersion

protected GeneratedVersion defaultGeneratedVersion

defaultBasic

protected Basic defaultBasic

defaultToOne

protected ToOne defaultToOne

defaultToMany

protected ToMany defaultToMany

defaultManyToOne

protected ManyToOne defaultManyToOne

defaultOneToMany

protected OneToMany defaultOneToMany

defaultOneToOne

protected OneToOne defaultOneToOne

defaultManyToMany

protected ManyToMany defaultManyToMany

defaultElementCollection

protected ElementCollection defaultElementCollection

defaultEmbedded

protected Embedded defaultEmbedded

defaultSingleProperty

protected List<SingleProperty> defaultSingleProperty

defaultCollectionProperty

protected List<CollectionProperty> defaultCollectionProperty

defaultJaxbContext

protected JaxbContext defaultJaxbContext

merge

protected Boolean merge
Constructor Detail

Persistence

public Persistence()
Method Detail

getDefaultEntity

public Entity getDefaultEntity()
Gets the value of the defaultEntity property.

Returns:
possible object is Entity

setDefaultEntity

public void setDefaultEntity(Entity value)
Sets the value of the defaultEntity property.

Parameters:
value - allowed object is Entity

getDefaultMappedSuperclass

public MappedSuperclass getDefaultMappedSuperclass()
Gets the value of the defaultMappedSuperclass property.

Returns:
possible object is MappedSuperclass

setDefaultMappedSuperclass

public void setDefaultMappedSuperclass(MappedSuperclass value)
Sets the value of the defaultMappedSuperclass property.

Parameters:
value - allowed object is MappedSuperclass

getDefaultEmbeddable

public Embeddable getDefaultEmbeddable()
Gets the value of the defaultEmbeddable property.

Returns:
possible object is Embeddable

setDefaultEmbeddable

public void setDefaultEmbeddable(Embeddable value)
Sets the value of the defaultEmbeddable property.

Parameters:
value - allowed object is Embeddable

getDefaultId

public Id getDefaultId()
Gets the value of the defaultId property.

Returns:
possible object is Id

setDefaultId

public void setDefaultId(Id value)
Sets the value of the defaultId property.

Parameters:
value - allowed object is Id

getDefaultGeneratedId

public GeneratedId getDefaultGeneratedId()
Gets the value of the defaultGeneratedId property.

Returns:
possible object is GeneratedId

setDefaultGeneratedId

public void setDefaultGeneratedId(GeneratedId value)
Sets the value of the defaultGeneratedId property.

Parameters:
value - allowed object is GeneratedId

getDefaultEmbeddedId

public EmbeddedId getDefaultEmbeddedId()
Gets the value of the defaultEmbeddedId property.

Returns:
possible object is EmbeddedId

setDefaultEmbeddedId

public void setDefaultEmbeddedId(EmbeddedId value)
Sets the value of the defaultEmbeddedId property.

Parameters:
value - allowed object is EmbeddedId

getDefaultVersion

public Version getDefaultVersion()
Gets the value of the defaultVersion property.

Returns:
possible object is Version

setDefaultVersion

public void setDefaultVersion(Version value)
Sets the value of the defaultVersion property.

Parameters:
value - allowed object is Version

getDefaultGeneratedVersion

public GeneratedVersion getDefaultGeneratedVersion()
Gets the value of the defaultGeneratedVersion property.

Returns:
possible object is GeneratedVersion

setDefaultGeneratedVersion

public void setDefaultGeneratedVersion(GeneratedVersion value)
Sets the value of the defaultGeneratedVersion property.

Parameters:
value - allowed object is GeneratedVersion

getDefaultBasic

public Basic getDefaultBasic()
Gets the value of the defaultBasic property.

Returns:
possible object is Basic

setDefaultBasic

public void setDefaultBasic(Basic value)
Sets the value of the defaultBasic property.

Parameters:
value - allowed object is Basic

getDefaultToOne

public ToOne getDefaultToOne()
Gets the value of the defaultToOne property.

Returns:
possible object is ToOne

setDefaultToOne

public void setDefaultToOne(ToOne value)
Sets the value of the defaultToOne property.

Parameters:
value - allowed object is ToOne

getDefaultToMany

public ToMany getDefaultToMany()
Gets the value of the defaultToMany property.

Returns:
possible object is ToMany

setDefaultToMany

public void setDefaultToMany(ToMany value)
Sets the value of the defaultToMany property.

Parameters:
value - allowed object is ToMany

getDefaultManyToOne

public ManyToOne getDefaultManyToOne()
Gets the value of the defaultManyToOne property.

Returns:
possible object is ManyToOne

setDefaultManyToOne

public void setDefaultManyToOne(ManyToOne value)
Sets the value of the defaultManyToOne property.

Parameters:
value - allowed object is ManyToOne

getDefaultOneToMany

public OneToMany getDefaultOneToMany()
Gets the value of the defaultOneToMany property.

Returns:
possible object is OneToMany

setDefaultOneToMany

public void setDefaultOneToMany(OneToMany value)
Sets the value of the defaultOneToMany property.

Parameters:
value - allowed object is OneToMany

getDefaultOneToOne

public OneToOne getDefaultOneToOne()
Gets the value of the defaultOneToOne property.

Returns:
possible object is OneToOne

setDefaultOneToOne

public void setDefaultOneToOne(OneToOne value)
Sets the value of the defaultOneToOne property.

Parameters:
value - allowed object is OneToOne

getDefaultManyToMany

public ManyToMany getDefaultManyToMany()
Gets the value of the defaultManyToMany property.

Returns:
possible object is ManyToMany

setDefaultManyToMany

public void setDefaultManyToMany(ManyToMany value)
Sets the value of the defaultManyToMany property.

Parameters:
value - allowed object is ManyToMany

getDefaultElementCollection

public ElementCollection getDefaultElementCollection()
Gets the value of the defaultElementCollection property.

Returns:
possible object is ElementCollection

setDefaultElementCollection

public void setDefaultElementCollection(ElementCollection value)
Sets the value of the defaultElementCollection property.

Parameters:
value - allowed object is ElementCollection

getDefaultEmbedded

public Embedded getDefaultEmbedded()
Gets the value of the defaultEmbedded property.

Returns:
possible object is Embedded

setDefaultEmbedded

public void setDefaultEmbedded(Embedded value)
Sets the value of the defaultEmbedded property.

Parameters:
value - allowed object is Embedded

getDefaultSingleProperty

public List<SingleProperty> getDefaultSingleProperty()
Gets the value of the defaultSingleProperty property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the defaultSingleProperty property.

For example, to add a new item, do as follows:

    getDefaultSingleProperty().add(newItem);
 

Objects of the following type(s) are allowed in the list SingleProperty


getDefaultCollectionProperty

public List<CollectionProperty> getDefaultCollectionProperty()
Gets the value of the defaultCollectionProperty property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the defaultCollectionProperty property.

For example, to add a new item, do as follows:

    getDefaultCollectionProperty().add(newItem);
 

Objects of the following type(s) are allowed in the list CollectionProperty


getDefaultJaxbContext

public JaxbContext getDefaultJaxbContext()
Gets the value of the defaultJaxbContext property.

Returns:
possible object is JaxbContext

setDefaultJaxbContext

public void setDefaultJaxbContext(JaxbContext value)
Sets the value of the defaultJaxbContext property.

Parameters:
value - allowed object is JaxbContext

isMerge

public boolean isMerge()
Gets the value of the merge property.

Specified by:
isMerge in interface Mergeable
Returns:
possible object is Boolean

setMerge

public void setMerge(Boolean value)
Sets the value of the merge property.

Parameters:
value - allowed object is Boolean

equals

public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                      org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                      Object object,
                      org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
Specified by:
equals in interface org.jvnet.jaxb2_commons.lang.Equals

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                    org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
Specified by:
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

public Object clone()
Overrides:
clone in class Object

copyTo

public Object copyTo(Object target)
Specified by:
copyTo in interface org.jvnet.jaxb2_commons.lang.CopyTo

copyTo

public Object copyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                     Object target,
                     org.jvnet.jaxb2_commons.lang.CopyStrategy strategy)
Specified by:
copyTo in interface org.jvnet.jaxb2_commons.lang.CopyTo

createNewInstance

public Object createNewInstance()
Specified by:
createNewInstance in interface org.jvnet.jaxb2_commons.lang.CopyTo
Specified by:
createNewInstance in interface org.jvnet.jaxb2_commons.lang.MergeFrom

mergeFrom

public void mergeFrom(Object left,
                      Object right)
Specified by:
mergeFrom in interface org.jvnet.jaxb2_commons.lang.MergeFrom

mergeFrom

public void mergeFrom(org.jvnet.jaxb2_commons.locator.ObjectLocator leftLocator,
                      org.jvnet.jaxb2_commons.locator.ObjectLocator rightLocator,
                      Object left,
                      Object right,
                      org.jvnet.jaxb2_commons.lang.MergeStrategy strategy)
Specified by:
mergeFrom in interface org.jvnet.jaxb2_commons.lang.MergeFrom


Copyright © 2005-2014. All Rights Reserved.