com.healthmarketscience.jackcess.complex
Class ComplexColumnInfo.ComplexValueImpl
java.lang.Object
com.healthmarketscience.jackcess.complex.ComplexColumnInfo.ComplexValueImpl
- All Implemented Interfaces:
- ComplexValue
- Enclosing class:
- ComplexColumnInfo<V extends ComplexValue>
protected abstract static class ComplexColumnInfo.ComplexValueImpl
- extends java.lang.Object
- implements ComplexValue
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ComplexColumnInfo.ComplexValueImpl
protected ComplexColumnInfo.ComplexValueImpl(int id,
ComplexValueForeignKey complexValueFk)
getId
public int getId()
- Description copied from interface:
ComplexValue
- Returns the unique identifier of this complex value (this value is unique among all values in
all rows of the main table).
- Specified by:
getId
in interface ComplexValue
- Returns:
- the current id or
ComplexColumnInfo.INVALID_ID
for a new, unsaved value.
setId
public void setId(int id)
- Specified by:
setId
in interface ComplexValue
getComplexValueForeignKey
public ComplexValueForeignKey getComplexValueForeignKey()
- Description copied from interface:
ComplexValue
- Returns the foreign key identifier for this complex value (this value is the same for all
values in the same row of the main table).
- Specified by:
getComplexValueForeignKey
in interface ComplexValue
- Returns:
- the current id or
ComplexColumnInfo.INVALID_COMPLEX_VALUE_ID
for a new,
unsaved value.
setComplexValueForeignKey
public void setComplexValueForeignKey(ComplexValueForeignKey complexValueFk)
- Specified by:
setComplexValueForeignKey
in interface ComplexValue
getColumn
public Column getColumn()
- Specified by:
getColumn
in interface ComplexValue
- Returns:
- the column in the main table with which this complex value is associated
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object