public class ConfigPersistenceUnit
extends java.lang.Object
Constructor and Description |
---|
ConfigPersistenceUnit(java.net.URL rootUrl) |
Modifier and Type | Method and Description |
---|---|
void |
addBuilderProgram(ConfigProgram program) |
javax.sql.DataSource |
getJtaDataSource()
Gets the transactional data source.
|
java.lang.String |
getJtaDataSourceName()
Gets the transactional data source.
|
java.lang.String |
getName()
Returns the unit name.
|
javax.sql.DataSource |
getNonJtaDataSource()
Sets the non-transactional data source.
|
java.lang.Class<?> |
getProvider()
Sets the provider class name.
|
java.net.URL |
getRoot() |
PersistenceUnitTransactionType |
getTransactionType() |
java.lang.String |
getVersion() |
void |
init() |
protected javax.sql.DataSource |
loadDataSource(java.lang.String name) |
void |
setName(java.lang.String name)
Sets the unit name.
|
void |
setTransactionType(PersistenceUnitTransactionType transactionType) |
void |
setVersion(java.lang.String version) |
java.lang.String |
toString() |
public java.lang.String getName()
public void setName(java.lang.String name)
public PersistenceUnitTransactionType getTransactionType()
public void setTransactionType(PersistenceUnitTransactionType transactionType)
public java.net.URL getRoot()
public void setVersion(java.lang.String version)
public java.lang.String getVersion()
public java.lang.Class<?> getProvider()
public javax.sql.DataSource getJtaDataSource()
public java.lang.String getJtaDataSourceName()
public javax.sql.DataSource getNonJtaDataSource()
public void addBuilderProgram(ConfigProgram program)
@PostConstruct public void init()
protected javax.sql.DataSource loadDataSource(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object