|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.OBBase com.oberon.ooql.sdk.AdminBase com.oberon.ooql.sdk.ObjectSpace
public class ObjectSpace
ObjectSpace Admin Object: defines a object container on database.
Field Summary |
---|
Fields inherited from class com.oberon.ooql.sdk.AdminBase |
---|
bsOptions, HIDDEN_OPTION |
Constructor Summary | |
---|---|
ObjectSpace()
|
|
ObjectSpace(java.lang.String name)
|
Method Summary | |
---|---|
void |
check(Framework framework)
Check the if ObjectObj 's data are correct |
java.lang.String |
compareUpdate(ObjectSpace refObjectSpace,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
Return/apply the OOQL command to update this ObjectSpace object and let it become equals to another reference object. |
void |
create(boolean force,
Framework framework)
Create a new ObjectSpace object on the database |
void |
create(Framework framework)
Create a new ObjectSpace object on the database |
void |
defrag(int commit,
Framework framework)
|
void |
destroy(Framework framework)
Remove the ObjectSpace object from the database |
void |
empty(Framework framework)
Remove (destroy) all ObjectObj instances from ObjectSpace |
void |
fromXML(org.jdom.Element rootElement)
Load the ObjectSpace object properties from XML element tree |
java.lang.String |
getCreateCommand(boolean force)
Return the OOQL command to create this ObjectSpace object with the settled properties |
java.lang.String |
getIndexSpace()
Get database tablespace where index tables for all ObjectObj s belonging to this ObjectSpace are stored. |
java.lang.String |
getOSCode()
Get the ObjectSpace cose. |
int |
getOSId()
Get the ObjectSpace unique id. |
java.lang.String |
getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
Get a property for this ObjectSpace object by its OOQL identifier |
java.lang.String |
getSaveCommand(boolean force)
Return the OOQL command to update this ObjectSpace object with the modified properties. |
java.lang.String |
getTableSpace()
Get database tablespace where data tables for all ObjectObj s belonging to this ObjectSpace are stored. |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Return a Vector of administrative object names extracted by using an OOQL selector |
int |
getTotalObjects(Framework framework)
Get the number of ObjectObj instances defined into this ObjectSpace |
void |
link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the ObjectSpace object: connect the memory instance with the database instance |
static ObjectSpace |
open(java.lang.String name,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open an administrative object and read properties from the database or retrieve them from memory |
void |
setIndexSpace(java.lang.String indexSpace)
Set database tablespace where index tables for all ObjectObj s belonging to this ObjectSpace are stored. |
void |
setOSId(int objectSpaceID)
Set the ObjectSpace unique id. |
void |
setTableSpace(java.lang.String tableSpace)
Set database tablespace where data tables for all ObjectObj s belonging to this ObjectSpace are stored. |
java.lang.String |
toString()
Return the ObjectSpace object basic properties as a single String |
java.lang.String |
toString(Framework framework)
Return the ObjectSpace object extended properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the ObjectSpace object properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the ObjectSpace object properties as XML element tree |
void |
unlink(Framework framework)
Close the object: disconnect the memory instance from the database instance |
void |
write(boolean force,
Framework framework)
Update the ObjectSpace object to the database |
void |
write(Framework framework)
Update the ObjectSpace object to the database |
Methods inherited from class com.oberon.ooql.sdk.OBBase |
---|
addChange, addUniqueChange, ChangesFromXML, ChangesToXML, getChanges, getChangesAsString, getId, isLinked, removeChange, resetChanges, setId, setLinked |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectSpace()
public ObjectSpace(java.lang.String name) throws OberonException
name
- the name of the administrative object
OberonException
- if the name contains invalid charactersMethod Detail |
---|
public static ObjectSpace open(java.lang.String name, Framework framework, java.util.Hashtable<java.lang.String,java.lang.Integer> counters) throws OberonException
name
- the object nameframework
- the current frameworkcounters
- administrative object synch counters (if null read them from database)
OberonException
- usually due to DB SQL exceptionspublic void link(Framework framework, java.util.Hashtable<java.lang.String,java.lang.Integer> counters) throws OberonException
link
in class AdminBase
framework
- the current frameworkcounters
- administrative object synch counters (if null read them from database)
OberonException
- usually due to DB SQL exceptionspublic void create(Framework framework) throws OberonException
create
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic void create(boolean force, Framework framework) throws OberonException
force
- if true ignores optional featuresframework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic void write(Framework framework) throws OberonException
write
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic void write(boolean force, Framework framework) throws OberonException
force
- if true ignores optional featuresframework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic void unlink(Framework framework) throws OberonException
unlink
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptionspublic void destroy(Framework framework) throws OberonException
destroy
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rights or not empty spacepublic void empty(Framework framework) throws OberonException
ObjectObj
instances from ObjectSpace
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic void check(Framework framework) throws OberonException
ObjectObj
's data are correct
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic void defrag(int commit, Framework framework) throws OberonException
OberonException
public void setOSId(int objectSpaceID)
ObjectObj
instances collected into this ObjectSpace will have id starting with #00005-........
public int getOSId()
setOSId(int)
public java.lang.String getOSCode()
setOSId(int)
public void setTableSpace(java.lang.String tableSpace)
ObjectObj
s belonging to this ObjectSpace are stored.
public java.lang.String getTableSpace()
ObjectObj
s belonging to this ObjectSpace are stored.
public void setIndexSpace(java.lang.String indexSpace)
ObjectObj
s belonging to this ObjectSpace are stored.
public java.lang.String getIndexSpace()
ObjectObj
s belonging to this ObjectSpace are stored.
public int getTotalObjects(Framework framework)
ObjectObj
instances defined into this ObjectSpace
public java.lang.String getProperty(java.lang.String propertyName, java.util.Vector<java.lang.Object> filterArgs, java.lang.String token, Framework framework)
getProperty
in class OBBase
propertyName
- OOQL property identifier/name (example: tablespace , totalobjects ...)filterArgs
- extra arguments used to compute propertiestoken
- separator token for complex propertiesframework
- the current framework
public java.util.Vector<?> getTargetNames(java.lang.String composedName, java.util.Vector<java.lang.Object> filterArgs, Framework framework)
getTargetNames
in class OBBase
composedName
- OOQL property identifier/namefilterArgs
- extra arguments used to compute propertiesframework
- the current framework
public java.lang.String toString()
toString
in class AdminBase
public java.lang.String toString(Framework framework)
toString
in class AdminBase
framework
- the current frameworkpublic org.jdom.Element toXML(Framework framework)
toXML
in class AdminBase
framework
- the current frameworkpublic org.jdom.Element toXML(boolean getImage, boolean fullDump, Framework framework)
toXML
in class AdminBase
getImage
- true to include "imagedata" element with the base64 encoded image datafullDump
- true to include detailed informationframework
- the current frameworkpublic void fromXML(org.jdom.Element rootElement)
fromXML
in class AdminBase
public java.lang.String getCreateCommand(boolean force)
getCreateCommand
in class AdminBase
force
- if true append the "force" options at the endpublic java.lang.String getSaveCommand(boolean force)
getSaveCommand
in class AdminBase
force
- if true append the "force" options at the endpublic java.lang.String compareUpdate(ObjectSpace refObjectSpace, boolean checkImage, boolean overwrite, boolean force, Framework framework) throws OberonException
refObjectSpace
- the reference ObjectSpace objectcheckImage
- if true compare also the image iconoverwrite
- if true update the database object instanceforce
- if true ignores optional propertiesframework
- the current framework
OberonException
fromXML(Element)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |