|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Client side interface definition for the Ganymede
DBObjectBase class. This
interface allows the client to query type information remotely, and allows
the schema editor in the admin console to remotely edit object type information.
The Category interface is also vital to
the client and schema editor's work with object types.
| Method Summary | |
boolean |
canCreate(Session session)
Returns true if the current session is permitted to create an object of this type. |
boolean |
canInactivate()
Returns true if this object type can be inactivated. |
BaseField |
createNewField()
Creates a new base field and inserts it into the DBObjectBase field definitions hash. |
ReturnVal |
deleteField(java.lang.String fieldName)
This method is used to remove a field definition from the current schema. |
boolean |
fieldInUse(java.lang.String fieldName)
This method is used by the SchemaEditor to detect whether any objects are using a field definition. |
Category |
getCategory()
Get the parent Category for this object type. |
java.lang.String |
getClassName()
Returns the name of the class managing this object type |
BaseField |
getField(short id)
Returns the field definition for the field matching id, or null if no match found. |
BaseField |
getField(java.lang.String name)
Returns the field definition for the field matching name, or null if no match found. |
java.util.Vector |
getFields()
This method returns a list of all BaseField references for the
fields defined by this object type, in random order. |
java.util.Vector |
getFields(boolean includeBuiltIns)
Returns BaseField
base field definitions for objects of this type. |
short |
getLabelField()
Returns the short type id for the field designated as this object's primary label field, if any. |
java.lang.String |
getLabelFieldName()
Returns the field name for the field designated as this object's primary label field. |
java.lang.String |
getName()
Returns the name of this object type. |
java.lang.String |
getPath()
Returns the name and category path of this object type. |
short |
getTypeID()
Returns the invid type id for this object definition |
boolean |
isEmbedded()
This method returns true if this object base is for an embedded object. |
boolean |
isRemovable()
This method indicates whether this base may be removed in the Schema Editor. |
ReturnVal |
moveFieldAfter(java.lang.String fieldName,
java.lang.String previousFieldName)
This method is used to adjust the ordering of a custom field in this Base. |
ReturnVal |
moveFieldBefore(java.lang.String fieldName,
java.lang.String nextFieldName)
This method is used to adjust the ordering of a custom field in this Base. |
ReturnVal |
setClassName(java.lang.String newName)
Sets the fully qualified classname of the class managing this object type |
ReturnVal |
setLabelField(short fieldID)
Choose what field will serve as this objectBase's label. |
ReturnVal |
setLabelField(java.lang.String fieldName)
Choose what field will serve as this objectBase's label. |
ReturnVal |
setName(java.lang.String newName)
Sets the name for this object type |
| Methods inherited from interface arlut.csd.ganymede.CategoryNode |
setCategory |
| Method Detail |
public boolean isRemovable()
throws java.rmi.RemoteException
This method indicates whether this base may be removed in the Schema Editor.
We don't allow removal of built-in Bases that the server depends on for its operation, such as permissions, notification, and logging object types.
public boolean isEmbedded()
throws java.rmi.RemoteException
public java.lang.String getName()
throws java.rmi.RemoteException
getName in interface CategoryNode
public java.lang.String getPath()
throws java.rmi.RemoteException
getPath in interface CategoryNode
public java.lang.String getClassName()
throws java.rmi.RemoteException
public short getTypeID()
throws java.rmi.RemoteException
public short getLabelField()
throws java.rmi.RemoteException
public java.lang.String getLabelFieldName()
throws java.rmi.RemoteException
public java.util.Vector getFields(boolean includeBuiltIns)
throws java.rmi.RemoteException
Returns BaseField
base field definitions for objects of this type.
If includeBuiltIns is false, the fields returned will be the custom fields defined for this object type, and they will be returned in display order. If includeBuiltIns is true, the built-in fields will be appended to the Vector after the custom types, in random order.
public java.util.Vector getFields()
throws java.rmi.RemoteException
This method returns a list of all
BaseField references for the
fields defined by this object type, in random order.
public BaseField getField(short id)
throws java.rmi.RemoteException
public BaseField getField(java.lang.String name)
throws java.rmi.RemoteException
public boolean canCreate(Session session)
throws java.rmi.RemoteException
public boolean canInactivate()
throws java.rmi.RemoteException
Base
public ReturnVal setName(java.lang.String newName)
throws java.rmi.RemoteException
Sets the name for this object type
This method is only valid when the Base reference is obtained
from a SchemaEdit reference
by the Ganymede schema editor.
public ReturnVal setClassName(java.lang.String newName)
throws java.rmi.RemoteException
Sets the fully qualified classname of the class managing this object type
This method is only valid when the Base reference is obtained
from a SchemaEdit reference
by the Ganymede schema editor.
public ReturnVal moveFieldAfter(java.lang.String fieldName,
java.lang.String previousFieldName)
throws java.rmi.RemoteException
This method is used to adjust the ordering of a custom field in this Base.
fieldName - The name of the field to movepreviousFieldName - The name of the field that fieldName is going to
be put after, or null if fieldName is to be the first field displayed
in this object type.
public ReturnVal moveFieldBefore(java.lang.String fieldName,
java.lang.String nextFieldName)
throws java.rmi.RemoteException
This method is used to adjust the ordering of a custom field in this Base.
fieldName - The name of the field to movenextFieldName - The name of the field that fieldName is going to
be put before, or null if fieldName is to be the last field displayed
in this object type.
public ReturnVal setLabelField(java.lang.String fieldName)
throws java.rmi.RemoteException
Choose what field will serve as this objectBase's label. A fieldName
parameter of null will cause the object's label field to be undefined,
in which case the object will have to generate its own label using the
getLabelHook()
method.
This method is only valid when the Base reference is obtained
from a SchemaEdit reference
by the Ganymede schema editor.
public ReturnVal setLabelField(short fieldID)
throws java.rmi.RemoteException
Choose what field will serve as this objectBase's label. A fieldID
parameter of -1 will cause the object's label field to be undefined,
in which case the object will have to generate its own label using the
getLabelHook()
method.
This method is only valid when the Base reference is obtained
from a SchemaEdit reference
by the Ganymede schema editor.
public Category getCategory()
throws java.rmi.RemoteException
Get the parent Category for this object type. This is used by the Ganymede client and schema editor to present object types in a hierarchical tree.
This method is only valid when the Base reference is obtained
from a SchemaEdit reference
by the Ganymede schema editor.
getCategory in interface CategoryNode
public BaseField createNewField()
throws java.rmi.RemoteException
Creates a new base field and inserts it into the DBObjectBase field definitions hash. The newly created field will the first short id code value available at or above 256.
This method is only valid when the Base reference is obtained
from a SchemaEdit reference
by the Ganymede schema editor.
public ReturnVal deleteField(java.lang.String fieldName)
throws java.rmi.RemoteException
This method is used to remove a field definition from the current schema.
Of course, this removal will only take effect if the schema editor commits.
This method is only valid when the Base reference is obtained
from a SchemaEdit reference
by the Ganymede schema editor.
Base
public boolean fieldInUse(java.lang.String fieldName)
throws java.rmi.RemoteException
Base
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||