org.apache.openejb.jee.jpa.fragment
Class PersistenceFragment

java.lang.Object
  extended by org.apache.openejb.jee.jpa.fragment.PersistenceFragment

public class PersistenceFragment
extends Object


Field Summary
protected  List<PersistenceUnitFragment> persistenceUnitFragment
           
protected  String version
           
 
Constructor Summary
PersistenceFragment()
           
PersistenceFragment(PersistenceUnitFragment... persistenceUnit)
           
 
Method Summary
 PersistenceUnitFragment addPersistenceUnitFragment(PersistenceUnitFragment unit)
           
 PersistenceUnitFragment addPersistenceUnitFragment(String unitName)
           
 List<PersistenceUnitFragment> getPersistenceUnitFragment()
          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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

persistenceUnitFragment

protected List<PersistenceUnitFragment> persistenceUnitFragment

version

protected String version
Constructor Detail

PersistenceFragment

public PersistenceFragment()

PersistenceFragment

public PersistenceFragment(PersistenceUnitFragment... persistenceUnit)
Method Detail

getPersistenceUnitFragment

public List<PersistenceUnitFragment> getPersistenceUnitFragment()
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 PersistenceUnit


addPersistenceUnitFragment

public PersistenceUnitFragment addPersistenceUnitFragment(PersistenceUnitFragment unit)

addPersistenceUnitFragment

public PersistenceUnitFragment addPersistenceUnitFragment(String unitName)

getVersion

public String getVersion()
Gets the value of the version property.

Returns:
possible object is String

setVersion

public void setVersion(String value)
Sets the value of the version property.

Parameters:
value - allowed object is String


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.