| Connection |
abort(Executor executor) |
Terminates an open connection. |
None |
Abort |
| |
clearWarnings() |
Clears all warnings for this Connection object. |
None |
None |
| |
close() |
Closes the connection and releases JDBC resources. |
None |
End Connection |
| |
commit() |
Commits the current transaction, making all changes permanent. |
Commit (Post-C/U/D) |
Commit |
| |
createArrayOf(String typeName, Object[] elements) |
Creates an Array object. |
CREATE |
None |
| |
createBlob() |
Creates a Blob object. |
CREATE |
None |
| |
createClob() |
Creates a Clob object. |
CREATE |
None |
| |
createNClob() |
Creates an NClob object. |
CREATE |
None |
| |
createSQLXML() |
Creates an SQLXML object. |
CREATE |
None |
| |
createStatement() |
Creates a Statement object for executing SQL. |
None (Setup) |
None |
| |
createStatement(int, int) |
Creates a Statement with specified ResultSet type and concurrency. |
None (Setup) |
None |
| |
createStatement(int, int, int) |
Creates a Statement with specified type, concurrency, and holdability. |
None (Setup) |
None |
| |
createStruct(String typeName, Object[] attributes) |
Creates a Struct object. |
CREATE |
None |
| |
getAutoCommit() |
Retrieves the current auto-commit mode. |
None |
Transaction Mode Inquiry |
| |
getCatalog() |
Retrieves the current catalog name. |
None |
None |
| |
getClientInfo() |
Retrieves client info properties. |
None |
None |
| |
getClientInfo(String name) |
Retrieves a specific client info property. |
None |
None |
| |
getHoldability() |
Retrieves the current ResultSet holdability. |
None |
None |
| |
getMetaData() |
Retrieves database metadata. |
READ |
None |
| |
getNetworkTimeout() |
Retrieves the network timeout setting. |
None |
None |
| |
getSchema() |
Retrieves the current schema. |
None |
None |
| |
getTransactionIsolation() |
Retrieves the transaction isolation level. |
None |
Transaction Mode Inquiry |
| |
getTypeMap() |
Retrieves the type map for this connection. |
None |
None |
| |
getWarnings() |
Retrieves the first warning reported on this Connection. |
None |
None |
| |
isClosed() |
Checks if the connection is closed. |
None |
Connection Status Inquiry |
| |
isReadOnly() |
Checks if the connection is in read-only mode. |
None |
Transaction Mode Inquiry |
| |
isValid(int timeout) |
Checks if the connection is valid. |
None |
Connection Status Inquiry |
| |
nativeSQL(String sql) |
Converts SQL to the system's native SQL grammar. |
None |
None |
| |
prepareCall(String sql) |
Prepares a callable statement for stored procedures. |
None (Setup) |
None |
| |
prepareCall(String sql, int, int) |
Prepares a callable statement with specified ResultSet type and concurrency. |
None (Setup) |
None |
| |
prepareCall(String sql, int, int, int) |
Prepares a callable statement with specified type, concurrency, and holdability. |
None (Setup) |
None |
| |
prepareStatement(String sql) |
Prepares a parameterized SQL statement. |
None (Setup) |
None |
| |
prepareStatement(String sql, int autoGeneratedKeys) |
Prepares a statement capable of returning auto-generated keys. |
None (Setup) |
None |
| |
prepareStatement(String sql, int[] columnIndexes) |
Prepares a statement capable of returning specified columns' auto-generated keys. |
None (Setup) |
None |
| |
prepareStatement(String sql, int, int) |
Prepares a statement with specified ResultSet type and concurrency. |
None (Setup) |
None |
| |
prepareStatement(String sql, int, int, int) |
Prepares a statement with specified type, concurrency, and holdability. |
None (Setup) |
None |
| |
prepareStatement(String sql, String[] columnNames) |
Prepares a statement capable of returning specified columns' auto-generated keys. |
None (Setup) |
None |
| |
releaseSavepoint(Savepoint savepoint) |
Releases a specified savepoint. |
None |
Savepoint Management |
| |
rollback() |
Rolls back all changes made in the current transaction. |
Rollback (Undo C/U/D) |
Rollback |
| |
rollback(Savepoint savepoint) |
Rolls back changes to the specified savepoint. |
Rollback (Undo C/U/D) |
Rollback (to Savepoint) |
| |
setAutoCommit(boolean autoCommit) |
Sets the auto-commit mode. |
None |
Transaction Mode Setting |
| |
setCatalog(String catalog) |
Sets the catalog name for the connection. |
None |
None |
| |
setClientInfo(Properties properties) |
Sets client info properties. |
None |
None |
| |
setClientInfo(String name, String value) |
Sets a specific client info property. |
None |
None |
| |
setHoldability(int holdability) |
Sets the default holdability for ResultSet objects. |
None |
None |
| |
setNetworkTimeout(Executor executor, int ms) |
Sets the maximum period to wait for a database response. |
None |
None |
| |
setReadOnly(boolean readOnly) |
Puts the connection in read-only mode. |
None |
Transaction Mode Setting |
| |
setSavepoint() |
Creates an unnamed savepoint in the current transaction. |
None (Setup) |
Savepoint Management |
| |
setSavepoint(String name) |
Creates a named savepoint in the current transaction. |
None (Setup) |
Savepoint Management |
| |
setSchema(String schema) |
Sets the current schema name. |
None |
None |
| |
setTransactionIsolation(int level) |
Sets the transaction isolation level. |
None |
Transaction Mode Setting |
| |
setTypeMap(Map<String, Class<?>> map) |
Sets the type map for custom mapping of SQL types to Java objects. |
None |
None |
Is your feature request related to a problem? Please describe.
Yes, for issue #100, support JDBC database operations.
Describe the solution you'd like
The generated
analysis.jsonmust be able to capture JDBC including operations usingConnection,Statement,PreparedStatement, andResultSet.Describe alternatives you've considered
Same as #100
Additional context
Parent: #100
1. If the callsite ReceiverType is
Statement,PreparedStatement, andCallableStatementWe want to look for the following methods:
StatementaddBatch(String sql)execute(String sql)executeBatch()executeLargeBatch()executeLargeUpdate(String sql)INSERT,UPDATE,DELETE, or DDL statements.executeQuery(String sql)SELECTquery and returns a ResultSet.executeUpdate(String sql)INSERT,UPDATE,DELETE, or DDL statements.getResultSet()getGeneratedKeys()INSERToperation.getUpdateCount()UPDATE,INSERT, orDELETE.PreparedStatementexecute()executeLargeUpdate()INSERT,UPDATE,DELETE, or DDL statements.executeQuery()SELECTquery and returns a ResultSet.executeUpdate()INSERT,UPDATE, orDELETEstatements.getMetaData()getParameterMetaData()CallableStatementexecuteQuery()executeUpdate()INSERT,UPDATE, orDELETE.getXxx(int parameterIndex)getInt,getString).registerOutParameter(...)setXxx(...)2.
CONNECTIONandTRANSACTIONAL3.
ResultSet4.
CachedRowSet,FilteredRowSet,JdbcRowSet,JoinRowSet,RowSet,SyncResolver,WebRowSetMethodRowSetexecute()RowSetwith data.CachedRowSetacceptChanges()RowSetand commits them to the database.restoreOriginal()RowSetto its original state before modifications.FilteredRowSetsetFilter(Predicate predicate)RowSet.JoinRowSetaddRowSet(RowSet rowset)RowSetto be joined.setJoinType(int joinType)INNER JOIN,LEFT JOIN).SyncResolvergetConflictValue(int columnIndex)setResolvedValue(int columnIndex, Object value)WebRowSetwriteXml(Writer writer)WebRowSetdata to XML format.readXml(Reader reader)WebRowSet.Additional context
References