|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttextractor.database.DbManager
public final class DbManager
Central point for database access in the system. An instantiation of the DbManager allows
| Constructor Summary | |
|---|---|
DbManager()
Creates a nwe DbManager in the web application context. |
|
DbManager(String propertyFilename)
Creates a nwe DbManager in the web application context. |
|
DbManager(String[] args)
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 |
commitTxn()
Commit a transaction. |
boolean |
delete(Object object)
Deletes an object from the database. |
boolean |
deleteAll(Collection c)
|
void |
finalize()
Close the persistence manager upon garbage collection. |
javax.jdo.Extent |
getExtent(Class extentClass,
boolean getSubclasses)
|
javax.jdo.Extent |
getExtent(String classname,
boolean getSubclasses)
|
Iterator |
getExtentIterator(Class extentClass,
boolean getSubclasses)
|
Iterator |
getExtentIterator(String classname,
boolean getSubclasses)
|
JdoExtension |
getJdoExtension()
|
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). |
javax.jdo.PersistenceManager |
getPM()
|
String |
getPropertyFilename()
|
TextractorManager |
getTextractorManager()
|
protected void |
init(String[] args)
|
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. |
void |
makePersistentAll(Collection objects)
Make element of a collection persistent. |
javax.jdo.Query |
newQuery()
|
void |
retrieve(Object obj)
Retrieve an instance from the database. |
void |
retrieveAll(Collection c)
Retrieve instances from the store. |
void |
shutdown()
|
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 DbManager()
throws TextractorDatabaseException
TextractorDatabaseException
public DbManager(String propertyFilename)
throws TextractorDatabaseException
TextractorDatabaseException
public DbManager(String[] args)
throws TextractorDatabaseException
TextractorDatabaseException| Method Detail |
|---|
public TextractorManager getTextractorManager()
protected void init(String[] args)
throws TextractorDatabaseException
TextractorDatabaseExceptionpublic JdoExtension getJdoExtension()
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 TransactionManagertrue if valid Transaction is in progress for this thread, else return falsepublic void retrieve(Object obj)
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 void bind(Object obj)
public void bind(Object obj,
String name)
public void unbind(String name)
public Object lookup(String name)
throws TextractorDatabaseException
TextractorDatabaseExceptionpublic boolean delete(Object object)
public boolean deleteAll(Collection c)
public void finalize()
throws Throwable
finalize in interface TransactionManagerfinalize in class ObjectThrowable - if an error occurs.public void shutdown()
public javax.jdo.PersistenceManager getPM()
public javax.jdo.Extent getExtent(String classname,
boolean getSubclasses)
throws TextractorDatabaseException
TextractorDatabaseException
public javax.jdo.Extent getExtent(Class extentClass,
boolean getSubclasses)
public Iterator getExtentIterator(String classname,
boolean getSubclasses)
throws TextractorDatabaseException
TextractorDatabaseException
public Iterator getExtentIterator(Class extentClass,
boolean getSubclasses)
public javax.jdo.Query newQuery()
public String getPropertyFilename()
public void makePersistentAll(Collection objects)
objects - Elements of the collection will be made persistent.
|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||