|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TapestryPersistenceUnitInfo
Tapestry's mutable extension of PersistenceUnitInfo
interface used for XML-less configuration
of persistence units.
Method Summary | |
---|---|
TapestryPersistenceUnitInfo |
addJarFileUrl(String url)
Add a URLs for the jar file or exploded jar file directory that the persistence provider must examine for managed classes of the persistence unit. |
TapestryPersistenceUnitInfo |
addJarFileUrl(URL url)
Add a URLs for the jar file or exploded jar file directory that the persistence provider must examine for managed classes of the persistence unit. |
TapestryPersistenceUnitInfo |
addManagedClass(Class<?> clazz)
Add a managed class to be used by persistence provider. |
TapestryPersistenceUnitInfo |
addManagedClassName(String className)
Add a managed class name to be used by persistence provider. |
TapestryPersistenceUnitInfo |
addMappingFileName(String fileName)
Add a mapping file to be loaded by the persistence provider to determine the mappings for the entity classes. |
TapestryPersistenceUnitInfo |
addProperty(String name,
String value)
Add a property. |
TapestryPersistenceUnitInfo |
excludeUnlistedClasses(boolean exclude)
Defines whether classes in the root of the persistence unit that have not been explicitly listed are to be included in the set of managed classes. |
Map |
getEntityManagerProperties()
|
TapestryPersistenceUnitInfo |
jtaDataSource(String jtaDataSource)
Set the JTA-enabled data source to be used by the persistence provider for accessing data outside a JTA transaction. |
TapestryPersistenceUnitInfo |
nonJtaDataSource(String nonJtaDataSource)
Set the non-JTA-enabled data source to be used by the persistence provider for accessing data outside a JTA transaction. |
TapestryPersistenceUnitInfo |
persistenceProviderClassName(String persistenceProviderClassName)
Set the the fully qualified name of the persistence provider implementation class. |
TapestryPersistenceUnitInfo |
setEntityManagerProperties(Map properties)
PersistenceProvider allows creating an
with a default EntityManager properties map. |
TapestryPersistenceUnitInfo |
sharedCacheMode(SharedCacheMode cacheMode)
Defines how the persistence provider must use a second-level cache for the persistence unit. |
TapestryPersistenceUnitInfo |
transactionType(PersistenceUnitTransactionType transactionType)
Set the transaction type of the entity managers. |
TapestryPersistenceUnitInfo |
validationMode(ValidationMode validationMode)
Set the validation mode to be used by the persistence provider for the persistence unit. |
Methods inherited from interface javax.persistence.spi.PersistenceUnitInfo |
---|
addTransformer, excludeUnlistedClasses, getClassLoader, getJarFileUrls, getJtaDataSource, getManagedClassNames, getMappingFileNames, getNewTempClassLoader, getNonJtaDataSource, getPersistenceProviderClassName, getPersistenceUnitName, getPersistenceUnitRootUrl, getPersistenceXMLSchemaVersion, getProperties, getSharedCacheMode, getTransactionType, getValidationMode |
Method Detail |
---|
TapestryPersistenceUnitInfo persistenceProviderClassName(String persistenceProviderClassName)
provider
element in the persistence.xml
file.
persistenceProviderClassName
- persistence provider's class nameTapestryPersistenceUnitInfo transactionType(PersistenceUnitTransactionType transactionType)
transaction-type
attribute in the persistence.xml
file.
transactionType
- transition type to setTapestryPersistenceUnitInfo nonJtaDataSource(String nonJtaDataSource)
non-jta-data-source
element in the
persistence.xml
file.
nonJtaDataSource
- data source to setTapestryPersistenceUnitInfo jtaDataSource(String jtaDataSource)
jta-data-source
element in the
persistence.xml
file.
jtaDataSource
- data source to setTapestryPersistenceUnitInfo addManagedClassName(String className)
class
element in the persistence.xml
file.
className
- class name to addaddManagedClass(Class)
TapestryPersistenceUnitInfo addManagedClass(Class<?> clazz)
class
element in the persistence.xml
file.
clazz
- class to addaddManagedClassName(String)
TapestryPersistenceUnitInfo sharedCacheMode(SharedCacheMode cacheMode)
shared-cache-mode
element in the persistence.xml
file.
cacheMode
- cache mode to setTapestryPersistenceUnitInfo validationMode(ValidationMode validationMode)
validation-mode
element in the persistence.xml
file.
validationMode
- validation mode to setTapestryPersistenceUnitInfo addMappingFileName(String fileName)
mapping-file
element in the persistence.xml
file.
fileName
- mapping file name to addTapestryPersistenceUnitInfo addJarFileUrl(URL url)
jar-file
element in the
persistence.xml
file.
url
- url to addTapestryPersistenceUnitInfo addJarFileUrl(String url)
jar-file
element in the
persistence.xml
file.
url
- url to addTapestryPersistenceUnitInfo addProperty(String name, String value)
property
element in the persistence.xml
file.
name
- property's namevalue
- property's valueTapestryPersistenceUnitInfo excludeUnlistedClasses(boolean exclude)
exclude-unlisted-classes
element in the persistence.xml
file.
exclude
- defines whether to exclude or notTapestryPersistenceUnitInfo setEntityManagerProperties(Map properties)
PersistenceProvider
allows creating an
with a default EntityManager properties map. This operation allows contributing default properties for
EntityManager.
properties
- properties to initialize EntityManagerFactory withMap getEntityManagerProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |