package java.sql
DriverManager
static Connection getConnection(String url, String usuario, String senha)
Connection
Statement createStatement()
Statement createStatement(int tipo, int concorrência)
PreparedStatement prepareStatement(String sql)
void setAutoCommit(boolean autoCommit)
PreparedStatement prepareStatement(String sql, int tipo, int concorrência)
Tipo
TYPE_FORWARD_ONLY
TYPE_SCROLL_INSENSITIVE
TYPE_SCROLL_SENSITIVE
Concorrência
CONCUR_READ_ONLY
CONCUR_UPDATABLE
void commit()
void rollback()
void close()
PreparedStatement
void setXxx(int n, Xxx x)
void clearParameters()
ResultSet executeQuery()
int executeUpdate()
ResultSet
boolean next()
Xxx getXxx(int numeroColuna)
Xxx getXxx(String nomeColuna)
int findColumn(String nomeColuna)
void close()
boolean previous()
int getRow()
boolean absolute(int r)
boolean relative(ind d)
boolean first()
boolean last()
boolean beforeFirst()
boolean afterLast()
boolean isFirst()
boolean isLast()
boolean isBeforeFirst()
boolean isAfterLast()
void moveToInsertRow()
void moveToCurrentRow()
void insertRow()
void deleteRow()
void updateXxx(int numeroColuna, Xxx data)
void update(String nomeColuna, Xxx data)
void updateRow()
void cancelRowUpdates()
Statement
ResultSet executeQuery(String query)
int executeUpdate(String sql)
void addBatch(String sql)
int[] executeBatch()
void clearBatch()
void close()
SQLException
String getSQLState()
Mensagens do SQLSTATE
int getErrorCode()
SQLException getNextException()