public interface LogEntry
extends java.io.Serializable
Log and provides getters and
setters for each of the supported
data types.
Unless stated otherwise, instances are only intended for short-term usage
since they are mostly backed by a cursor on a LogEntrySet and that
cursor's position might change.
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID
Generated ID for serialisation.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(int columnIndex)
Returns the value of the specified column.
|
java.lang.Object |
get(java.lang.String columnName)
Returns the value of the specified column.
|
boolean |
getBoolean(int columnIndex)
Returns the value of the specified column.
|
boolean |
getBoolean(java.lang.String columnName)
Returns the value of the specified column.
|
byte |
getByte(int columnIndex)
Returns the value of the specified column.
|
byte |
getByte(java.lang.String columnName)
Returns the value of the specified column.
|
double |
getDouble(int columnIndex)
Returns the value of the specified column.
|
double |
getDouble(java.lang.String columnName)
Returns the value of the specified column.
|
LogEntrySet |
getEntrySet(int columnIndex)
Returns the value of the specified column.
|
LogEntrySet |
getEntrySet(java.lang.String columnName)
Returns the value of the specified column.
|
float |
getFloat(int columnIndex)
Returns the value of the specified column.
|
float |
getFloat(java.lang.String columnName)
Returns the value of the specified column.
|
long |
getID()
Returns the ID of this log entry or
Long.MIN_VALUE if this entry
has no associated ID. |
int |
getInteger(int columnIndex)
Returns the value of the specified column.
|
int |
getInteger(java.lang.String columnName)
Returns the value of the specified column.
|
long |
getLong(int columnIndex)
Returns the value of the specified column.
|
long |
getLong(java.lang.String columnName)
Returns the value of the specified column.
|
Schema |
getSchema()
Returns the schema of this log entry.
|
short |
getShort(int columnIndex)
Returns the value of the specified column.
|
short |
getShort(java.lang.String columnName)
Returns the value of the specified column.
|
java.lang.String |
getString(int columnIndex)
Returns the value of the specified column.
|
java.lang.String |
getString(java.lang.String columnName)
Returns the value of the specified column.
|
java.sql.Timestamp |
getTimestamp(int columnIndex)
Returns the value of the specified column.
|
java.sql.Timestamp |
getTimestamp(java.lang.String columnName)
Returns the value of the specified column.
|
java.util.UUID |
getUUID(int columnIndex)
Returns the value of the specified column.
|
java.util.UUID |
getUUID(java.lang.String columnName)
Returns the value of the specified column.
|
boolean |
isNull(int columnIndex)
Returns whether the value of the specified column is
null. |
boolean |
isNull(java.lang.String columnName)
Returns whether the value of the specified column is
null. |
void |
setBoolean(int columnIndex,
boolean value)
Sets the value of the specified column.
|
void |
setBoolean(java.lang.String columnName,
boolean value)
Sets the value of the specified column.
|
void |
setByte(int columnIndex,
byte value)
Sets the value of the specified column.
|
void |
setByte(java.lang.String columnName,
byte value)
Sets the value of the specified column.
|
void |
setDouble(int columnIndex,
double value)
Sets the value of the specified column.
|
void |
setDouble(java.lang.String columnName,
double value)
Sets the value of the specified column.
|
void |
setEntrySet(int columnIndex,
LogEntrySet value)
Sets the value of the specified column.
|
void |
setEntrySet(java.lang.String columnName,
LogEntrySet value)
Sets the value of the specified column.
|
void |
setFloat(int columnIndex,
float value)
Sets the value of the specified column.
|
void |
setFloat(java.lang.String columnName,
float value)
Sets the value of the specified column.
|
void |
setID(long id)
Sets the ID of this log entry or
Long.MIN_VALUE if this entry has
no associated ID. |
void |
setInteger(int columnIndex,
int value)
Sets the value of the specified column.
|
void |
setInteger(java.lang.String columnName,
int value)
Sets the value of the specified column.
|
void |
setLong(int columnIndex,
long value)
Sets the value of the specified column.
|
void |
setLong(java.lang.String columnName,
long value)
Sets the value of the specified column.
|
void |
setNull(int columnIndex)
Sets the value of the specified column to
null. |
void |
setNull(java.lang.String columnName)
Sets the value of the specified column to
null. |
void |
setShort(int columnIndex,
short value)
Sets the value of the specified column.
|
void |
setShort(java.lang.String columnName,
short value)
Sets the value of the specified column.
|
void |
setString(int columnIndex,
java.lang.String value)
Sets the value of the specified column.
|
void |
setString(java.lang.String columnName,
java.lang.String value)
Sets the value of the specified column.
|
void |
setTimestamp(int columnIndex,
java.sql.Timestamp value)
Sets the value of the specified column.
|
void |
setTimestamp(java.lang.String columnName,
java.sql.Timestamp value)
Sets the value of the specified column.
|
void |
setUUID(int columnIndex,
java.util.UUID value)
Sets the value of the specified column.
|
void |
setUUID(java.lang.String columnName,
java.util.UUID value)
Sets the value of the specified column.
|
static final long serialVersionUID
Schema getSchema()
long getID()
Long.MIN_VALUE if this entry
has no associated ID. The ID uniquely identifies a log entry (or the entry
of a complex column).
These IDs are created from a sequence in ascending order. I.e. they allow a
more fine-grained temporal ordering, since timestamps may sometimes be
inadequate. Some DBMSs may not support sub-second precision, and while
System.currentTimeMillis() may support millisecond precision it
does often not support millisecond accuracy. I.e. logged entries with only
a few milliseconds between them may receive the same timestamp.
Long.MIN_VALUEvoid setID(long id)
Long.MIN_VALUE if this entry has
no associated ID.id - the ID of this log entry or Long.MIN_VALUEjava.lang.Object get(int columnIndex)
columnIndex - the column's indexnulljava.lang.Object get(java.lang.String columnName)
columnName - the column's namenullboolean getBoolean(int columnIndex)
DataType.BOOLEAN.columnIndex - the column's indexfalse if the value is nullboolean getBoolean(java.lang.String columnName)
DataType.BOOLEAN.columnName - the column's namefalse if the value is nullbyte getByte(int columnIndex)
DataType.BYTE.columnIndex - the column's index0 if the value is nullbyte getByte(java.lang.String columnName)
DataType.BYTE.columnName - the column's name0 if the value is nullshort getShort(int columnIndex)
DataType.SHORT.columnIndex - the column's index0 if the value is nullshort getShort(java.lang.String columnName)
DataType.SHORT.columnName - the column's name0 if the value is nullint getInteger(int columnIndex)
DataType.INTEGER.columnIndex - the column's index0 if the value is nullint getInteger(java.lang.String columnName)
DataType.INTEGER.columnName - the column's name0 if the value is nulllong getLong(int columnIndex)
DataType.LONG.columnIndex - the column's index0 if the value is nulllong getLong(java.lang.String columnName)
DataType.LONG.columnName - the column's name0 if the value is nullfloat getFloat(int columnIndex)
DataType.FLOAT.columnIndex - the column's index0 if the value is nullfloat getFloat(java.lang.String columnName)
DataType.FLOAT.columnName - the column's name0 if the value is nulldouble getDouble(int columnIndex)
DataType.DOUBLE.columnIndex - the column's index0 if the value is nulldouble getDouble(java.lang.String columnName)
DataType.DOUBLE.columnName - the column's name0 if the value is nulljava.lang.String getString(int columnIndex)
DataType.STRING.columnIndex - the column's indexjava.lang.String getString(java.lang.String columnName)
DataType.STRING.columnName - the column's namejava.util.UUID getUUID(int columnIndex)
DataType.UUID.columnIndex - the column's indexjava.util.UUID getUUID(java.lang.String columnName)
DataType.UUID.columnName - the column's namejava.sql.Timestamp getTimestamp(int columnIndex)
DataType.TIMESTAMP.columnIndex - the column's indexjava.sql.Timestamp getTimestamp(java.lang.String columnName)
DataType.TIMESTAMP.columnName - the column's nameLogEntrySet getEntrySet(int columnIndex)
DataType.COMPLEX.columnIndex - the column's indexLogEntrySet getEntrySet(java.lang.String columnName)
DataType.COMPLEX.columnName - the column's nameboolean isNull(int columnIndex)
null.columnIndex - the column's indexnullboolean isNull(java.lang.String columnName)
null.columnName - the column's namenullvoid setBoolean(int columnIndex,
boolean value)
DataType.BOOLEAN.columnIndex - the column's indexvalue - the new valuevoid setBoolean(java.lang.String columnName,
boolean value)
DataType.BOOLEAN.columnName - the column's namevalue - the new valuevoid setByte(int columnIndex,
byte value)
DataType.BYTE.columnIndex - the column's indexvalue - the new valuevoid setByte(java.lang.String columnName,
byte value)
DataType.BYTE.columnName - the column's namevalue - the new valuevoid setShort(int columnIndex,
short value)
DataType.SHORT.columnIndex - the column's indexvalue - the new valuevoid setShort(java.lang.String columnName,
short value)
DataType.SHORT.columnName - the column's namevalue - the new valuevoid setInteger(int columnIndex,
int value)
DataType.INTEGER.columnIndex - the column's indexvalue - the new valuevoid setInteger(java.lang.String columnName,
int value)
DataType.INTEGER.columnName - the column's namevalue - the new valuevoid setLong(int columnIndex,
long value)
DataType.LONG.columnIndex - the column's indexvalue - the new valuevoid setLong(java.lang.String columnName,
long value)
DataType.LONG.columnName - the column's namevalue - the new valuevoid setFloat(int columnIndex,
float value)
DataType.FLOAT.columnIndex - the column's indexvalue - the new valuevoid setFloat(java.lang.String columnName,
float value)
DataType.FLOAT.columnName - the column's namevalue - the new valuevoid setDouble(int columnIndex,
double value)
DataType.DOUBLE.columnIndex - the column's indexvalue - the new valuevoid setDouble(java.lang.String columnName,
double value)
DataType.DOUBLE.columnName - the column's namevalue - the new valuevoid setString(int columnIndex,
java.lang.String value)
DataType.STRING.columnIndex - the column's indexvalue - the new valuevoid setString(java.lang.String columnName,
java.lang.String value)
DataType.STRING.columnName - the column's namevalue - the new valuevoid setUUID(int columnIndex,
java.util.UUID value)
DataType.UUID.columnIndex - the column's indexvalue - the new valuevoid setUUID(java.lang.String columnName,
java.util.UUID value)
DataType.UUID.columnName - the column's namevalue - the new valuevoid setTimestamp(int columnIndex,
java.sql.Timestamp value)
DataType.TIMESTAMP.columnIndex - the column's indexvalue - the new valuevoid setTimestamp(java.lang.String columnName,
java.sql.Timestamp value)
DataType.TIMESTAMP.columnName - the column's namevalue - the new valuevoid setEntrySet(int columnIndex,
LogEntrySet value)
DataType.COMPLEX.columnIndex - the column's indexvalue - the new valuevoid setEntrySet(java.lang.String columnName,
LogEntrySet value)
DataType.COMPLEX.columnName - the column's namevalue - the new valuevoid setNull(int columnIndex)
null.columnIndex - the column's indexvoid setNull(java.lang.String columnName)
null.columnName - the column's name