|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dftproject.genesis.core.data.DataManager
public class DataManager
The DataManager class controls the data.
| Field Summary | |
|---|---|
static java.lang.String |
DATA_STORE
The name of the default data store. |
| Method Summary | |
|---|---|
void |
addDataListener(IDataListener listener)
Add a data listener |
void |
close()
Closes the database. |
protected java.sql.Connection |
getConnection()
Returns a JDBC connection to the database. |
DataConnection |
getDataConnection()
Returns a data connection to the database. |
DataConnection |
getDataConnection(java.sql.Connection conn)
Returns a data connection wrapped around the given JDBC connection |
static DataManager |
getDefault()
Returns the singleton DataManager instance. |
DataView |
getView()
Returns the primary data view. |
void |
notifyDeleteListeners(DataResourceNode graph,
DataResourceNode subject,
DataResourceNode predicate,
INode object)
Notifies data listeners of a deletion. |
void |
notifyInsertListeners(DataResourceNode graph,
DataResourceNode subject,
DataResourceNode predicate,
INode object)
Notifies data listeners of an insertion. |
void |
removeDataListener(IDataListener listener)
Remove a data listener. |
java.lang.String |
usePrefix(java.lang.String uri)
Returns the given URI using a namespace prefix if available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DATA_STORE
| Method Detail |
|---|
public static DataManager getDefault()
public DataView getView()
public void close()
public java.lang.String usePrefix(java.lang.String uri)
uri - the URI
protected java.sql.Connection getConnection()
public DataConnection getDataConnection()
public DataConnection getDataConnection(java.sql.Connection conn)
conn - a JDBC connection
public void addDataListener(IDataListener listener)
listener - the listenerpublic void removeDataListener(IDataListener listener)
listener - the listener
public void notifyInsertListeners(DataResourceNode graph,
DataResourceNode subject,
DataResourceNode predicate,
INode object)
graph - the graphsubject - the subjectpredicate - the predicateobject - the object
public void notifyDeleteListeners(DataResourceNode graph,
DataResourceNode subject,
DataResourceNode predicate,
INode object)
graph - the graphsubject - the subjectpredicate - the predicateobject - the object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||