ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.orm10
Interface PersistenceUnitDefaults<T>

All Superinterfaces:
Child<T>

public interface PersistenceUnitDefaults<T>
extends Child<T>

This interface defines the contract for the persistence-unit-defaults xsd type

Since:
Generation date :2012-05-09T23:45:03.702-07:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 PersistenceUnitDefaults<T> access(AccessType access)
          Sets the access element
 PersistenceUnitDefaults<T> access(String access)
          Sets the access element
 PersistenceUnitDefaults<T> cascadePersist()
          Sets the cascade-persist element
 PersistenceUnitDefaults<T> catalog(String catalog)
          Sets the catalog element
 AccessType getAccess()
          Returns the access element
 String getAccessAsString()
          Returns the access element
 String getCatalog()
          Returns the catalog element
 EntityListeners<PersistenceUnitDefaults<T>> getOrCreateEntityListeners()
          If not already created, a new entity-listeners element with the given value will be created.
 String getSchema()
          Returns the schema element
 Boolean isCascadePersist()
          Removes the cascade-persist element
 PersistenceUnitDefaults<T> removeAccess()
          Removes the access attribute
 PersistenceUnitDefaults<T> removeCascadePersist()
          Removes the cascade-persist element
 PersistenceUnitDefaults<T> removeCatalog()
          Removes the catalog element
 PersistenceUnitDefaults<T> removeEntityListeners()
          Removes the entity-listeners element
 PersistenceUnitDefaults<T> removeSchema()
          Removes the schema element
 PersistenceUnitDefaults<T> schema(String schema)
          Sets the schema element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

schema

PersistenceUnitDefaults<T> schema(String schema)
Sets the schema element

Parameters:
schema - the value for the element schema
Returns:
the current instance of PersistenceUnitDefaults

getSchema

String getSchema()
Returns the schema element

Returns:
the node defined for the element schema

removeSchema

PersistenceUnitDefaults<T> removeSchema()
Removes the schema element

Returns:
the current instance of PersistenceUnitDefaults

catalog

PersistenceUnitDefaults<T> catalog(String catalog)
Sets the catalog element

Parameters:
catalog - the value for the element catalog
Returns:
the current instance of PersistenceUnitDefaults

getCatalog

String getCatalog()
Returns the catalog element

Returns:
the node defined for the element catalog

removeCatalog

PersistenceUnitDefaults<T> removeCatalog()
Removes the catalog element

Returns:
the current instance of PersistenceUnitDefaults

access

PersistenceUnitDefaults<T> access(AccessType access)
Sets the access element

Parameters:
access - the value for the element access
Returns:
the current instance of PersistenceUnitDefaults

access

PersistenceUnitDefaults<T> access(String access)
Sets the access element

Parameters:
access - the value for the element access
Returns:
the current instance of PersistenceUnitDefaults

getAccess

AccessType getAccess()
Returns the access element

Returns:
the value found for the element access

getAccessAsString

String getAccessAsString()
Returns the access element

Returns:
the value found for the element access

removeAccess

PersistenceUnitDefaults<T> removeAccess()
Removes the access attribute

Returns:
the current instance of PersistenceUnitDefaults

cascadePersist

PersistenceUnitDefaults<T> cascadePersist()
Sets the cascade-persist element

Returns:
the current instance of PersistenceUnitDefaults

isCascadePersist

Boolean isCascadePersist()
Removes the cascade-persist element

Returns:
the current instance of PersistenceUnitDefaults

removeCascadePersist

PersistenceUnitDefaults<T> removeCascadePersist()
Removes the cascade-persist element

Returns:
the current instance of PersistenceUnitDefaults

getOrCreateEntityListeners

EntityListeners<PersistenceUnitDefaults<T>> getOrCreateEntityListeners()
If not already created, a new entity-listeners element with the given value will be created. Otherwise, the existing entity-listeners element will be returned.

Returns:
a new or existing instance of EntityListeners>

removeEntityListeners

PersistenceUnitDefaults<T> removeEntityListeners()
Removes the entity-listeners element

Returns:
the current instance of PersistenceUnitDefaults

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.