|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.eindex.objects.ObjectNode
com.stc.eindex.objects.EnterpriseObject
The EnterpriseObject class represents a compilation of all objects associated with a single entity in the master index database. An enterprise object consists of one single best record (SBR) and one or more system objects.
Field Summary |
Fields inherited from class com.stc.eindex.objects.ObjectNode |
indexMap, mChildrenHashMap, mChildTags, mFields, mParent, mParentTag, mPartOfIndex, mPosition, mTag, mVersion |
Constructor Summary | |
EnterpriseObject()
Creates a new instance of the EnterpriseObject class. |
|
EnterpriseObject(java.lang.String euid,
SBR sbr,
java.util.Collection sysobjs)
Creates a new instance of the EnterpriseObject class based on the given EUID, SBR, and system objects. |
|
EnterpriseObject(java.lang.String euid,
SBR sbr,
java.util.Collection sysobjs,
boolean flag)
Creates a new instance of the EnterpriseObject class. |
Method Summary | |
void |
addSystemObject(SystemObject obj)
Adds a system object to an instance of EnterpriseObject. |
void |
addSystemObjects(java.util.Collection systemobjs)
Adds multiple system objects to an instance of EnterpriseObject. |
void |
deleteSystemObject(java.lang.String system,
java.lang.String lid)
Marks a system object for deletion from an instance of EnterpriseObject. |
java.lang.String |
getEUID()
Retrieves the EUID from an instance of EnterpriseObject. |
java.util.ArrayList |
getFieldNames()
Retrieves a list of field names in an enterprise object. |
java.util.ArrayList |
getFieldTypes()
Retrieves a list of field types in an enterprise object. |
SBR |
getSBR()
Retrieves the SBR object from an instance of EnterpriseObject. |
java.lang.String |
getStatus()
Retrieves the status value from an instance of EnterpriseObject. |
SystemObject |
getSystemObject(java.lang.String system,
java.lang.String lid)
Retrieves the system object associated with the specified system code and local ID in an instance of EnterpriseObject. |
java.util.Collection |
getSystemObjects()
Retrieves all system objects from an instance of EnterpriseObject. |
boolean |
isAtleastOneSOActive()
Indicates whether at least one system object in the enterprise object\ is still active. |
void |
removeSystemObject(java.lang.String system,
java.lang.String lid)
Removes a system object from an instance of EnterpriseObject. |
void |
setEUID(java.lang.String euid)
Sets the value of the EUID field in an instance of EnterpriseObject. |
void |
setSBR(SBR sbr)
Sets an SBR object in an instance of EnterpriseObject. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EnterpriseObject() throws ObjectException
ObjectException
- Thrown if an error occurs while creating
the enterprise object.public EnterpriseObject(java.lang.String euid, SBR sbr, java.util.Collection sysobjs) throws ObjectException
euid
- The EUID of the enterprise object.sbr
- The SBR object associated with the enterprise
object.sysobjs
- A collection of system objects that are
associated with the enterprise object.
ObjectException
- Thrown if an error occurs while creating
the enterprise object.public EnterpriseObject(java.lang.String euid, SBR sbr, java.util.Collection sysobjs, boolean flag) throws ObjectException
euid
- The EUID of the enterprise object.sbr
- The SBR object associated with the enterprise
object.sysobjs
- A collection of system objects that are
associated with the enterprise object.flag
- This parameter is only used internally.
ObjectException
- Thrown if an error occurs while creating
the enterprise object.Method Detail |
public void addSystemObject(SystemObject obj) throws ObjectException
obj
- The system object to add the enterprise object.
void
- None.
ObjectException
- Thrown if an error occurs while adding
the system object.public void addSystemObjects(java.util.Collection systemobjs) throws ObjectException
systemobjs
- A collection of system objects to add to the
enterprise object.
void
- None.
ObjectException
- Thrown if an error occurs while adding
the system objects.public void deleteSystemObject(java.lang.String system, java.lang.String lid) throws ObjectException
system
- The processing code of the system associated with
the system object to mark for deletion.lid
- The local ID associated with the specified system.
void
- None.
ObjectException
- Thrown if an error occurs while
marking the system object for deletion.public java.lang.String getEUID() throws ObjectException
String
- The value of the EUID
field.
ObjectException
- Thrown if an error occurs while retrieving
the field value.public java.util.ArrayList getFieldNames()
ArrayList
- A list of field names.
public java.util.ArrayList getFieldTypes()
getFieldTypes
in class ObjectNode
ArrayList
- A list of field types.
public SBR getSBR()
SBR
- The SBR associated with the enterprise
object.
public java.lang.String getStatus() throws ObjectException
String
- The value of the status
field.
ObjectException
- Thrown if an error occurs while retrieving
the field value.public SystemObject getSystemObject(java.lang.String system, java.lang.String lid) throws ObjectException
system
- The processing code of the system to retrieve.lid
- The local ID associated with the specified system.
SystemObject
- The system object associated with
the specified system and local ID. Returns null if there is no
matching system and local ID in any system objects of the enterprise
object.
ObjectException
- Thrown if an error occurs while retrieving
the object.public java.util.Collection getSystemObjects()
Collection
- A collection of system objects.
public boolean isAtleastOneSOActive() throws ObjectException
Boolean
- A Boolean indicator of whether the enterprise
object contains at least one active system object. True indicates
there is at least one active system object; false indicates there are
no active system objects.
ObjectException
public void removeSystemObject(java.lang.String system, java.lang.String lid) throws ObjectException
system
- The processing code of the system associated with
the system object to remove.lid
- The local ID associated with the specified system.
void
- None.
ObjectException
- Thrown if an error occurs while
removing the system object.public void setEUID(java.lang.String euid) throws ObjectException
euid
- The EUID of the enterprise object.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the field value.public void setSBR(SBR sbr) throws ObjectException
sbr
- The SBR object of the enterprise object.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the SBR object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2007 by Sun Microsystems, Inc. All Rights Reserved.