public class PersistenceParserImpl extends Object implements PersistenceParser
| Modifier and Type | Field and Description |
|---|---|
static String |
PERSISTENCE_XML
The name of the Persistence XML file.
|
| Constructor and Description |
|---|
PersistenceParserImpl(javax.persistence.spi.PersistenceUnitInfo puInfo,
Map<String,Object> properties) |
PersistenceParserImpl(String puName,
Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassloader()
Returns the classloader of the PersistenceParser.
|
DataSource |
getJtaDataSource()
Returns the JTA datasource JNDI name.
|
MetadataImpl |
getMetadata()
Returns the metadata of the parser.
|
DataSource |
getNonJtaDataSource()
Returns the non-JTA datasource JNDI name.
|
Map<String,Object> |
getProperties()
Returns the properties of the persistence unit.
|
String |
getProvider()
Returns the persistence provider.
|
javax.persistence.SharedCacheMode |
getSharedCacheMode()
Returns the specification of how the provider must use a second-level cache for the persistence unit.
|
boolean |
hasValidators()
Returns if the persistence unit has validators
|
public static final String PERSISTENCE_XML
public PersistenceParserImpl(javax.persistence.spi.PersistenceUnitInfo puInfo,
Map<String,Object> properties)
puInfo - the persistence unit infoproperties - the properties of the persistence unitpublic ClassLoader getClassloader()
getClassloader in interface PersistenceParserpublic DataSource getJtaDataSource()
getJtaDataSource in interface PersistenceParserpublic MetadataImpl getMetadata()
getMetadata in interface PersistenceParserpublic DataSource getNonJtaDataSource()
getNonJtaDataSource in interface PersistenceParserpublic Map<String,Object> getProperties()
getProperties in interface PersistenceParserpublic String getProvider()
getProvider in interface PersistenceParserpublic javax.persistence.SharedCacheMode getSharedCacheMode()
getSharedCacheMode in interface PersistenceParserpublic boolean hasValidators()
hasValidators in interface PersistenceParserCopyright © 2012-2013 Batoo. All Rights Reserved.