|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.audit.AuditPeriod
AuditPeriod represents the time interval for which auditing information is desired. This interval can be constructed with a start and an end date. However, it is possible to have intervals that have no start date, no end date or both.
An AuditPeriod object is composed of many "actvity periods" which
are the smallest interval about which there is an interest about getting
auditing information. For example, an activity period could be a day
and an audit period a month or a week (7 days). The activity period
is defined for the installation in the wt.properties file.
Supported API: false
Extendable: false
Field Summary | |
private static long |
ACTIVITY_PERIOD_SIZE
|
private static String |
CLASSNAME
|
private long |
end
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private long |
start
|
private static boolean |
VERBOSE
|
Constructor Summary | |
AuditPeriod()
Null arg constructor. |
|
AuditPeriod(Timestamp start_date,
Timestamp end_date)
Constructor that takes a start and an end date. |
Method Summary | |
boolean |
equals(Object object)
Determines if the audit period is equal to the object passed as argument. |
Timestamp |
getEndDate()
Retrieves the period's enddate. |
Timestamp |
getStartDate()
Retrieves the period's start date. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(AuditPeriod thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setEndDate(Timestamp end_date)
Sets or changes the end date of an audit period. |
void |
setStartDate(Timestamp start_date)
Sets or changes the start date of an audit period. |
String |
toString()
Returns string representation of the audit period. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private long start
private long end
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final long ACTIVITY_PERIOD_SIZE
private static final boolean VERBOSE
Constructor Detail |
public AuditPeriod()
public AuditPeriod(Timestamp start_date, Timestamp end_date) throws WTException
start_date
- end_date
-
WTException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(AuditPeriod thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void setStartDate(Timestamp start_date) throws WTException
Passing null as argument resets the start date, making the period
open ended at this side.
Supported API: false
start_date
-
WTException
public void setEndDate(Timestamp end_date) throws WTException
Passing null as argument resets the end date, making the period
open ended at this side.
Supported API: false
end_date
-
WTException
public Timestamp getStartDate()
This method returns null is the period is open ended at this side.
Supported API: false
public Timestamp getEndDate()
This method returns null is the period is open ended at this side.
Supported API: false
public String toString()
public boolean equals(Object object)
object
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |