Statement proxy that logs all statements that are prepared
or executed using it.
| Modifier and Type | Field and Description |
|---|---|
| private static final JooqLogger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Statement | add()
Overrides org. Implements io. bind and bindNull.
|
| public Statement | bind(int
the index to bind to index, Object the value to bind value)Overrides org. Implements io. null value to an indexed parameter.
|
| public Statement | bind(String
the name of identifier to bind to name, Object the value to bind value)Overrides org. Implements io. null to a named parameter.
|
| public Statement | bindNull(int
the index to bind to index, Class<?> the type of null value type)Overrides org. Implements io. null value to an indexed parameter.
|
| public Statement | bindNull(String
the name of identifier to bind to name, Class<?> the type of null value type)Overrides org. Implements io. null value to a named parameter.
|
| public Publisher | execute()
Overrides org. Implements io. Results.
|
| log | back to summary |
|---|---|
| private static final JooqLogger log | |
| LoggingStatement | back to summary |
|---|---|
| public LoggingStatement(Statement delegate) | |
| add | back to summary |
|---|---|
| public Statement add() Overrides org. Implements io. Doc from io. Save the current binding and create a new one to indicate the statement should be executed again with new bindings provided through subsequent calls to
Statement statement = connection.createStatement("INSERT INTO books (author, publisher) VALUES ($1, $2)");
statement.bind(0, "John Doe").bind(1, "Happy Books LLC").add();
statement.bind(0, "Jane Doe").bind(1, "Scary Books Inc");
statement.execute();
| |
| bind | back to summary |
|---|---|
| public Statement bind(int index, Object value) Overrides org. Implements io. Doc from io. Bind a non- | |
| bind | back to summary |
|---|---|
| public Statement bind(String name, Object value) Overrides org. Implements io. Doc from io. Bind a non- | |
| bindNull | back to summary |
|---|---|
| public Statement bindNull(int index, Class<?> type) Overrides org. Implements io. Doc from io. Bind a | |
| bindNull | back to summary |
|---|---|
| public Statement bindNull(String name, Class<?> type) Overrides org. Implements io. Doc from io. Bind a | |
| execute | back to summary |
|---|---|
| public Publisher Overrides org. Implements io. Doc from io. Executes one or more SQL statements and returns the | |