Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-02


oracle.irm.engine.core.general
Interface PageRange


public interface PageRange

A page range. A page range specifies a range of records starting from the First record index and ending at the Last record index time.

Creation

Instances of Page Range objects can be created using the following factory style method(s).

PageRange object = createPageRange(
    first,
    last);

XML Serialization

Page Range instances can be serialized as an XML document. This XML document can also be used to recreate a Page Range object. The following XML document shows an example Page Range in XML form.

<?xml version="1.0" encoding="UTF-8"?>
<core:PageRange xmlns:core="http://xmlns.oracle.com/irm/core">
    <first>20</first>
    <last>40</last>
</core:PageRange>


Method Summary
 int getFirst()
          First record index.
 int getLast()
          Last record index.

 

Method Detail

getFirst

int getFirst()
First record index. Indexes start at one.
Returns:
the value of the property.

getLast

int getLast()
Last record index. Must be greater than the first record index.
Returns:
the value of the property.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-02


Copyright © 2010, Oracle. All rights reserved.