public final class StatementExecutor extends Object
Constructor and Description |
---|
StatementExecutor() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute()
Execute SQL.
|
boolean |
execute(int autoGeneratedKeys)
Execute SQL with auto generated keys.
|
boolean |
execute(int[] columnIndexes)
Execute SQL with column indexes.
|
boolean |
execute(String[] columnNames)
Execute SQL with column names.
|
List<ResultSet> |
executeQuery()
Execute query.
|
int |
executeUpdate()
Execute update.
|
int |
executeUpdate(int autoGeneratedKeys)
Execute update with auto generated keys.
|
int |
executeUpdate(int[] columnIndexes)
Execute update with column indexes.
|
int |
executeUpdate(String[] columnNames)
Execute update with column names.
|
public List<ResultSet> executeQuery() throws SQLException
SQLException
- SQL exceptionpublic int executeUpdate() throws SQLException
SQLException
- SQL exceptionpublic int executeUpdate(int autoGeneratedKeys) throws SQLException
autoGeneratedKeys
- auto generated keys' flagSQLException
- SQL exceptionpublic int executeUpdate(int[] columnIndexes) throws SQLException
columnIndexes
- column indexesSQLException
- SQL exceptionpublic int executeUpdate(String[] columnNames) throws SQLException
columnNames
- column namesSQLException
- SQL exceptionpublic boolean execute() throws SQLException
SQLException
- SQL exceptionpublic boolean execute(int autoGeneratedKeys) throws SQLException
autoGeneratedKeys
- auto generated keys' flagSQLException
- SQL exceptionpublic boolean execute(int[] columnIndexes) throws SQLException
columnIndexes
- column indexesSQLException
- SQL exceptionpublic boolean execute(String[] columnNames) throws SQLException
columnNames
- column namesSQLException
- SQL exceptionCopyright © 2018. All rights reserved.