Class HistoryRangeRequest
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIRequest
-
- org.odpi.openmetadata.repositoryservices.rest.properties.HistoryRangeRequest
-
- All Implemented Interfaces:
Serializable
public class HistoryRangeRequest extends OMRSAPIRequest
HistoryRequest carries the date/time for a historical query.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HistoryRangeRequest()Default constructorHistoryRangeRequest(HistoryRangeRequest template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.DategetFromTime()Return the earliest point of history to retrieve (inclusive).intgetOffset()Return the starting element number for this set of results.intgetPageSize()Return the maximum number of elements that can be returned on this request.HistorySequencingOrdergetSequencingOrder()Return the sequencing order for the results.DategetToTime()Return the latest point of history up to which to return (exclusive).inthashCode()Create a hash code for this element type.voidsetFromTime(Date fromTime)Set up the earliest point of history to retrieve (inclusive).voidsetOffset(int offset)Set up the starting element number for this set of results.voidsetPageSize(int pageSize)Set up the maximum number of elements that can be returned on this request.voidsetSequencingOrder(HistorySequencingOrder sequencingOrder)Set up the sequencing order for the results.voidsetToTime(Date toTime)Set up the latest point of history up to which to return (exclusive).StringtoString()Standard toString method.
-
-
-
Constructor Detail
-
HistoryRangeRequest
public HistoryRangeRequest()
Default constructor
-
HistoryRangeRequest
public HistoryRangeRequest(HistoryRangeRequest template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getFromTime
public Date getFromTime()
Return the earliest point of history to retrieve (inclusive).- Returns:
- date/time
-
setFromTime
public void setFromTime(Date fromTime)
Set up the earliest point of history to retrieve (inclusive).- Parameters:
fromTime- date/time
-
getToTime
public Date getToTime()
Return the latest point of history up to which to return (exclusive).- Returns:
- date/time
-
setToTime
public void setToTime(Date toTime)
Set up the latest point of history up to which to return (exclusive).- Parameters:
toTime- date/time
-
getOffset
public int getOffset()
Return the starting element number for this set of results. This is used when retrieving elements beyond the first page of results. Zero means the results start from the first element.- Returns:
- offset number
-
setOffset
public void setOffset(int offset)
Set up the starting element number for this set of results. This is used when retrieving elements beyond the first page of results. Zero means the results start from the first element.- Parameters:
offset- offset number
-
getPageSize
public int getPageSize()
Return the maximum number of elements that can be returned on this request.- Returns:
- page size
-
setPageSize
public void setPageSize(int pageSize)
Set up the maximum number of elements that can be returned on this request.- Parameters:
pageSize- integer number
-
getSequencingOrder
public HistorySequencingOrder getSequencingOrder()
Return the sequencing order for the results.- Returns:
- sequencing order enum
-
setSequencingOrder
public void setSequencingOrder(HistorySequencingOrder sequencingOrder)
Set up the sequencing order for the results.- Parameters:
sequencingOrder- sequencing order enum
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
-
-