public class PrivatePerformedActivityRecord extends Object
Constructor and Description |
---|
PrivatePerformedActivityRecord(Actor trckActor,
ActivityRecord ar,
ActionAdapter action)
Construct a PrivatePerformedActivityRecord from an executing Action,
in preparation for an initial insert.
|
PrivatePerformedActivityRecord(Actor trckActor,
ActivityRecord ar,
ActionAdapter action,
String comment)
Construct a PrivatePerformedActivityRecord from an executing Action,
in preparation for an initial insert.
|
PrivatePerformedActivityRecord(Actor trckActor,
ActivityRecord ar,
ActionAdapter action,
String comment,
int reasonType)
Construct a PrivatePerformedActivityRecord from an executing Action,
in preparation for an initial insert.
|
PrivatePerformedActivityRecord(Actor perfActor,
ActivityRecord ar,
Actor trckActor)
Construct a PrivatePerformedActivityRecord,
in preparation for an initial insert - without a triggering Action.
|
PrivatePerformedActivityRecord(Actor perfActor,
ActivityRecord ar,
Actor trckActor,
Date recDate,
int opType,
String comment,
int reasonType)
Construct a PrivatePerformedActivityRecord,
in preparation for an initial insert - without a triggering Action.
|
PrivatePerformedActivityRecord(Actor perfActor,
ActivityRecord ar,
Actor trckActor,
ResultSet rset)
Construct a PrivatePerformedActivityRecord that has been selected.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes the PrivatePerformedActivityRecord represented in this instance.
|
ActivityRecord |
getActivityRecord()
Gets the target ActivityRecord.
|
long |
getEventId()
Gets the ID of the AuditEvent record corresponding to the Action
that was performed, which triggered this
PrivatePerformedActivityRecord, if any.
|
ActionAdapter |
getExecutedAction()
Gets the previously-executed Action reflecting the AuditEvent
corresponding to this PrivatePerformedActivityRecord, if any.
|
int |
getOperationType()
Gets the operation type of the AuditEvent record corresponding to this
PrivatePerformedActivityRecord, if any.
|
PerformedActivityRecord |
getPerformedActivityRecord()
Gets the PerformedActivityRecord for which this PrivatePerformedActivityRecord
is associated.
|
Actor |
getPerformingActor()
Gets the performing Actor.
|
int |
getReasonType()
Gets the reason type for this record, if any.
|
String |
getRecordComment()
Gets the comment String that helps to describe this record.
|
Date |
getRecordDate()
Gets the Date this PrivatePerformedActivityRecord was posted.
|
LibrarySession |
getSession()
Returns the session being used by this Selector.
|
Actor |
getTrackingActor()
Gets the Actor tracking this private Activity.
|
void |
insert()
Inserts the PrivatePerformedActivityRecord defined in this instance.
|
boolean |
isActivityRecordFreed()
Returns indication as to whether or not the
target ActivityRecord has been freed.
|
boolean |
isActivityRecordUndiscoverable()
Returns indication as to whether or not the target
ActivityRecord is undiscoverable by the session selecting the record.
|
boolean |
isTrackingActorFreed()
Returns indication as to whether or not the tracking Actor
has been freed.
|
boolean |
isTrackingActorUndiscoverable()
Returns indication as to whether or not the tracking Actor is
undiscoverable by the session selecting the record.
|
PrivatePerformedActivityRecord |
lock()
Establishes a row-level lock on the target PrivatePerformedActivityRecord,
in preparation to update or delete it.
|
void |
update(String comment,
Integer reasonType)
Updates the PrivatePerformedActivityRecord represented in this instance.
|
public PrivatePerformedActivityRecord(Actor trckActor, ActivityRecord ar, ActionAdapter action) throws IfsException
No comment will be specified for this record.
trckActor
- the tracking Actorar
- the ActivityRecord on which activity was performedaction
- the Action being executedIfsException
- if operation fails.public PrivatePerformedActivityRecord(Actor trckActor, ActivityRecord ar, ActionAdapter action, String comment) throws IfsException
trckActor
- the tracking Actorar
- the ActivityRecord on which activity was performedaction
- the Action being executedcomment
- a comment that helps to describe this private actionIfsException
- if operation fails.public PrivatePerformedActivityRecord(Actor trckActor, ActivityRecord ar, ActionAdapter action, String comment, int reasonType) throws IfsException
trckActor
- the tracking Actorar
- the ActivityRecord on which activity was performedaction
- the Action being executedcomment
- a comment that helps to describe this private actionreasonType
- the reason type describing why this record existsIfsException
- if operation fails.public PrivatePerformedActivityRecord(Actor perfActor, ActivityRecord ar, Actor trckActor) throws IfsException
perfActor
- the performing Actorar
- the ActivityRecord on which activity was performedtrckActor
- the tracking ActorIfsException
- if operation fails.public PrivatePerformedActivityRecord(Actor perfActor, ActivityRecord ar, Actor trckActor, Date recDate, int opType, String comment, int reasonType) throws IfsException
In this variant, the specified opType does not reflect a triggering Action - it can be used as freeform field understood by the application. The only restriction is that the opType specified must be in the range 1 - 999999.
perfActor
- the performing Actorar
- the ActivityRecord on which activity was performedtrckActor
- the tracking ActorrecDate
- the date the record was postedopType
- the operation type of the event associated
with the action postedcomment
- a comment that helps to describe this private actionreasonType
- the reason type describing why this record existsIfsException
- if operation fails.public PrivatePerformedActivityRecord(Actor perfActor, ActivityRecord ar, Actor trckActor, ResultSet rset) throws SQLException, IfsException
perfActor
- the performing Actorar
- the ActivityRecord;
if null, get the value from the ResultSettrckActor
- the tracking Actor;
if null, get the value from the ResultSetrset
- the resultSet selected from
within PrivatePerformedActivitySelectorIfsException
- if operation fails.SQLException
- if operation fails.public LibrarySession getSession()
public Actor getPerformingActor()
public ActivityRecord getActivityRecord()
Will be null if the target ActivityRecord was freed or is undiscoverable by the session selecting the record.
public boolean isActivityRecordFreed()
public boolean isActivityRecordUndiscoverable()
public Actor getTrackingActor()
Will be null if the tracking Actor was freed or is undiscoverable by the session selecting the previously executed Action.
public boolean isTrackingActorFreed()
public boolean isTrackingActorUndiscoverable()
public Date getRecordDate()
Can have the actual value of the corresponding Action that was performed, which triggered this PrivatePerformedActivityRecord, if there is such an Action.
public long getEventId()
Has the value of 0L if there is no corresponding AuditEvent.
public int getOperationType()
Applications can use codes that do not correspond to AuditEvent operations codes, as long as the values are in the range 0 - 999999. Typically a value of 0 indicates that an operation type has no meaning in the context of this PrivatePerformedActivityRecord.
public String getRecordComment()
Applications can supply any String value as long as it can be stored in a VARCHAR2(4000) column.
public int getReasonType()
Applications can define enumerated values to describe applicable reason types. A value of 0 implies no special reason, and can be used for generic PPARs (and is the value assigned for PPARs created using older releases).
public ActionAdapter getExecutedAction() throws IfsException
This will return null if there is no corresponding AuditEvent.
IfsException
- if operation fails.public PerformedActivityRecord getPerformedActivityRecord() throws IfsException
IfsException
- if operation fails.public void insert() throws IfsException
IfsException
- if operation fails.public PrivatePerformedActivityRecord lock() throws IfsException
IfsException
- if operation fails.public void update(String comment, Integer reasonType) throws IfsException
This must represent a PrivatePerformedActivityRecord that was selected
from the repository, as indicated by its ID being set to a non-zero value.
It is strongly recommended that lock
be called prior
to attempting to update the record, to avoid race conditions with other
concurrent update attempts.
Only the values specified as non-null will be updated.
comment
- the new comment value (null if no update is desired)reasonType
- the new reason type (null if no update is desired)IfsException
- if operation fails.public void delete() throws IfsException
This must represent a PrivatePerformedActivityRecord that was selected
from the repository, as indicated by its ID being set to a non-zero
value.
It is recommended that lock
be called prior
to attempting to delete the record, to avoid race conditions with
concurrent update attempts.
IfsException
- if operation fails.Copyright © 2023. All rights reserved.