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, toSqlgetDialect, getTable, getValues, isPlainExpressionAvailable, toStringprivate 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
SQLExceptionpublic void close()
throws SQLException
SQLExceptionpublic int executeUpdate()
throws SQLException
SQLExceptionpublic void reset()
AbstractStatementsWriter.AbstractTableStatementreset in class AbstractStatementsWriter.AbstractTableStatementpublic void setColumnValue(GeneratorColumn column, ColumnExpression expression)
AbstractStatementsWriter.AbstractTableStatementsetColumnValue in interface TableStatementsetColumnValue in class AbstractStatementsWriter.AbstractTableStatementcolumn - 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.