Interface ComplexValue
-
- All Known Subinterfaces:
Attachment,SingleValue,UnsupportedValue,Version
public interface ComplexValueBase interface for a value in a complex column (where there may be multiple values for a single row in the main table).- Author:
- James Ahlborn
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classComplexValue.IdIdentifier for a ComplexValue.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete()Deletes the data for this complex value from the database.ColumngetColumn()ComplexValueForeignKeygetComplexValueForeignKey()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.IdgetId()Returns the unique identifier of this complex value (this value is unique among all values in all rows of the main table).voidsetComplexValueForeignKey(ComplexValueForeignKey complexValueFk)voidsetId(ComplexValue.Id newId)Called once when a new ComplexValue is saved to set the new unique identifier.voidupdate()Writes any updated data for this complex value to the database.
-
-
-
Method Detail
-
getId
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).- Returns:
- the current id or
ComplexColumnInfoImpl.INVALID_IDfor a new, unsaved value.
-
setId
void setId(ComplexValue.Id newId)
Called once when a new ComplexValue is saved to set the new unique identifier.
-
getComplexValueForeignKey
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).- Returns:
- the current id or
ComplexColumnInfoImpl.INVALID_FKfor a new, unsaved value.
-
setComplexValueForeignKey
void setComplexValueForeignKey(ComplexValueForeignKey complexValueFk)
-
getColumn
Column getColumn()
- Returns:
- the column in the main table with which this complex value is associated
-
update
void update() throws IOExceptionWrites any updated data for this complex value to the database.- Throws:
IOException
-
delete
void delete() throws IOExceptionDeletes the data for this complex value from the database.- Throws:
IOException
-
-