public interface DBDataInterface
Modifier and Type | Method and Description |
---|---|
void |
addDependanceListener(DependanceListener dl)
Add a dependence listener
|
int |
getBaseLayerId()
The base layer for this record.
|
GlobalKey |
getGlobalKey(Hint hint)
The globalKey for this DBData.
|
GlobalKey |
getGlobalKey(VirtualDB layer,
DBField field,
Hint hint)
Retrieve the global key for this field.
|
LayerData |
getLayerData(VirtualDB layer,
Hint hint)
Return the layer data for this record
|
long |
getLinkedRowId(VirtualDB layer,
DBField field,
Hint hint) |
java.lang.Object |
getRawValue(VirtualDB layer,
DBField field,
Hint hint)
Retrieves the raw data for the specified field
the supplied virtual db indicates how the object views the data for this field
We will scroll down the virtual db tree until we find a value for the field.
|
DBClass |
getRealDBClass(VirtualDB layer,
Hint hint)
Return the REAL DBClass if known.
|
GlobalKeyId |
getRootDBClassId()
Return the best guess at what the REAL DBClass is.
|
long |
getRowId()
The row id for this database object.
|
long |
getTransId(VirtualDB layer,
Hint hint)
The current transaction id for this database object.
|
boolean |
hasRawFieldInLayer(VirtualDB layer,
DBField field,
Hint hint)
Does raw data for a field exist in this layer ? This ignores the final flag
as it is used for deleting data.
|
boolean |
hasRawRowInLayer(VirtualDB layer,
Hint hint)
Does raw data for a record exist in this layer ? This ignores the final flag
as it is used for deleting data.
|
boolean |
isDeleted(VirtualDB layer,
Hint hint)
Is the database object deleted.
|
boolean |
isFinal(VirtualDB layer,
Hint hint)
Is this layer's data marked as final ?
No changes may be recorded for a record that is final from below.
|
void |
register(DBObject theObject)
registers any objects that contain this data object
this allows us to notify these objects of any changes made to the data
|
void |
reloadLayer(VirtualDB layer)
Reloads this layer's data from the raw database.
|
@CheckReturnValue @Nonnull GlobalKeyId getRootDBClassId()
@CheckReturnValue @Nonnull DBClass getRealDBClass(@Nonnull VirtualDB layer, @Nullable Hint hint)
layer
- the layerhint
- @CheckReturnValue @Nonnull GlobalKey getGlobalKey(@Nullable Hint hint)
hint
- If we need to hit the database, then also get these rows@CheckReturnValue @Nullable java.lang.Object getRawValue(@Nonnull VirtualDB layer, @Nonnull DBField field, @Nullable Hint hint)
layer
- Which layer.field
- The field to gethint
- Which other rows will we be asking for.@CheckReturnValue @Nullable GlobalKey getGlobalKey(@Nonnull VirtualDB layer, @Nonnull DBField field, @Nullable Hint hint)
layer
- Which layer.field
- The field to gethint
- Which other rows will we be asking for.void reloadLayer(@Nonnull VirtualDB layer) throws java.lang.Exception
layer
- For which layerjava.lang.Exception
- A serious problem.@CheckReturnValue long getRowId()
@CheckReturnValue long getTransId(@Nonnull VirtualDB layer, @Nullable Hint hint)
layer
- Which layerhint
- What other rows.@CheckReturnValue boolean isDeleted(@Nonnull VirtualDB layer, @Nullable Hint hint)
layer
- In which layer ?hint
- What other rows will you be asking aboutvoid register(@Nonnull DBObject theObject)
theObject
- to notify@CheckReturnValue @Nonnull LayerData getLayerData(@Nonnull VirtualDB layer, @Nullable Hint hint)
layer
- From which layerhint
- What other records will you be asking@CheckReturnValue long getLinkedRowId(@Nonnull VirtualDB layer, @Nonnull DBField field, @Nullable Hint hint)
layer
- the layerfield
- The fieldhint
- void addDependanceListener(@Nonnull DependanceListener dl)
dl
- The listener@CheckReturnValue int getBaseLayerId()
@CheckReturnValue boolean hasRawFieldInLayer(@Nonnull VirtualDB layer, @Nonnull DBField field, @Nullable Hint hint)
layer
- From which layer.field
- The fieldhint
- Which other rows.@CheckReturnValue boolean hasRawRowInLayer(@Nonnull VirtualDB layer, @Nullable Hint hint)
layer
- From which layerhint
- Which other rows.@CheckReturnValue boolean isFinal(@Nonnull VirtualDB layer, @Nullable Hint hint)
layer
- From which layer.hint
- What other rows.stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.