com.caucho.env.jpa
Class ConfigPersistenceUnit

java.lang.Object
  extended by com.caucho.env.jpa.ConfigPersistenceUnit

public class ConfigPersistenceUnit
extends java.lang.Object

tag in the persistence.xml


Constructor Summary
ConfigPersistenceUnit(java.net.URL rootUrl)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigPersistenceUnit

public ConfigPersistenceUnit(java.net.URL rootUrl)
Method Detail

getName

public java.lang.String getName()
Returns the unit name.


setName

public void setName(java.lang.String name)
Sets the unit name.


getTransactionType

public PersistenceUnitTransactionType getTransactionType()

setTransactionType

public void setTransactionType(PersistenceUnitTransactionType transactionType)

getRoot

public java.net.URL getRoot()

setVersion

public void setVersion(java.lang.String version)

getVersion

public java.lang.String getVersion()

getProvider

public java.lang.Class<?> getProvider()
Sets the provider class name.


getJtaDataSource

public javax.sql.DataSource getJtaDataSource()
Gets the transactional data source.


getJtaDataSourceName

public java.lang.String getJtaDataSourceName()
Gets the transactional data source.


getNonJtaDataSource

public javax.sql.DataSource getNonJtaDataSource()
Sets the non-transactional data source.


addBuilderProgram

public void addBuilderProgram(ConfigProgram program)

init

@PostConstruct
public void init()

loadDataSource

protected javax.sql.DataSource loadDataSource(java.lang.String name)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object