Top Description Inners Fields Constructors Methods
org.h2.table

public Class DataChangeDeltaTable

extends VirtualConstructedTable
Class Inheritance
Imports
org.h2.command.dml.DataChangeStatement, org.h2.engine.SessionLocal, org.h2.expression.Expression, .ExpressionColumn, org.h2.result.LocalResult, .ResultInterface, .ResultTarget, .Row, org.h2.schema.Schema

A data change delta table.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final Expression[]
private final DataChangeDeltaTable.ResultOption
private final DataChangeStatement

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
canGetRowCount(SessionLocal
the session
session
)

Implements abstract org.h2.table.Table.canGetRowCount.

Check if the row count can be retrieved quickly.

public static void
collectInsertedFinalRow(SessionLocal
the session
session
,
Table
the table
table
,
ResultTarget
target result
deltaChangeCollector
,
DataChangeDeltaTable.ResultOption
collection mode
deltaChangeCollectionMode
,
Row
the inserted row
newRow
)

Collects final row for INSERT operations.

public ResultInterface
getResult(SessionLocal
the session
session
)

Implements abstract org.h2.table.VirtualConstructedTable.getResult.

Read the rows from the table.

public long
getRowCount(SessionLocal
the session
session
)

Implements abstract org.h2.table.Table.getRowCount.

Get the row count for this table.

public long
getRowCountApproximation(SessionLocal
the session
session
)

Implements abstract org.h2.table.Table.getRowCountApproximation.

Get the approximated row count for this table.

public StringBuilder
getSQL(StringBuilder
string builder
builder
,
int
formatting flags
sqlFlags
)

Overrides org.h2.table.VirtualTable.getSQL.

Implements org.h2.util.HasSQL.getSQL.

Appends the SQL statement of this object to the specified builder.

public boolean
isDeterministic()

Implements abstract org.h2.table.Table.isDeterministic.

Check if the table is deterministic.

Inherited from org.h2.table.VirtualConstructedTable:
getMaxDataModificationIdgetScanIndex

Field Detail

expressionsback to summary
private final Expression[] expressions
resultOptionback to summary
private final DataChangeDeltaTable.ResultOption resultOption
statementback to summary
private final DataChangeStatement statement

Constructor Detail

DataChangeDeltaTableback to summary
public DataChangeDeltaTable(Schema schema, SessionLocal session, DataChangeStatement statement, DataChangeDeltaTable.ResultOption resultOption)

Method Detail

canGetRowCountback to summary
public boolean canGetRowCount(SessionLocal session)

Implements abstract org.h2.table.Table.canGetRowCount.

Doc from org.h2.table.Table.canGetRowCount.

Check if the row count can be retrieved quickly.

Parameters
session:SessionLocal

the session

Returns:boolean

true if it can

Annotations
@Override
collectInsertedFinalRowback to summary
public static void collectInsertedFinalRow(SessionLocal session, Table table, ResultTarget deltaChangeCollector, DataChangeDeltaTable.ResultOption deltaChangeCollectionMode, Row newRow)

Collects final row for INSERT operations.

Parameters
session:SessionLocal

the session

table:Table

the table

deltaChangeCollector:ResultTarget

target result

deltaChangeCollectionMode:DataChangeDeltaTable.ResultOption

collection mode

newRow:Row

the inserted row

getResultback to summary
public ResultInterface getResult(SessionLocal session)

Implements abstract org.h2.table.VirtualConstructedTable.getResult.

Doc from org.h2.table.VirtualConstructedTable.getResult.

Read the rows from the table.

Parameters
session:SessionLocal

the session

Returns:ResultInterface

the result

Annotations
@Override
getRowCountback to summary
public long getRowCount(SessionLocal session)

Implements abstract org.h2.table.Table.getRowCount.

Doc from org.h2.table.Table.getRowCount.

Get the row count for this table.

Parameters
session:SessionLocal

the session

Returns:long

the row count

Annotations
@Override
getRowCountApproximationback to summary
public long getRowCountApproximation(SessionLocal session)

Implements abstract org.h2.table.Table.getRowCountApproximation.

Doc from org.h2.table.Table.getRowCountApproximation.

Get the approximated row count for this table.

Parameters
session:SessionLocal

the session

Returns:long

the approximated row count

Annotations
@Override
getSQLback to summary
public StringBuilder getSQL(StringBuilder builder, int sqlFlags)

Overrides org.h2.table.VirtualTable.getSQL.

Implements org.h2.util.HasSQL.getSQL.

Doc from org.h2.util.HasSQL.getSQL.

Appends the SQL statement of this object to the specified builder.

Parameters
builder:StringBuilder

string builder

sqlFlags:int

formatting flags

Returns:StringBuilder

the specified string builder

Annotations
@Override
isDeterministicback to summary
public boolean isDeterministic()

Implements abstract org.h2.table.Table.isDeterministic.

Doc from org.h2.table.Table.isDeterministic.

Check if the table is deterministic.

Returns:boolean

true if it is

Annotations
@Override
org.h2.table back to summary

public final Enum DataChangeDeltaTable.ResultOption

extends Enum<DataChangeDeltaTable.ResultOption>
Class Inheritance

Result option.

Field Summary

Modifier and TypeField and Description
public static final DataChangeDeltaTable.ResultOption
FINAL

FINAL rows after triggers.

public static final DataChangeDeltaTable.ResultOption
NEW

NEW row with evaluated default expressions, but before triggers.

public static final DataChangeDeltaTable.ResultOption
OLD

OLD row.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static DataChangeDeltaTable.ResultOption
public static DataChangeDeltaTable.ResultOption[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FINALback to summary
public static final DataChangeDeltaTable.ResultOption FINAL

FINAL rows after triggers.

NEWback to summary
public static final DataChangeDeltaTable.ResultOption NEW

NEW row with evaluated default expressions, but before triggers.

OLDback to summary
public static final DataChangeDeltaTable.ResultOption OLD

OLD row.

Constructor Detail

ResultOptionback to summary
private ResultOption()

Method Detail

valueOfback to summary
public static DataChangeDeltaTable.ResultOption valueOf(String name)
valuesback to summary
public static DataChangeDeltaTable.ResultOption[] values()