net.sourceforge.ccxjc.it.model.pkg.collections.novalueclass.persistence.impl
Class PersistenceImpl

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.pkg.collections.novalueclass.persistence.impl.PersistenceImpl
All Implemented Interfaces:
Serializable, Cloneable, Persistence

public class PersistenceImpl
extends Object
implements Serializable, Cloneable, Persistence

See Also:
Serialized Form

Nested Class Summary
static class PersistenceImpl.PersistenceUnitImpl
           
 
Nested classes/interfaces inherited from interface net.sourceforge.ccxjc.it.model.pkg.collections.novalueclass.persistence.Persistence
Persistence.PersistenceUnit
 
Field Summary
protected  List<Persistence.PersistenceUnit> persistenceUnit
           
protected  String version
           
 
Constructor Summary
PersistenceImpl()
          Creates a new net.sourceforge.ccxjc.it.model.pkg.collections.novalueclass.persistence.impl.PersistenceImpl instance.
PersistenceImpl(PersistenceImpl o)
          Creates a new net.sourceforge.ccxjc.it.model.pkg.collections.novalueclass.persistence.impl.PersistenceImpl instance by copying a given instance.
 
Method Summary
 PersistenceImpl clone()
          Creates and returns a copy of this object.
 List<Persistence.PersistenceUnit> getPersistenceUnit()
          Gets the value of the persistenceUnit property.
 String getVersion()
          Gets the value of the version property.
 void setVersion(String value)
          Sets the value of the version property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

persistenceUnit

protected List<Persistence.PersistenceUnit> persistenceUnit

version

protected String version
Constructor Detail

PersistenceImpl

public PersistenceImpl()
Creates a new net.sourceforge.ccxjc.it.model.pkg.collections.novalueclass.persistence.impl.PersistenceImpl instance.


PersistenceImpl

public PersistenceImpl(PersistenceImpl o)
Creates a new net.sourceforge.ccxjc.it.model.pkg.collections.novalueclass.persistence.impl.PersistenceImpl instance by copying a given instance.

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

getPersistenceUnit

public List<Persistence.PersistenceUnit> getPersistenceUnit()
Description copied from interface: Persistence
Gets the value of the persistenceUnit 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 persistenceUnit property.

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

    getPersistenceUnit().add(newItem);
 

Objects of the following type(s) are allowed in the list Persistence.PersistenceUnit

Specified by:
getPersistenceUnit in interface Persistence

getVersion

public String getVersion()
Description copied from interface: Persistence
Gets the value of the version property.

Specified by:
getVersion in interface Persistence
Returns:
possible object is String

setVersion

public void setVersion(String value)
Description copied from interface: Persistence
Sets the value of the version property.

Specified by:
setVersion in interface Persistence
Parameters:
value - allowed object is String

clone

public PersistenceImpl 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.