public class DirtyLayerData extends java.lang.Object implements LayerData
Modifier and Type | Field and Description |
---|---|
LayerData |
layerData |
static long |
MAX_DIRTY_TIME
The MAXIMUM DIRTY TIME for any record before we give up.
|
static java.lang.String |
PROPERTY_DIRTY_MAX_TIME
The property to set the default maximum dirty time.
|
GlobalKeyId |
rootDBClassId |
long |
rowUID |
Constructor and Description |
---|
DirtyLayerData(GlobalKeyId rootDBClassId,
long rowUID,
long requiredTransId,
LayerData layerData)
The actual layer data.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
long |
getKnownDirtySince()
This layer has been known as dirty since
|
LayerField |
getLayerField(DBField field)
The value for this field/row/layer
|
int |
getLayerId()
The current layer id for this layer's row
|
java.lang.String |
getRawDenormalizedData(java.lang.String code)
The raw data
|
long |
getRequiredTransId()
the required transaction
|
long |
getRowUID()
the row UID
|
long |
getTransId()
The current transaction number for this layer's row
|
boolean |
hasRawField(DBField field)
Is there a value for this field in this row.
|
boolean |
hasRawRow()
Is there a raw row for this row in this layer ?
|
boolean |
isDeleted()
Is the row deleted in this layer.
|
boolean |
isDirty()
is the layer data dirty ?
|
boolean |
isFinal()
Is this layer marked as final ?
|
org.w3c.dom.Document |
makeDenormalizedDoc(java.lang.String code)
make the de-normalized
|
static void |
markAllAsConsistent()
Mark all existing dirty data records as consistent ( give up trying)
|
void |
releaseDenormalizedMemory(java.lang.String code) |
boolean |
shouldGiveUp()
It's hopeless to attempt to read this record any more.
|
public final long rowUID
public final LayerData layerData
public final GlobalKeyId rootDBClassId
public static final long MAX_DIRTY_TIME
public static final java.lang.String PROPERTY_DIRTY_MAX_TIME
public DirtyLayerData(@Nonnull GlobalKeyId rootDBClassId, @Nonnegative long rowUID, @Nonnegative long requiredTransId, @Nonnull LayerData layerData)
rootDBClassId
- the root classrowUID
- the row idrequiredTransId
- the required transaction idlayerData
- the layer data@CheckReturnValue @Nonnegative public long getRowUID()
@CheckReturnValue @Nonnegative public int getLayerId()
getLayerId
in interface LayerData
@CheckReturnValue @Nonnegative public long getRequiredTransId()
@CheckReturnValue @Nonnegative public long getTransId()
getTransId
in interface LayerData
@CheckReturnValue public boolean isDeleted()
@CheckReturnValue public boolean isFinal()
@CheckReturnValue public boolean hasRawField(DBField field)
hasRawField
in interface LayerData
field
- The field to check.@CheckReturnValue @Nullable public LayerField getLayerField(DBField field)
getLayerField
in interface LayerData
field
- The field to check@CheckReturnValue public boolean isDirty()
@CheckReturnValue @Nonnegative public long getKnownDirtySince()
public static void markAllAsConsistent()
@CheckReturnValue public boolean shouldGiveUp()
@CheckReturnValue public boolean hasRawRow()
public void releaseDenormalizedMemory(java.lang.String code) throws java.lang.Exception
releaseDenormalizedMemory
in interface LayerData
code
- codejava.lang.Exception
- a serious problem@CheckReturnValue @Nullable public org.w3c.dom.Document makeDenormalizedDoc(java.lang.String code) throws java.lang.Exception
makeDenormalizedDoc
in interface LayerData
code
- codejava.lang.Exception
- a serious problem@CheckReturnValue @Nonnull public java.lang.String getRawDenormalizedData(java.lang.String code)
getRawDenormalizedData
in interface LayerData
code
- code@CheckReturnValue public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.