Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.shrinkwrap.descriptor.api.persistence20
Interface Persistence<T>

All Superinterfaces:
  org.jboss.shrinkwrap.descriptor.api.Child<T>

All Known Implementing Classes:
  PersistenceImpl

    public interface Persistence<T>

extends org.jboss.shrinkwrap.descriptor.api.Child<T>

This interface defines the contract for the `persistence` xsd type

Since:
  Generation date :2011-07-19T22:55:02.759+02:00
Author:
  Ralf Battenfeld

Method Summary
`java.util.List<PersistenceUnit<Persistence<T>>>` | `getPersistenceUnitList()` Returns all `persistence-unit` elements
`java.lang.String` | `getVersion()` Returns the `version` element
`PersistenceUnit<Persistence<T>>` | `persistenceUnit()` Returns the `persistence-unit` element
`Persistence<T>` | `removeAllPersistenceUnit()` Removes all `persistence-unit` elements
`Persistence<T>` | `removeVersion()` Removes the `version` attribute
`Persistence<T>` | `setVersion(java.lang.String version)` Sets the `version` attribute

Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
`up`

Method Detail

### removeAllPersistenceUnit

    Persistence<T> removeAllPersistenceUnit()

  Removes all `persistence-unit` elements

  Returns:
    the current instance of `Persistence`

### persistenceUnit

    PersistenceUnit<Persistence<T>> persistenceUnit()

  Returns the `persistence-unit` element

  Returns:
    the node defined for the element `persistence-unit`

### getPersistenceUnitList

    java.util.List<PersistenceUnit<Persistence<T>>> getPersistenceUnitList()

  Returns all `persistence-unit` elements

  Returns:
    list of `persistence-unit`

### setVersion

    Persistence<T> setVersion(java.lang.String version)

  Sets the `version` attribute

  Parameters:
    `version` - the value for the attribute `version`
  Returns:
    the current instance of `Persistence`

### removeVersion

    Persistence<T> removeVersion()

  Removes the `version` attribute

  Returns:
    the current instance of `Persistence`

### getVersion

    java.lang.String getVersion()

  Returns the `version` element

  Returns:
    the node defined for the element `version`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD