|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.jpa.PersistenceUnitInfoImpl
public class PersistenceUnitInfoImpl
| Constructor Summary | |
|---|---|
PersistenceUnitInfoImpl(java.lang.String persistenceUnitName)
|
|
| Method Summary | |
|---|---|
TapestryPersistenceUnitInfo |
addJarFileUrl(java.lang.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(java.net.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(java.lang.Class<?> clazz)
Add a managed class to be used by persistence provider. |
TapestryPersistenceUnitInfo |
addManagedClassName(java.lang.String className)
Add a managed class name to be used by persistence provider. |
TapestryPersistenceUnitInfo |
addMappingFileName(java.lang.String fileName)
Add a mapping file to be loaded by the persistence provider to determine the mappings for the entity classes. |
TapestryPersistenceUnitInfo |
addProperty(java.lang.String name,
java.lang.String value)
Add a property. |
void |
addTransformer(javax.persistence.spi.ClassTransformer transformer)
|
boolean |
excludeUnlistedClasses()
|
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. |
java.lang.ClassLoader |
getClassLoader()
|
java.util.Map |
getEntityManagerProperties()
|
java.util.List<java.net.URL> |
getJarFileUrls()
|
javax.sql.DataSource |
getJtaDataSource()
|
java.util.List<java.lang.String> |
getManagedClassNames()
|
java.util.List<java.lang.String> |
getMappingFileNames()
|
java.lang.ClassLoader |
getNewTempClassLoader()
|
javax.sql.DataSource |
getNonJtaDataSource()
|
java.lang.String |
getPersistenceProviderClassName()
|
java.lang.String |
getPersistenceUnitName()
|
java.net.URL |
getPersistenceUnitRootUrl()
|
java.lang.String |
getPersistenceXMLSchemaVersion()
|
java.util.Properties |
getProperties()
|
javax.persistence.SharedCacheMode |
getSharedCacheMode()
|
javax.persistence.spi.PersistenceUnitTransactionType |
getTransactionType()
|
javax.persistence.ValidationMode |
getValidationMode()
|
TapestryPersistenceUnitInfo |
jtaDataSource(java.lang.String jtaDataSource)
Set the JTA-enabled data source to be used by the persistence provider for accessing data outside a JTA transaction. |
TapestryPersistenceUnitInfo |
nonJtaDataSource(java.lang.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(java.lang.String persistenceProviderClassName)
Set the the fully qualified name of the persistence provider implementation class. |
TapestryPersistenceUnitInfo |
setEntityManagerProperties(java.util.Map properties)
PersistenceProvider allows creating an
with a default EntityManager properties map. |
void |
setPersistenceXMLSchemaVersion(java.lang.String version)
|
TapestryPersistenceUnitInfo |
sharedCacheMode(javax.persistence.SharedCacheMode cacheMode)
Defines how the persistence provider must use a second-level cache for the persistence unit. |
TapestryPersistenceUnitInfo |
transactionType(javax.persistence.spi.PersistenceUnitTransactionType transactionType)
Set the transaction type of the entity managers. |
TapestryPersistenceUnitInfo |
validationMode(javax.persistence.ValidationMode validationMode)
Set the validation mode to be used by the persistence provider for the persistence unit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistenceUnitInfoImpl(java.lang.String persistenceUnitName)
| Method Detail |
|---|
public java.lang.String getPersistenceUnitName()
getPersistenceUnitName in interface javax.persistence.spi.PersistenceUnitInfopublic java.lang.String getPersistenceProviderClassName()
getPersistenceProviderClassName in interface javax.persistence.spi.PersistenceUnitInfopublic TapestryPersistenceUnitInfo persistenceProviderClassName(java.lang.String persistenceProviderClassName)
provider element in the persistence.xml file.
persistenceProviderClassName in interface TapestryPersistenceUnitInfopersistenceProviderClassName - persistence provider's class namepublic javax.persistence.spi.PersistenceUnitTransactionType getTransactionType()
getTransactionType in interface javax.persistence.spi.PersistenceUnitInfopublic TapestryPersistenceUnitInfo transactionType(javax.persistence.spi.PersistenceUnitTransactionType transactionType)
transaction-type attribute in the persistence.xml file.
transactionType in interface TapestryPersistenceUnitInfotransactionType - transition type to setpublic javax.sql.DataSource getJtaDataSource()
getJtaDataSource in interface javax.persistence.spi.PersistenceUnitInfopublic javax.sql.DataSource getNonJtaDataSource()
getNonJtaDataSource in interface javax.persistence.spi.PersistenceUnitInfopublic TapestryPersistenceUnitInfo nonJtaDataSource(java.lang.String nonJtaDataSource)
non-jta-data-source element in the
persistence.xml file.
nonJtaDataSource in interface TapestryPersistenceUnitInfononJtaDataSource - data source to setpublic TapestryPersistenceUnitInfo jtaDataSource(java.lang.String jtaDataSource)
jta-data-source element in the
persistence.xml file.
jtaDataSource in interface TapestryPersistenceUnitInfojtaDataSource - data source to setpublic java.util.List<java.lang.String> getMappingFileNames()
getMappingFileNames in interface javax.persistence.spi.PersistenceUnitInfopublic TapestryPersistenceUnitInfo addMappingFileName(java.lang.String fileName)
mapping-file element in the persistence.xml file.
addMappingFileName in interface TapestryPersistenceUnitInfofileName - mapping file name to addpublic TapestryPersistenceUnitInfo addJarFileUrl(java.net.URL url)
jar-file element in the
persistence.xml file.
addJarFileUrl in interface TapestryPersistenceUnitInfourl - url to addpublic TapestryPersistenceUnitInfo addJarFileUrl(java.lang.String url)
jar-file element in the
persistence.xml file.
addJarFileUrl in interface TapestryPersistenceUnitInfourl - url to add
public TapestryPersistenceUnitInfo addProperty(java.lang.String name,
java.lang.String value)
property element in the persistence.xml file.
addProperty in interface TapestryPersistenceUnitInfoname - property's namevalue - property's valuepublic TapestryPersistenceUnitInfo excludeUnlistedClasses(boolean exclude)
exclude-unlisted-classes
element in the persistence.xml file.
excludeUnlistedClasses in interface TapestryPersistenceUnitInfoexclude - defines whether to exclude or notpublic java.util.List<java.net.URL> getJarFileUrls()
getJarFileUrls in interface javax.persistence.spi.PersistenceUnitInfopublic java.net.URL getPersistenceUnitRootUrl()
getPersistenceUnitRootUrl in interface javax.persistence.spi.PersistenceUnitInfopublic java.util.List<java.lang.String> getManagedClassNames()
getManagedClassNames in interface javax.persistence.spi.PersistenceUnitInfopublic TapestryPersistenceUnitInfo addManagedClassName(java.lang.String className)
class element in the persistence.xml file.
addManagedClassName in interface TapestryPersistenceUnitInfoclassName - class name to addTapestryPersistenceUnitInfo.addManagedClass(Class)public TapestryPersistenceUnitInfo addManagedClass(java.lang.Class<?> clazz)
class element in the persistence.xml file.
addManagedClass in interface TapestryPersistenceUnitInfoclazz - class to addTapestryPersistenceUnitInfo.addManagedClassName(String)public boolean excludeUnlistedClasses()
excludeUnlistedClasses in interface javax.persistence.spi.PersistenceUnitInfopublic javax.persistence.SharedCacheMode getSharedCacheMode()
getSharedCacheMode in interface javax.persistence.spi.PersistenceUnitInfopublic TapestryPersistenceUnitInfo sharedCacheMode(javax.persistence.SharedCacheMode cacheMode)
shared-cache-mode element in the persistence.xml file.
sharedCacheMode in interface TapestryPersistenceUnitInfocacheMode - cache mode to setpublic javax.persistence.ValidationMode getValidationMode()
getValidationMode in interface javax.persistence.spi.PersistenceUnitInfopublic TapestryPersistenceUnitInfo validationMode(javax.persistence.ValidationMode validationMode)
validation-mode element in the persistence.xml file.
validationMode in interface TapestryPersistenceUnitInfovalidationMode - validation mode to setpublic java.util.Properties getProperties()
getProperties in interface javax.persistence.spi.PersistenceUnitInfopublic java.lang.String getPersistenceXMLSchemaVersion()
getPersistenceXMLSchemaVersion in interface javax.persistence.spi.PersistenceUnitInfopublic void setPersistenceXMLSchemaVersion(java.lang.String version)
public java.lang.ClassLoader getClassLoader()
getClassLoader in interface javax.persistence.spi.PersistenceUnitInfopublic void addTransformer(javax.persistence.spi.ClassTransformer transformer)
addTransformer in interface javax.persistence.spi.PersistenceUnitInfopublic java.lang.ClassLoader getNewTempClassLoader()
getNewTempClassLoader in interface javax.persistence.spi.PersistenceUnitInfopublic TapestryPersistenceUnitInfo setEntityManagerProperties(java.util.Map properties)
TapestryPersistenceUnitInfoPersistenceProvider allows creating an
with a default EntityManager properties map. This operation allows contributing default properties for
EntityManager.
setEntityManagerProperties in interface TapestryPersistenceUnitInfoproperties - properties to initialize EntityManagerFactory withpublic java.util.Map getEntityManagerProperties()
getEntityManagerProperties in interface TapestryPersistenceUnitInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||