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 Object implements PersistenceUnitInfo
-
-
Constructor Summary
Constructors Constructor Description PersistenceUnitInfoAdapter()
PersistenceUnitInfoAdapter(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTransformer(ClassTransformer transformer)
boolean
excludeUnlistedClasses()
ClassLoader
getClassLoader()
List<URL>
getJarFileUrls()
DataSource
getJtaDataSource()
List<String>
getManagedClassNames()
List<String>
getMappingFileNames()
ClassLoader
getNewTempClassLoader()
DataSource
getNonJtaDataSource()
String
getPersistenceProviderClassName()
String
getPersistenceUnitName()
URL
getPersistenceUnitRootUrl()
String
getPersistenceXMLSchemaVersion()
Properties
getProperties()
SharedCacheMode
getSharedCacheMode()
PersistenceUnitTransactionType
getTransactionType()
ValidationMode
getValidationMode()
-
-
-
Constructor Detail
-
PersistenceUnitInfoAdapter
public PersistenceUnitInfoAdapter()
-
PersistenceUnitInfoAdapter
public PersistenceUnitInfoAdapter(Properties properties)
-
-
Method Detail
-
getPersistenceUnitName
public String getPersistenceUnitName()
- Specified by:
getPersistenceUnitName
in interfacePersistenceUnitInfo
-
getPersistenceProviderClassName
public String getPersistenceProviderClassName()
- Specified by:
getPersistenceProviderClassName
in interfacePersistenceUnitInfo
-
getTransactionType
public PersistenceUnitTransactionType getTransactionType()
- Specified by:
getTransactionType
in interfacePersistenceUnitInfo
-
getJtaDataSource
public DataSource getJtaDataSource()
- Specified by:
getJtaDataSource
in interfacePersistenceUnitInfo
-
getNonJtaDataSource
public DataSource getNonJtaDataSource()
- Specified by:
getNonJtaDataSource
in interfacePersistenceUnitInfo
-
getMappingFileNames
public List<String> getMappingFileNames()
- Specified by:
getMappingFileNames
in interfacePersistenceUnitInfo
-
getJarFileUrls
public List<URL> getJarFileUrls()
- Specified by:
getJarFileUrls
in interfacePersistenceUnitInfo
-
getPersistenceUnitRootUrl
public URL getPersistenceUnitRootUrl()
- Specified by:
getPersistenceUnitRootUrl
in interfacePersistenceUnitInfo
-
getManagedClassNames
public List<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 Properties getProperties()
- Specified by:
getProperties
in interfacePersistenceUnitInfo
-
getPersistenceXMLSchemaVersion
public String getPersistenceXMLSchemaVersion()
- Specified by:
getPersistenceXMLSchemaVersion
in interfacePersistenceUnitInfo
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfacePersistenceUnitInfo
-
addTransformer
public void addTransformer(ClassTransformer transformer)
- Specified by:
addTransformer
in interfacePersistenceUnitInfo
-
getNewTempClassLoader
public ClassLoader getNewTempClassLoader()
- Specified by:
getNewTempClassLoader
in interfacePersistenceUnitInfo
-
-