|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fido.db.ObjectTable
Constructor Summary | |
ObjectTable()
|
Method Summary | |
java.lang.String |
buildInList(int objectId)
|
boolean |
contains(int id)
|
void |
deleteClass(int objectId,
boolean tree)
Removes the Class name objectId from the Hierarchy. |
void |
deleteInstance(int instanceId)
Deletes an InstanceObject. |
java.util.Collection |
findInstance(int subtreeRoot,
BooleanTree attrTree,
BooleanTree prepTree)
|
java.util.Collection |
findObject(int objectId)
|
int |
hashCode(int id)
|
int |
hashCode(java.lang.String id)
|
int |
instantiate(int objectId,
java.lang.String description)
Creates a new InstanceObject from the ClassObject objectId The new object will duplicate all of the links of the parent ClassObject. |
boolean |
isSubclassOf(int objectId,
int parent)
Looks for a class named parent as any parent class of objectId, until the root class Object is reached. |
void |
modify(int id,
java.lang.String description)
|
java.util.Collection |
pathToObject(int objectId)
Deletes an InstanceObject. |
int |
subclass(int objectId,
java.lang.String description)
Creates a new ClassObject cloning objectId with a LinkName Isa pointing to the parent class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectTable()
Method Detail |
public boolean isSubclassOf(int objectId, int parent) throws FidoDatabaseException, ObjectNotFoundException
objectId
- starting class nameparent
- name of the class to look for as a parent
ObjectNotFoundException
- thrown if objectId
is not the name of a valid ClassObject.
java.sql.SQLException
- thrown if any IO Exception occurs
while reading classes.
FidoDatabaseException
public boolean contains(int id) throws FidoDatabaseException
FidoDatabaseException
public int subclass(int objectId, java.lang.String description) throws FidoDatabaseException, ObjectNotFoundException
objectId
- name of the parent class to clone
ObjectNotFoundException
- thrown if the class
object objectId is not found
java.sql.SQLException
- thrown if any IO Exception occurs
while reading parent class or writting the new
class.
FidoDatabaseException
public void deleteClass(int objectId, boolean tree) throws ObjectNotFoundException, FidoDatabaseException, CannotDeleteRootObjectException, ClassLinkTypeNotFoundException
objectId
- name of the class to removetree
- true if all subclasses should be removed, false if
all children should become children of the parent
ObjectNotFoundException
- thrown if the class
object objectId is not found
java.sql.SQLException
- thrown if any IO Exception occurs
while reading parent class or deleting the class.
CannotDeleteRootObjectException
- thrown when attempting
to remove the root object named Object
LinkTypeNotFoundException
- System LinkType named Isa
was not found
FidoDatabaseException
ClassLinkTypeNotFoundException
public int instantiate(int objectId, java.lang.String description) throws FidoDatabaseException, ObjectNotFoundException, ClassLinkTypeNotFoundException
objectId
- name of the class to create an instance from
ObjectNotFoundException
- thrown if the class
object objectId is not found
LinkTypeNotFoundException
- thrown if the link type
Instance is not found
java.sql.SQLException
- thrown if any IO Exception occurs
while reading parent class or writting the new
class.
FidoDatabaseException
ClassLinkTypeNotFoundException
public void deleteInstance(int instanceId) throws FidoDatabaseException, ObjectNotFoundException
ObjectNotFoundException
- thrown if the class
object instanceName is not found
java.sql.SQLException
- thrown if any IO Exception occurs
while removing the object
FidoDatabaseException
public java.lang.String buildInList(int objectId) throws FidoDatabaseException, ObjectNotFoundException
FidoDatabaseException
ObjectNotFoundException
public java.util.Collection pathToObject(int objectId) throws FidoDatabaseException, ObjectNotFoundException
ObjectNotFoundException
- thrown if the class
object instanceName is not found
java.sql.SQLException
- thrown if any IO Exception occurs
while removing the object
FidoDatabaseException
public void modify(int id, java.lang.String description) throws FidoDatabaseException, ObjectNotFoundException
FidoDatabaseException
ObjectNotFoundException
public java.util.Collection findObject(int objectId) throws FidoDatabaseException, ObjectNotFoundException
FidoDatabaseException
ObjectNotFoundException
public java.util.Collection findInstance(int subtreeRoot, BooleanTree attrTree, BooleanTree prepTree) throws FidoDatabaseException, BooleanSyntaxException, ObjectNotFoundException, ClassLinkTypeNotFoundException
FidoDatabaseException
BooleanSyntaxException
ObjectNotFoundException
ClassLinkTypeNotFoundException
public int hashCode(java.lang.String id) throws FidoDatabaseException, ObjectNotFoundException
FidoDatabaseException
ObjectNotFoundException
public int hashCode(int id) throws FidoDatabaseException, ObjectNotFoundException
FidoDatabaseException
ObjectNotFoundException
|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |