Class HistoryRangeRequest
java.lang.Object
org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIRequest
org.odpi.openmetadata.repositoryservices.rest.properties.HistoryRangeRequest
- All Implemented Interfaces:
Serializable
HistoryRequest carries the date/time for a historical query.
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructorHistoryRangeRequest
(HistoryRangeRequest template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the earliest point of history to retrieve (inclusive).int
Return the starting element number for this set of results.int
Return the maximum number of elements that can be returned on this request.Return the sequencing order for the results.Return the latest point of history up to which to return (exclusive).int
hashCode()
Create a hash code for this element type.void
setFromTime
(Date fromTime) Set up the earliest point of history to retrieve (inclusive).void
setOffset
(int offset) Set up the starting element number for this set of results.void
setPageSize
(int pageSize) Set up the maximum number of elements that can be returned on this request.void
setSequencingOrder
(HistorySequencingOrder sequencingOrder) Set up the sequencing order for the results.void
Set up the latest point of history up to which to return (exclusive).toString()
Standard toString method.
-
Constructor Details
-
HistoryRangeRequest
public HistoryRangeRequest()Default constructor -
HistoryRangeRequest
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getFromTime
Return the earliest point of history to retrieve (inclusive).- Returns:
- date/time
-
setFromTime
Set up the earliest point of history to retrieve (inclusive).- Parameters:
fromTime
- date/time
-
getToTime
Return the latest point of history up to which to return (exclusive).- Returns:
- date/time
-
setToTime
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
Return the sequencing order for the results.- Returns:
- sequencing order enum
-
setSequencingOrder
Set up the sequencing order for the results.- Parameters:
sequencingOrder
- sequencing order enum
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-