|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sigpath.database.SPDBManager
public class SPDBManager
SPDBManager Central point for database access in the SigPath system. An instantiation of the SPDBManager allows 1.base TransactionManager Interface functionality for database process delimitation methods 2.access to SigPath related database process managers
| Constructor Summary | |
|---|---|
SPDBManager()
Class Constructor. |
|
| Method Summary | |
|---|---|
void |
abortTxn()
Abort a transaction. |
void |
beginTxn()
Begin a transaction. |
void |
bind(Object obj)
Same as makePersistent |
void |
bind(Object obj,
String name)
Binds a transient object to a name and make it persistent. |
void |
checkpointTxn()
Checkpoints a transaction. |
void |
close()
Close the resources used by this db manager. |
void |
commitTxn()
Commit a transaction. |
static SPDBManager |
current()
Returns the current active SPDBManager. |
boolean |
delete(Object object)
Deletes an object from the database. |
boolean |
deleteAll(Collection c)
|
protected void |
finalize()
Finalize method for the class. |
DBInformation |
getDBInformation()
Get the DBInformation class |
Properties |
getDBProperties()
Get Database Properties |
Properties |
getDictionaryProperties()
Get Dictionary Properties |
EntityManager |
getEntityManager()
Get the EntityManager object for this class |
Extent |
getExtent(Class extentClass,
boolean getSubclasses)
|
Extent |
getExtent(String classname,
boolean getSubclasses)
|
Iterator |
getExtentIterator(Class extentClass,
boolean getSubclasses)
|
Iterator |
getExtentIterator(String classname,
boolean getSubclasses)
|
FullTextSearchManager |
getFullTextSearchManager()
Returns the FullTextSearchManager. |
JdoExtension |
getJdoExtension()
|
Object |
getObjectByObjectId(Class clazz,
String objid)
|
Object |
getObjectByObjectId(Object objid)
Returns the object for a certain object id of a firstclass object (JDO persistent object). |
Object |
getObjectId(Object obj)
Returns the object id of a firstclass object (JDO persistent object). |
PersistenceManager |
getPersistenceManager()
|
QueryManager |
getQueryManager()
Returns the QueryManager. |
SigPathFactory |
getSigPathFactory()
Get a SigPathFactory. |
SPIDManager |
getSPIDManager()
Get the SPIDManager object for this class |
UnitManager |
getUnitManager()
Returns the UnitManager. |
UserManager |
getUserManager()
Returns the UserManager. |
protected void |
init()
|
boolean |
isJdoFullTextSearch()
|
Object |
lookup(String name)
Returns the reference to the named object, or null if the name cannot be found. |
void |
makePersistent(Object obj)
Makes a transient object persistent. |
Query |
newQuery()
|
void |
retrieve(Object obj)
Retrieve an instance from the database. |
void |
retrieveAll(Collection c)
Retrieve instances from the store. |
void |
shutdown()
Closes the db manager, and releases the connection to the database. |
boolean |
txnInProgress()
Checks that a valid Transaction is in progress during a database process. |
void |
unbind(String name)
Release the association between the name and a stored object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SPDBManager()
throws SigPathDatabaseException
SigPathDatabaseException| Method Detail |
|---|
protected void init()
throws SigPathDatabaseException
SigPathDatabaseExceptionpublic JdoExtension getJdoExtension()
public static SPDBManager current()
public void beginTxn()
beginTxn in interface TransactionManagerpublic void commitTxn()
commitTxn in interface TransactionManagerpublic void checkpointTxn()
public void abortTxn()
abortTxn in interface TransactionManagerpublic boolean txnInProgress()
txnInProgress in interface TransactionManagerpublic void retrieve(Object obj)
obj - Object to be retrived.public void retrieveAll(Collection c)
c - Collection of objects to be retrived.public void makePersistent(Object obj)
public Object getObjectId(Object obj)
obj - The object you want the oid from.
public Object getObjectByObjectId(Object objid)
objid - an object id.
public Object getObjectByObjectId(Class clazz,
String objid)
public void bind(Object obj)
public void bind(Object obj,
String name)
throws SigPathDatabaseException
SigPathDatabaseException
public void unbind(String name)
throws SigPathDatabaseException
SigPathDatabaseException
public Object lookup(String name)
throws SigPathDatabaseException
SigPathDatabaseExceptionpublic boolean delete(Object object)
public boolean deleteAll(Collection c)
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic void close()
close in interface SigPathManagerpublic void shutdown()
public PersistenceManager getPersistenceManager()
public Extent getExtent(String classname,
boolean getSubclasses)
throws SigPathDatabaseException
SigPathDatabaseException
public Extent getExtent(Class extentClass,
boolean getSubclasses)
public Iterator getExtentIterator(String classname,
boolean getSubclasses)
throws SigPathDatabaseException
SigPathDatabaseException
public Iterator getExtentIterator(Class extentClass,
boolean getSubclasses)
throws SigPathDatabaseException
SigPathDatabaseExceptionpublic Query newQuery()
public EntityManager getEntityManager()
public SPIDManager getSPIDManager()
public SigPathFactory getSigPathFactory()
public FullTextSearchManager getFullTextSearchManager()
public boolean isJdoFullTextSearch()
public UserManager getUserManager()
public QueryManager getQueryManager()
public UnitManager getUnitManager()
public DBInformation getDBInformation()
public Properties getDBProperties()
throws SigPathDatabaseException
SigPathDatabaseException
public Properties getDictionaryProperties()
throws SigPathDatabaseException
SigPathDatabaseException
|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||