public interface IDBPool
| Modifier and Type | Method and Description |
|---|---|
IDB |
getDbForPersistenceUnit(String sPersistenceUnit)
return a new created/reseted or reused IDB instance from the pool
which is bound to a persistence unit matching the given name.
|
void |
registerPersistenceUnit(IPersistenceUnit aUnit)
register new persistence unit inside this pool.
|
void |
registerPersistenceUnit(String sName)
load the specified persistence unit from the persistence.xml file
and register those unit inside this pool.
|
IDB getDbForPersistenceUnit(String sPersistenceUnit) throws Exception
sPersistenceUnit - [IN]
name of the persistence unit (configuration) where the searched
DB instance is bound to.Exceptionvoid registerPersistenceUnit(String sName) throws Exception
sName - [IN]
the name of the persistence unit.Exception - if such persistence unit couldn't
be registered successfully.void registerPersistenceUnit(IPersistenceUnit aUnit) throws Exception
aUnit - [IN]
the new persistence unit for this pool.Exception - if such persistence unit couldn't
be registered successfully.Copyright © 2016 as-development.net. All rights reserved.