Package org.hibernate.testing.util.jpa
Class PersistenceUnitInfoAdapter
- java.lang.Object
-
- org.hibernate.testing.util.jpa.PersistenceUnitInfoAdapter
-
- All Implemented Interfaces:
PersistenceUnitInfo
public class PersistenceUnitInfoAdapter extends java.lang.Object implements PersistenceUnitInfo
-
-
Constructor Summary
Constructors Constructor Description PersistenceUnitInfoAdapter()
PersistenceUnitInfoAdapter(java.util.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTransformer(ClassTransformer transformer)
boolean
excludeUnlistedClasses()
java.lang.ClassLoader
getClassLoader()
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()
SharedCacheMode
getSharedCacheMode()
PersistenceUnitTransactionType
getTransactionType()
ValidationMode
getValidationMode()
-
-
-
Method Detail
-
getPersistenceUnitName
public java.lang.String getPersistenceUnitName()
- Specified by:
getPersistenceUnitName
in interfacePersistenceUnitInfo
-
getPersistenceProviderClassName
public java.lang.String getPersistenceProviderClassName()
- Specified by:
getPersistenceProviderClassName
in interfacePersistenceUnitInfo
-
getTransactionType
public PersistenceUnitTransactionType getTransactionType()
- Specified by:
getTransactionType
in interfacePersistenceUnitInfo
-
getJtaDataSource
public javax.sql.DataSource getJtaDataSource()
- Specified by:
getJtaDataSource
in interfacePersistenceUnitInfo
-
getNonJtaDataSource
public javax.sql.DataSource getNonJtaDataSource()
- Specified by:
getNonJtaDataSource
in interfacePersistenceUnitInfo
-
getMappingFileNames
public java.util.List<java.lang.String> getMappingFileNames()
- Specified by:
getMappingFileNames
in interfacePersistenceUnitInfo
-
getJarFileUrls
public java.util.List<java.net.URL> getJarFileUrls()
- Specified by:
getJarFileUrls
in interfacePersistenceUnitInfo
-
getPersistenceUnitRootUrl
public java.net.URL getPersistenceUnitRootUrl()
- Specified by:
getPersistenceUnitRootUrl
in interfacePersistenceUnitInfo
-
getManagedClassNames
public java.util.List<java.lang.String> getManagedClassNames()
- Specified by:
getManagedClassNames
in interfacePersistenceUnitInfo
-
excludeUnlistedClasses
public boolean excludeUnlistedClasses()
- Specified by:
excludeUnlistedClasses
in interfacePersistenceUnitInfo
-
getSharedCacheMode
public SharedCacheMode getSharedCacheMode()
- Specified by:
getSharedCacheMode
in interfacePersistenceUnitInfo
-
getValidationMode
public ValidationMode getValidationMode()
- Specified by:
getValidationMode
in interfacePersistenceUnitInfo
-
getProperties
public java.util.Properties getProperties()
- Specified by:
getProperties
in interfacePersistenceUnitInfo
-
getPersistenceXMLSchemaVersion
public java.lang.String getPersistenceXMLSchemaVersion()
- Specified by:
getPersistenceXMLSchemaVersion
in interfacePersistenceUnitInfo
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfacePersistenceUnitInfo
-
addTransformer
public void addTransformer(ClassTransformer transformer)
- Specified by:
addTransformer
in interfacePersistenceUnitInfo
-
getNewTempClassLoader
public java.lang.ClassLoader getNewTempClassLoader()
- Specified by:
getNewTempClassLoader
in interfacePersistenceUnitInfo
-
-