public class PrepareStatementCommand extends CommandBase<PreparedStatement>
handler| Constructor and Description |
|---|
PrepareStatementCommand(String sql,
boolean managed) |
PrepareStatementCommand(String sql,
boolean managed,
List<Class<?>> parameterTypes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isManaged()
Indicate whether the prepared statement will be managed by the connection
|
List<Class<?>> |
parameterTypes() |
String |
sql() |
complete, fail, failpublic PrepareStatementCommand(String sql, boolean managed)
public String sql()
public List<Class<?>> parameterTypes()
null when they are not yet determined.public boolean isManaged()
Managed prepared statements survive a single interactions with the database and will be closed at some time by the connection (either with a cache eviction or when the prepared statement is closed).
Otherwise the prepared statement is ephermal and valid only for a single execution. It should be disposed after the prepared statement has been executed.
Copyright © 2021. All rights reserved.