|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pajes.db.entity.Registry
public class Registry
Singleton registry of active Manager instances.
| Method Summary | |
|---|---|
static void |
destroy()
Destroys the Registry. |
static ConnectionPool |
getDefaultPool()
Returns the default ConnectionPool. |
static Manager |
getManager(java.lang.Class<? extends Manager> entityManagerClass)
Returns the instance of the specified Manager class. |
static Manager |
getManager(java.lang.String primaryTableName)
Returns the Manager instance that manages the specified table.. |
static java.util.Collection<Manager> |
getManagers()
Returns all the Manager instances that have been registered. |
static void |
setDefaultPool(ConnectionPool pool)
Sets a default ConnectionPool to
allow automatic registration of Manager instances. |
static void |
setSuperClass(java.lang.Class<? extends Manager> manager)
Sets the allowed super class of all Managers registered. |
java.lang.String |
toString()
Returns a String representation of the Registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static void destroy()
public static ConnectionPool getDefaultPool()
ConnectionPool.
public static Manager getManager(java.lang.Class<? extends Manager> entityManagerClass)
Manager class.
entityManagerClass - the Manager class.
EntityException - if an exception occurred creating the requested manager.public static Manager getManager(java.lang.String primaryTableName)
Manager instance that manages the specified table..
primaryTableName - the name of the database table..
public static java.util.Collection<Manager> getManagers()
public static void setDefaultPool(ConnectionPool pool)
ConnectionPool to
allow automatic registration of Manager instances.
pool - The new defaultPool valuepublic static void setSuperClass(java.lang.Class<? extends Manager> manager)
manager - The allowed super class.
EntityException - if the specified Class is not a sub-class of Manager.public java.lang.String toString()
toString in class java.lang.Object
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||