|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.server.S_LibraryObject
The S_LibraryObject class is the server side base class for all iFS objects.
Constructor Summary | |
protected |
S_LibraryObject(S_LibrarySession session,
java.lang.Long classId)
This constructor is called during object creation (i.e., this Library Object does not yet exist in the database). |
protected |
S_LibraryObject(S_LibrarySession session,
S_LibraryObjectData data)
Construct a S_LibraryObject object. |
Method Summary | |
protected void |
deriveDefinition(S_LibraryObjectDefinition def)
Add to the S_LibraryObjectDefinition for this class. |
boolean |
equals(S_LibraryObject item)
Compares whether two LibraryObjects are the same IFS object. |
protected void |
extendedPreFree(OperationState opState,
S_LibraryObjectDefinition def)
operations to be performed before freeing an object. |
protected void |
extendedPreInsert(OperationState opState,
S_LibraryObjectDefinition sdef)
operations to be performed before creating an object. |
protected void |
extendedPreUpdate(OperationState opState,
S_LibraryObjectDefinition def)
operations to be performed before updating an object. |
void |
free(OperationState opState,
S_LibraryObjectDefinition def)
permanently delete an object. |
AttributeValue |
getAttribute(java.lang.String attr_name)
return an AttributeValue object that holds the value of the requested attribute. |
AttributeValue |
getAttributeByUpperCaseName(java.lang.String attr_name)
Gets the attribute value for the specified attribute. |
java.lang.Long |
getClassId()
getClassId - get the object's class ID (a long). |
S_ClassObject |
getClassObject()
getClassObject - get the object's ClassObject |
java.lang.Long |
getId()
getId - get the object's numeric ID (a long). |
S_LibrarySession |
getSession()
getSession - return current S_LibrarySession. |
void |
handleEvent(IfsEvent event)
Handles the specified event. |
boolean |
hasNameAttribute()
returns true if this object is an instance of a class that has a NAME attribute, and false otherwise. |
boolean |
isTraced(int channel,
int level)
Gets whether tracing is enabled for the specified channel and level. |
void |
postEvent(int eventType,
int eventStatus)
Posts an event of the specified type and status. |
void |
postEvent(int eventType,
int eventSubtype,
int eventStatus,
long longPayload)
Posts an event of the specified type, subtype, and status. |
java.io.Reader |
renderAsReader(java.lang.String rendererType,
java.lang.String rendererName,
java.util.Hashtable options)
Renders this LibraryObject as a Reader. |
java.io.InputStream |
renderAsStream(java.lang.String rendererType,
java.lang.String rendererName,
java.util.Hashtable options)
Renders this LibraryObject as an InputStream. |
void |
setAttribute(AttributeValue attr_value)
set the object's attribute to the specified value. |
void |
setAttribute(java.lang.String attr_name,
AttributeValue attr_value)
set the object's attribute to the specified value. |
java.lang.String |
toString()
If this is an instance of a class that has a name attribute, return getName(); else, return super.toString(). |
void |
trace(int channel,
int level,
java.lang.String payload)
Issues a trace request to the trace logger. |
void |
update(OperationState opState,
S_LibraryObjectDefinition def)
update an object in the context of an Operation. |
Constructor Detail |
protected S_LibraryObject(S_LibrarySession session, S_LibraryObjectData data) throws IfsException
session
- current S_LibrarySessiondata
- the object's dataprotected S_LibraryObject(S_LibrarySession session, java.lang.Long classId) throws IfsException
session
- current S_LibrarySessionMethod Detail |
public java.lang.Long getId() throws IfsException
getId
in interface LibraryObjectInterface
public java.lang.Long getClassId() throws IfsException
getClassObject().getId();
IfsException
- if the operation failspublic boolean equals(S_LibraryObject item) throws IfsException
IfsException
- if operation fails.public final S_ClassObject getClassObject() throws IfsException
public boolean hasNameAttribute() throws IfsException
IfsException
- if operation fails.public S_LibrarySession getSession() throws IfsException
IfsException
- if operation fails.public java.lang.String toString()
toString
in class java.lang.Object
public final AttributeValue getAttribute(java.lang.String attr_name) throws IfsException
attr_name
- the name of the AttributeIfsException
- if operation fails.public final AttributeValue getAttributeByUpperCaseName(java.lang.String attr_name) throws IfsException
attr_name
- the attribute name; must be all upper caseIfsException
- if the operation failspublic void setAttribute(java.lang.String attr_name, AttributeValue attr_value) throws IfsException
attr_name
- the name of the Attributeattr_value
- the desired value of the AttributeIfsException
- if operation fails.public void setAttribute(AttributeValue attr_value) throws IfsException
attr_value
- the desired name & value of the AttributeIfsException
- if operation fails.public final java.io.InputStream renderAsStream(java.lang.String rendererType, java.lang.String rendererName, java.util.Hashtable options) throws IfsException
The rendererType and rendererName together determine which Renderer implementation is to be used as follows:
If rendererName is not null, the Policy named rendererName for the operation specified by rendererType is obtained. The fully-qualified classname of the Renderer is contained in the IMPLEMENTATION attribute of that Policy.
If rendererName is null, the default Policy for this LibraryObject for the operation specified by rendererType is obtained. The fully- qualified classname of the Renderer is contained in the IMPLEMENTATION attribute of that Policy.
The values in the options Hashtable must be serializable.
rendererType
- the type of the desired RendererrendererName
- the name of the desired Rendereroptions
- any Renderer-specific optionsIfsException
- (IFS-30110) if the operation failspublic final java.io.Reader renderAsReader(java.lang.String rendererType, java.lang.String rendererName, java.util.Hashtable options) throws IfsException
The rendererType and rendererName together determine which Renderer implementation is to be used as follows:
If rendererName is not null, the Policy named rendererName for the operation specified by rendererType is obtained. The fully-qualified classname of the Renderer is contained in the IMPLEMENTATION attribute of that Policy.
If rendererName is null, the default Policy for this LibraryObject for the operation specified by rendererType is obtained. The fully- qualified classname of the Renderer is contained in the IMPLEMENTATION attribute of that Policy.
The values in the options Hashtable must be serializable.
rendererType
- the type of the desired RendererrendererName
- the name of the desired Rendereroptions
- any Renderer-specific optionsIfsException
- (IFS-30110) if the operation failspublic void update(OperationState opState, S_LibraryObjectDefinition def) throws IfsException
opState
- Operation statedef
- the server-side definition class that holds the attribute changesIfsException
- if operation fails.protected void extendedPreUpdate(OperationState opState, S_LibraryObjectDefinition def) throws IfsException
opState
- Operation statedef
- the server-side definition class that holds the attribute changesIfsException
- if operation fails.protected void extendedPreFree(OperationState opState, S_LibraryObjectDefinition def) throws IfsException
IfsException
- if operation fails.protected void extendedPreInsert(OperationState opState, S_LibraryObjectDefinition sdef) throws IfsException
IfsException
- if operation fails.protected void deriveDefinition(S_LibraryObjectDefinition def) throws IfsException
def
- the S_LibraryObjectDefinition that contains
the definition of the target object.IfsException
- if operation fails.public void free(OperationState opState, S_LibraryObjectDefinition def) throws IfsException
IfsException
- if operation fails.public final boolean isTraced(int channel, int level) throws IfsException
isTraced
in interface Traceable
channel
- the channel numberlevel
- the levelIfsException
- (IFS-11201) if the channel is invalidpublic final void trace(int channel, int level, java.lang.String payload)
trace
in interface Traceable
channel
- the channel numberlevel
- the levelpayload
- a string containing any additional information to
be placed in the trace logpublic final void postEvent(int eventType, int eventStatus) throws IfsException
eventType
- the event type; must be one of the event type
constants enumerated in IfsEventeventStatus
- the event status; must be one of the event status
constants enumerated in IfsEventIfsException
- if the operation failspublic final void postEvent(int eventType, int eventSubtype, int eventStatus, long longPayload) throws IfsException
eventType
- the event type; must be one of the event type
constants enumerated in IfsEventeventSubtype
- the event subtype; the meaningful values are
eventType
varianteventStatus
- the event status; must be one of the event status
constants enumerated in IfsEventlongPayload
- the long payload; the meaningful values are
eventType
variantIfsException
- if the operation failspublic void handleEvent(IfsEvent event) throws IfsException
handleEvent
in interface IfsEventHandler
event
- the eventIfsException
- if the operation fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |