com.healthmarketscience.jackcess.impl.complex
Class ComplexColumnInfoImpl.ComplexValueImpl

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.complex.ComplexColumnInfoImpl.ComplexValueImpl
All Implemented Interfaces:
ComplexValue
Enclosing class:
ComplexColumnInfoImpl<V extends ComplexValue>

protected abstract static class ComplexColumnInfoImpl.ComplexValueImpl
extends Object
implements ComplexValue


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.healthmarketscience.jackcess.complex.ComplexValue
ComplexValue.Id
 
Constructor Summary
protected ComplexColumnInfoImpl.ComplexValueImpl(ComplexValue.Id id, ComplexValueForeignKey complexValueFk)
           
 
Method Summary
 boolean equals(Object o)
           
 Column getColumn()
           
 ComplexValueForeignKey getComplexValueForeignKey()
          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).
 ComplexValue.Id getId()
          Returns the unique identifier of this complex value (this value is unique among all values in all rows of the main table).
 int hashCode()
           
 void setComplexValueForeignKey(ComplexValueForeignKey complexValueFk)
           
 void setId(ComplexValue.Id id)
          Called once when a new ComplexValue is saved to set the new unique identifier.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.healthmarketscience.jackcess.complex.ComplexValue
delete, update
 

Constructor Detail

ComplexColumnInfoImpl.ComplexValueImpl

protected ComplexColumnInfoImpl.ComplexValueImpl(ComplexValue.Id id,
                                                 ComplexValueForeignKey complexValueFk)
Method Detail

getId

public ComplexValue.Id 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 ComplexColumnInfoImpl.INVALID_ID for a new, unsaved value.

setId

public void setId(ComplexValue.Id id)
Description copied from interface: ComplexValue
Called once when a new ComplexValue is saved to set the new unique identifier.

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 ComplexColumnInfoImpl.INVALID_FK 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 Object

equals

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


Copyright © 2005-2017 Health Market Science. All Rights Reserved.