|
7.0 Action Request System Java API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.remedy.arsys.api.Entry
The Entry class is used to set and retrieve information
about entries in a schema.
An entry is a record in a schema.
This class includes different operations you can
perform on an entry, for example, merge
or join (store).
| Field Summary | |
static int |
AR_JOIN_SETOPTION_NONE
Allows users to update fields used in the join criteria. |
static int |
AR_JOIN_SETOPTION_REF
Does not allow users to update fields used in the join criteria. |
static int |
AR_MERGE_ENTRY_DUP_ERROR
Generates an error if the Entry ID field and the ID specified already exists in the target form. |
static int |
AR_MERGE_ENTRY_DUP_MERGE
Updates the fields specified in the existing entry if the Entry ID field and the ID specified already exists in the target form. |
static int |
AR_MERGE_ENTRY_DUP_NEW_ID
Creates a new entry with a new ID if the Entry ID field and the ID specified already exists in the target form. |
static int |
AR_MERGE_ENTRY_DUP_OVERWRITE
Deletes the existing entry and create a new one in its place if the Entry ID field and the ID specified already exists in the target form. |
static int |
AR_MERGE_NO_PATTERNS_INCREMENT
Skips field pattern checking (including $MENU$) in the merge. |
static int |
AR_MERGE_NO_REQUIRED_INCREMENT
Allows NULL in required fields in the merge (not applicable for the Submitter, Status, or Short-Description core fields). |
| Method Summary | |
void |
activate()
AR System reserved method. |
void |
clear()
Clears all of the references to member objects. |
java.lang.Object |
clone()
Returns an object with data cloned from self. |
void |
create()
Creates a new entry in the indicated schema on the specified server. |
void |
describe()
Prints out EntryID |
ARServerUser |
getContext()
|
EntryID |
getEntryID()
Returns EntryID |
EntryItem[] |
getEntryItems()
Returns the internal field-value information of this entry as EntryItem collection |
EntryKey |
getKey()
Returns the EntryKey which identifies the schema, entry, and entry ID. |
NameID |
getSchemaID()
Returns name of the associated schema NameID |
boolean |
isPresent()
Denotes if the entry is valid. |
void |
load()
Loads the entry object from AR System as specified by the entryKey data member. |
void |
merge(SchemaKey schemakey,
int nMergeType)
Merges an existing entry into the indicated form on the specified server. |
void |
passivate()
AR System reserved method. |
void |
remove()
Removes the schema entry with the indicated ID from the specified server. |
void |
setContext(ARServerUser ctxt)
Associates ARServerUser information with this
AR System server object. |
void |
setEntryID(EntryID entryID)
Sets EntryID part of EntryKey data member |
void |
setEntryItems(EntryItem[] entryItems)
Sets the field-value information as specified by EntryItem collection |
void |
setKey(EntryKey ek)
Sets the EntryKey. |
void |
setSchemaID(NameID schemaID)
Sets schema name as part of EntryKey data member |
void |
store()
Updates an existing entry as specified by the entryKey data member |
void |
store(Timestamp getTime,
int nOption)
Updates an existing entry as specified by the entryKey data member |
void |
unsetContext()
Removes the association to a specific user context. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int AR_MERGE_ENTRY_DUP_ERROR
Constants.AR_MERGE_ENTRY_DUP_ERROR
public static final int AR_MERGE_ENTRY_DUP_NEW_ID
Constants.AR_MERGE_ENTRY_DUP_NEW_ID
public static final int AR_MERGE_ENTRY_DUP_OVERWRITE
Constants.AR_MERGE_ENTRY_DUP_OVERWRITE
public static final int AR_MERGE_ENTRY_DUP_MERGE
Constants.AR_MERGE_ENTRY_DUP_MERGE
public static final int AR_MERGE_NO_REQUIRED_INCREMENT
Constants.AR_MERGE_NO_REQUIRED_INCREMENT
public static final int AR_MERGE_NO_PATTERNS_INCREMENT
$MENU$) in the merge.
Constants.AR_MERGE_NO_PATTERNS_INCREMENT
public static final int AR_JOIN_SETOPTION_NONE
Constants.AR_JOIN_SETOPTION_NONE
public static final int AR_JOIN_SETOPTION_REF
Constants.AR_JOIN_SETOPTION_REF
| Method Detail |
public void setKey(EntryKey ek)
EntryKey.
public EntryKey getKey()
EntryKey which identifies the schema, entry, and entry ID.
public boolean isPresent()
EntryFactory.find object
returns an EntryList,
so that each entry in an entry list is either a valid entry or not.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void create()
throws ARException
create in interface IARPersistentObjectjava.lang.NullPointerException - if invalid ARServerUser object
ARException - if entry is not created
public void remove()
throws ARException
remove in interface IARPersistentObjectjava.lang.NullPointerException - if invalid ARServerUser object
ARException - if entry is not removed
public void load()
throws ARException
load in interface IARPersistentObjectjava.lang.NullPointerException - if invalid ARServerUser object
ARException - if entry is not loaded
public void store()
throws ARException
store in interface IARPersistentObjectARException - if object is not deleted
public void store(Timestamp getTime,
int nOption)
throws ARException
getTime - Time stamp identifying when the entry was last retrieved.
The system compares
this value with the value in the Modified Date core field
to determine whether the
entry has been changed since the last retrieval.
The system updates the entry if the
value you specify is greater than Modified Date.
If not, the system returns an error. You can either retrieve the entry
again and determine whether to apply your changes or specify 0 for this
parameter to bypass the time stamp comparison.nOption - Value indicating whether users can
update fields specified in the join
qualification (applicable for join forms only).
AR_JOIN_SETOPTION_NONE = 0
AR_JOIN_SETOPTION_REF = 1
java.lang.NullPointerException - if invalid ARServerUser object
ARException - if entry is not updated
public void merge(SchemaKey schemakey,
int nMergeType)
throws ARException
ARServerUser
object and the createMode setting for each field. User permissions are verified for each
specified field. The system generates an error if the user does not have write permission for
a field or a field does not exist.
nMergeType - A value indicating the action to take if
the Entry ID already exists in the target form. This parameter is
ignored if you do not specify the Entry ID or the ID specified does not conflict with
existing entry IDs.
AR_MERGE_ENTRY_DUP_ERROR) = 1
AR_MERGE_ENTRY_DUP_NEW_ID) = 2
AR_MERGE_ENTRY_DUP_OVERWRITE) = 3
AR_MERGE_ENTRY_DUP_MERGE) = 4
To omit some field validation steps, add the appropriate increments to the merge type.
AR_MERGE_NO_REQUIRED_INCREMENT) = 1024
$MENU$)
(AR_MERGE_NO_PATTERNS_INCREMENT) = 2048
java.lang.NullPointerException - if invalid ARServerUser object
ARException - if entry is not mergedpublic void setEntryItems(EntryItem[] entryItems)
EntryItem collection
public EntryItem[] getEntryItems()
EntryItem collection
public void setSchemaID(NameID schemaID)
EntryKey data member
public NameID getSchemaID()
NameID
public EntryID getEntryID()
EntryID
public void setEntryID(EntryID entryID)
EntryID part of EntryKey data member
public void describe()
EntryID
public void activate()
IARPersistentObject
activate in interface IARPersistentObjectpublic void passivate()
IARPersistentObject
passivate in interface IARPersistentObjectpublic ARServerUser getContext()
public void setContext(ARServerUser ctxt)
IARPersistentObjectARServerUser information with this
AR System server object.
setContext in interface IARPersistentObjectpublic void unsetContext()
IARPersistentObjectsetContext(null).
unsetContext in interface IARPersistentObjectpublic void clear()
IARPersistentObject
clear in interface IARPersistentObject
|
7.0 Action Request System Java API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||