|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.db.DcDatabase
public class DcDatabase
Manages the Data Crow database. Is responsible for executing queries and database maintenance (upgrading).
Constructor Summary | |
---|---|
DcDatabase()
|
Method Summary | |
---|---|
protected void |
cleanup()
Removes unused columns. |
protected Conversions |
getConversions()
|
protected java.lang.String |
getName()
Returns the name of the database. |
protected Version |
getOriginalVersion()
The version from before the upgrade. |
protected int |
getQueueSize()
Returns the current count of queries waiting in the queue. |
protected Version |
getVersion(java.sql.Connection connection)
Retrieves the current version of the database. |
protected void |
initiliaze()
Initializes the database. |
boolean |
isNew()
|
protected void |
queue(Query query)
Adds a query to the query queue of this database. |
protected void |
setDbProperies(java.sql.Connection connection)
Applies the default settings on the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DcDatabase()
Method Detail |
---|
protected Conversions getConversions()
protected Version getOriginalVersion()
protected Version getVersion(java.sql.Connection connection)
connection
- public boolean isNew()
protected void initiliaze() throws java.lang.Exception
connection
-
java.lang.Exception
protected void cleanup()
protected int getQueueSize()
protected java.lang.String getName()
protected void queue(Query query)
query
- protected void setDbProperies(java.sql.Connection connection)
connection
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |