Class RowIdImpl
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description static classRowIdImpl.Typetype attributes for RowIds which simplify comparisons
-
Field Summary
Fields Modifier and Type Field Description static intFIRST_PAGE_NUMBERspecial page number which will sort before any other valid page numberstatic RowIdImplFIRST_ROW_IDspecial rowId which will sort before any other valid rowIdstatic intINVALID_ROW_NUMBERspecial row number representing an invalid row numberstatic intLAST_PAGE_NUMBERspecial page number which will sort after any other valid page numberstatic RowIdImplLAST_ROW_IDspecial rowId which will sort after any other valid rowId
-
Constructor Summary
Constructors Constructor Description RowIdImpl(int pageNumber, int rowNumber)Creates a newRowIdinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RowIdImpl other)intcompareTo(RowId other)booleanequals(Object o)intgetPageNumber()intgetRowNumber()RowIdImpl.TypegetType()inthashCode()booleanisValid()Returnstrueif this rowId potentially represents an actual row of data,falseotherwise.StringtoString()
-
-
-
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
-
-
Method Detail
-
getPageNumber
public int getPageNumber()
-
getRowNumber
public int getRowNumber()
-
isValid
public boolean isValid()
Returnstrueif this rowId potentially represents an actual row of data,falseotherwise.
-
getType
public RowIdImpl.Type getType()
-
compareTo
public int compareTo(RowId other)
- Specified by:
compareToin interfaceComparable<RowId>
-
compareTo
public int compareTo(RowIdImpl other)
-
-