private static final class ConnectedStatementsWriter.PreparedInsertStatement extends AbstractStatementsWriter.InsertStatement
Modifier and Type | Field and Description |
---|---|
private BitSet |
availableColumns |
private int |
columnCount |
private int[] |
parameterIndices |
private String |
sql |
private PreparedStatement |
statement |
Constructor and Description |
---|
PreparedInsertStatement(GeneratorDialect dialect,
Connection connection,
GeneratorTable table) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
executeUpdate() |
int |
getColumnCount() |
String |
getSql() |
PreparedStatement |
getStatement() |
void |
reset()
Resets the content of this statement to reuse it.
|
void |
setColumnValue(GeneratorColumn column,
ColumnExpression expression)
Sets the value for a specific column.
|
addColumns, toSql
getDialect, getTable, getValues, isPlainExpressionAvailable, toString
private final PreparedStatement statement
private final int columnCount
private final String sql
private final BitSet availableColumns
private final int[] parameterIndices
PreparedInsertStatement(GeneratorDialect dialect, Connection connection, GeneratorTable table) throws SQLException
SQLException
public void close() throws SQLException
SQLException
public int executeUpdate() throws SQLException
SQLException
public void reset()
AbstractStatementsWriter.AbstractTableStatement
reset
in class AbstractStatementsWriter.AbstractTableStatement
public void setColumnValue(GeneratorColumn column, ColumnExpression expression)
AbstractStatementsWriter.AbstractTableStatement
setColumnValue
in interface TableStatement
setColumnValue
in class AbstractStatementsWriter.AbstractTableStatement
column
- the column nameexpression
- the value expression@Generated(value="lombok") public PreparedStatement getStatement()
@Generated(value="lombok") public int getColumnCount()
@Generated(value="lombok") public String getSql()
Copyright © 2022 fastnate.org. All rights reserved.