|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo
public class MutablePersistenceUnitInfo
Spring's base implementation of the JPA
PersistenceUnitInfo
interface,
used to bootstrap an EntityManagerFactory in a container.
This implementation is largely a JavaBean, offering mutators for all standard PersistenceUnitInfo properties.
Constructor Summary | |
---|---|
MutablePersistenceUnitInfo()
|
Method Summary | |
---|---|
void |
addJarFileUrl(URL jarFileUrl)
|
void |
addManagedClassName(String managedClassName)
|
void |
addMappingFileName(String mappingFileName)
|
void |
addProperty(String name,
String value)
|
void |
addTransformer(javax.persistence.spi.ClassTransformer classTransformer)
This implementation throws an UnsupportedOperationException. |
boolean |
excludeUnlistedClasses()
|
ClassLoader |
getClassLoader()
This implementation returns the default ClassLoader. |
List<URL> |
getJarFileUrls()
|
DataSource |
getJtaDataSource()
|
List<String> |
getManagedClassNames()
|
List<String> |
getMappingFileNames()
|
ClassLoader |
getNewTempClassLoader()
This implementation throws an UnsupportedOperationException. |
DataSource |
getNonJtaDataSource()
|
String |
getPersistenceProviderClassName()
|
String |
getPersistenceProviderPackageName()
|
String |
getPersistenceUnitName()
|
URL |
getPersistenceUnitRootUrl()
|
Properties |
getProperties()
|
javax.persistence.spi.PersistenceUnitTransactionType |
getTransactionType()
|
void |
setExcludeUnlistedClasses(boolean excludeUnlistedClasses)
|
void |
setJtaDataSource(DataSource jtaDataSource)
|
void |
setNonJtaDataSource(DataSource nonJtaDataSource)
|
void |
setPersistenceProviderClassName(String persistenceProviderClassName)
|
void |
setPersistenceProviderPackageName(String persistenceProviderPackageName)
|
void |
setPersistenceUnitName(String persistenceUnitName)
|
void |
setPersistenceUnitRootUrl(URL persistenceUnitRootUrl)
|
void |
setProperties(Properties properties)
|
void |
setTransactionType(javax.persistence.spi.PersistenceUnitTransactionType transactionType)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MutablePersistenceUnitInfo()
Method Detail |
---|
public void setPersistenceUnitName(String persistenceUnitName)
public String getPersistenceUnitName()
getPersistenceUnitName
in interface javax.persistence.spi.PersistenceUnitInfo
public void setPersistenceProviderClassName(String persistenceProviderClassName)
public String getPersistenceProviderClassName()
getPersistenceProviderClassName
in interface javax.persistence.spi.PersistenceUnitInfo
public void setTransactionType(javax.persistence.spi.PersistenceUnitTransactionType transactionType)
public javax.persistence.spi.PersistenceUnitTransactionType getTransactionType()
getTransactionType
in interface javax.persistence.spi.PersistenceUnitInfo
public void setJtaDataSource(DataSource jtaDataSource)
public DataSource getJtaDataSource()
getJtaDataSource
in interface javax.persistence.spi.PersistenceUnitInfo
public void setNonJtaDataSource(DataSource nonJtaDataSource)
public DataSource getNonJtaDataSource()
getNonJtaDataSource
in interface javax.persistence.spi.PersistenceUnitInfo
public void addMappingFileName(String mappingFileName)
public List<String> getMappingFileNames()
getMappingFileNames
in interface javax.persistence.spi.PersistenceUnitInfo
public void addJarFileUrl(URL jarFileUrl)
public List<URL> getJarFileUrls()
getJarFileUrls
in interface javax.persistence.spi.PersistenceUnitInfo
public void setPersistenceUnitRootUrl(URL persistenceUnitRootUrl)
public URL getPersistenceUnitRootUrl()
getPersistenceUnitRootUrl
in interface javax.persistence.spi.PersistenceUnitInfo
public void addManagedClassName(String managedClassName)
public List<String> getManagedClassNames()
getManagedClassNames
in interface javax.persistence.spi.PersistenceUnitInfo
public void setExcludeUnlistedClasses(boolean excludeUnlistedClasses)
public boolean excludeUnlistedClasses()
excludeUnlistedClasses
in interface javax.persistence.spi.PersistenceUnitInfo
public void addProperty(String name, String value)
public void setProperties(Properties properties)
public Properties getProperties()
getProperties
in interface javax.persistence.spi.PersistenceUnitInfo
public void setPersistenceProviderPackageName(String persistenceProviderPackageName)
public String getPersistenceProviderPackageName()
public ClassLoader getClassLoader()
getClassLoader
in interface javax.persistence.spi.PersistenceUnitInfo
ClassUtils.getDefaultClassLoader()
public void addTransformer(javax.persistence.spi.ClassTransformer classTransformer)
addTransformer
in interface javax.persistence.spi.PersistenceUnitInfo
public ClassLoader getNewTempClassLoader()
getNewTempClassLoader
in interface javax.persistence.spi.PersistenceUnitInfo
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |