Class PersistenceFragment
- java.lang.Object
-
- org.apache.openejb.jee.jpa.fragment.PersistenceFragment
-
public class PersistenceFragment extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected List<PersistenceUnitFragment>persistenceUnitFragmentprotected Stringversion
-
Constructor Summary
Constructors Constructor Description PersistenceFragment()PersistenceFragment(PersistenceUnitFragment... persistenceUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersistenceUnitFragmentaddPersistenceUnitFragment(String unitName)PersistenceUnitFragmentaddPersistenceUnitFragment(PersistenceUnitFragment unit)List<PersistenceUnitFragment>getPersistenceUnitFragment()Gets the value of the persistenceUnit property.StringgetVersion()Gets the value of the version property.voidsetVersion(String value)Sets the value of the version property.
-
-
-
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 asetmethod 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 listPersistenceUnit
-
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
-
-