|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.admin.DBCoreInterface
public final class DBCoreInterface
Point of entry for db-core data and functionality. All classes
that need either must go through a DBCoreInterface.
The only classes that are exposed by DBCoreInterface (or by one of
the classes it exposes) are RelatedNodes,
NodeAddress, LinkSet, NodeInstancing,
QueryResultSet, QueryResult and Via, and
pointers to protected classes (such as DocumentID and
NodeAddress). These classes are all read-only (with the
exception of QueryResultSet). Everything else, such as
Document, NodeRepository and LinkRepository, is hidden and should
never be instantiated by a high-level class.
Constructor Summary | |
---|---|
DBCoreInterface(RepositoryFactoryInterface repositoryFactory,
NodeFactoryInterface nodeFactory,
LinkProperties linkProperties,
SymbolTable symbolTable,
AppName applicationName,
AppFileExtension applicationFileExtension)
Constructor |
Method Summary | |
---|---|
CommandSequence |
closeCommandBuffer()
Turn off command buffering. |
CommandReturn |
execute(Command command)
Interpret and execute a command. |
void |
execute(CommandSequence sequence)
Execute all the commands in a CommandSequence. |
void |
execute(Executable executable)
|
AppFileExtension |
getAppFileExtension()
Return the application file extension |
AppName |
getAppName()
Retrieve the application name. |
HistoryFrameID |
getCurrentStateID()
Gets the HistoryFrameID of the history frame on the top of the undo stack, i.e., the current state of the system. |
int |
getHistoryFrameRelationship(HistoryFrameID frame)
Determine the placement of a particular history frame. |
Command |
getLastCommand()
Returns the Command of the last command issued to the DBCore, or an exception if this is the first command |
java.util.Iterator |
getNodeAttributeIDs(NodeAddress node)
Return an iterator over all the AttributeIDs of a node's attributes. |
DocumentID |
getOpenDocument()
Return the ID of the currently open document, or DocumentID.NO_DOCUMENT if no document is currently open. |
Executable |
getRedoableOperation()
Returns the CommandType of the command associated with the subsequent recent state-changing operation in the redo stack. |
RepositoryFactoryInterface |
getRepositoryFactory()
Retrieve the RepositoryFactory |
SymbolTable |
getSymbolTable()
Retrieve the symbol table. |
Executable |
getUndoableOperation()
Returns the CommandType of the command associated with the most recent state-changing operation, i.e., the operation at the top of the undo stack. |
void |
openCommandBuffer()
Turn on command buffering. |
void |
reset()
|
void |
setRevalidateInstanceNodes(boolean revalidates)
This turns intance node validation on or off. |
void |
setStatelessMode(boolean statelessMode)
Turn Stateless Mode on or off. |
void |
setSymbolTable(SymbolTable st)
Set the symbol table. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBCoreInterface(RepositoryFactoryInterface repositoryFactory, NodeFactoryInterface nodeFactory, LinkProperties linkProperties, SymbolTable symbolTable, AppName applicationName, AppFileExtension applicationFileExtension)
Method Detail |
---|
public AppName getAppName()
public AppFileExtension getAppFileExtension()
public SymbolTable getSymbolTable()
public RepositoryFactoryInterface getRepositoryFactory()
public void setSymbolTable(SymbolTable st)
public void execute(Executable executable) throws Scheherexception
Scheherexception
public void execute(CommandSequence sequence) throws Scheherexception
Scheherexception
public CommandReturn execute(Command command) throws Scheherexception
Scheherexception
public int getHistoryFrameRelationship(HistoryFrameID frame) throws Scheherexception
Scheherexception
public Executable getUndoableOperation()
public Executable getRedoableOperation()
public HistoryFrameID getCurrentStateID()
public DocumentID getOpenDocument()
public Command getLastCommand() throws Scheherexception
Scheherexception
public java.util.Iterator getNodeAttributeIDs(NodeAddress node) throws Scheherexception
Scheherexception
public void setStatelessMode(boolean statelessMode) throws Scheherexception
Scheherexception
public void setRevalidateInstanceNodes(boolean revalidates)
public void openCommandBuffer() throws Scheherexception
Scheherexception
public CommandSequence closeCommandBuffer()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |