com.healthmarketscience.jackcess.impl
Class RowIdImpl

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.RowIdImpl
All Implemented Interfaces:
RowId, Serializable, Comparable<RowId>

public class RowIdImpl
extends Object
implements RowId, Serializable

Uniquely identifies a row of data within the access database.

Author:
James Ahlborn
See Also:
Serialized Form

Nested Class Summary
static class RowIdImpl.Type
          type attributes for RowIds which simplify comparisons
 
Field Summary
static int FIRST_PAGE_NUMBER
          special page number which will sort before any other valid page number
static RowIdImpl FIRST_ROW_ID
          special rowId which will sort before any other valid rowId
static int INVALID_ROW_NUMBER
          special row number representing an invalid row number
static int LAST_PAGE_NUMBER
          special page number which will sort after any other valid page number
static RowIdImpl LAST_ROW_ID
          special rowId which will sort after any other valid rowId
 
Constructor Summary
RowIdImpl(int pageNumber, int rowNumber)
          Creates a new RowId instance.
 
Method Summary
 int compareTo(RowId other)
           
 int compareTo(RowIdImpl other)
           
 boolean equals(Object o)
           
 int getPageNumber()
           
 int getRowNumber()
           
 RowIdImpl.Type getType()
           
 int hashCode()
           
 boolean isValid()
          Returns true if this rowId potentially represents an actual row of data, false otherwise.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FIRST_PAGE_NUMBER

public static final int FIRST_PAGE_NUMBER
special page number which will sort before any other valid page number

See Also:
Constant Field Values

LAST_PAGE_NUMBER

public static final int LAST_PAGE_NUMBER
special page number which will sort after any other valid page number

See Also:
Constant Field Values

INVALID_ROW_NUMBER

public static final int INVALID_ROW_NUMBER
special row number representing an invalid row number

See Also:
Constant Field Values

FIRST_ROW_ID

public static final RowIdImpl FIRST_ROW_ID
special rowId which will sort before any other valid rowId


LAST_ROW_ID

public static final RowIdImpl LAST_ROW_ID
special rowId which will sort after any other valid rowId

Constructor Detail

RowIdImpl

public RowIdImpl(int pageNumber,
                 int rowNumber)
Creates a new RowId instance.

Method Detail

getPageNumber

public int getPageNumber()

getRowNumber

public int getRowNumber()

isValid

public boolean isValid()
Returns true if this rowId potentially represents an actual row of data, false otherwise.


getType

public RowIdImpl.Type getType()

compareTo

public int compareTo(RowId other)
Specified by:
compareTo in interface Comparable<RowId>

compareTo

public int compareTo(RowIdImpl other)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005–2017 Health Market Science. All rights reserved.