A Java class is created to represent the entire object, which includes the single best record (SBR) and any associated system objects. The methods in this class provide the ability to retrieve, set, and delete system objects, and to retrieve and set attributes of the enterprise object.
The name of the enterprise object class is the same as the name of the application, with the word “Enterprise” prepended. For example, if the application name is “Person”, the name of the enterprise object class is “EnterprisePerson”. The methods in this class include a constructor method for the enterprise object, get and set methods for object attributes, and get, set, and delete methods for the system objects. Many methods have dynamic names based on the name of the parent object. In the following methods described for the enterprise object, ObjectName indicates the name of the parent object.
class ObjectNameObject |
This is the constructor method for the enterprise object class. You can instantiate this class to create a new instance of the enterprise object.
new EnterpriseObjectName()
None.
An instance of the enterprise object.
None.
This method counts the system objects (class SystemObjectName) in the enterprise object. Use this method to loop through the system objects.
int countSystemObjectName()
None.
An integer representing the number of system objects.
None.
This method marks a system object for deletion from an instance of EnterpriseObjectName. The system object is deleted when the enterprise object is updated.
void deleteSystemObject(String system, String lid) |
Name |
Type |
Description |
---|---|---|
system |
String |
The processing code of the system associated with the system record to delete. |
lid |
String |
The local ID of the system record in the specified system. |
None.
ObjectException
This method marks a system object for deletion from an instance of EnterpriseObjectName. The system object is deleted when the enterprise object is updated.
void deleteSystemObjectBean(String system, String lid) |
Name |
Type |
Description |
---|---|---|
system |
String |
The processing code of the system associated with the system record to delete. |
lid |
String |
The local ID of the system record in the specified system. |
None.
ObjectException
This method retrieves the EUID from an instance of EnterpriseObjectName.
String getEUID() |
None.
A string containing the EUID of the enterprise object.
ObjectException
This method retrieves the SBR from an instance of EnterpriseObjectName.
SBRObjectName getSBRObjectName() |
None.
The SBR object from the enterprise object.
None.
This method retrieves the status of the enterprise object.
String getStatus() |
None.
The status of the enterprise object.
ObjectException
This method retrieves all of the system objects associated with the enterprise object.
SystemObjectName[] getSystemObjectName() |
None.
A collection of system objects.
None.
This method retrieves a system object based on its index in a list of system objects.
SystemObjectName getSystemObjectName(int index) |
Name |
Type |
Description |
---|---|---|
index |
int |
The index of the system object to retrieve from a list of system objects. |
The system object at the specified index.
None.
This method returns the number of system objects in a collection of system objects.
int getSystemObjectNameCount() |
None.
An integer indicating the number of system objects in an enterprise object.
None.
This method removes a system object from an enterprise object. Use this to remove the system object from the in-memory instance of EnterpriseObjectName. This does NOT result in the deletion of the system object from the database (see deleteSystemObject).
void removeSystemObject(String system, String lid) |
Name |
Type |
Description |
---|---|---|
system |
String |
The processing code of the system associated with the system object to remove. |
lid |
String |
The local ID of the system record in the specified system. |
None.
ObjectException
This method removes a system object from an enterprise object. Use this to remove the system object from the in-memory instance of EnterpriseObjectName. This does NOT result in the deletion of the system object from the database (see deleteSystemObjectBean).
void removeSystemObjectBean(String system, String lid) |
Name |
Type |
Description |
---|---|---|
system |
String |
The processing code of the system associated with the system object to remove. |
lid |
String |
The local ID of the system record in the specified system. |
None.
ObjectException
This method sets the value of the EUID field in an enterprise object.
void setEUID(String euid) |
Name |
Type |
Description |
---|---|---|
euid |
String |
The EUID of the enterprise object. |
None.
ObjectException
This method sets the status of the enterprise object.
void setStatus(String status) |
Name |
Type |
Description |
---|---|---|
status |
String |
The status of the enterprise object. |
None.
ObjectException.
This method sets a collection of system objects in an enterprise object.
void setSystemObjetName(SystemObjectName[] systemObjectName) |
Name |
Type |
Description |
---|---|---|
systemObjectName |
SystemObjectName |
A collection of system objects for the enterprise object. |
None.
ObjectException.