Package totalcross.sql
Interface Connection
-
- All Known Implementing Classes:
SQLite4JConnection,SQLiteConnection
public interface Connection
-
-
Field Summary
Fields Modifier and Type Field Description static intTRANSACTION_NONEstatic intTRANSACTION_READ_COMMITTEDstatic intTRANSACTION_READ_UNCOMMITTEDstatic intTRANSACTION_REPEATABLE_READstatic intTRANSACTION_SERIALIZABLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearWarnings()voidclose()voidcommit()StatementcreateStatement()StatementcreateStatement(int resultSetType, int resultSetConcurrency)booleangetAutoCommit()java.lang.StringgetCatalog()intgetTransactionIsolation()java.sql.SQLWarninggetWarnings()booleanisClosed()booleanisReadOnly()java.lang.StringnativeSQL(java.lang.String sql)PreparedStatementprepareStatement(java.lang.String sql)PreparedStatementprepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency)voidrollback()voidsetAutoCommit(boolean autoCommit)voidsetCatalog(java.lang.String catalog)voidsetReadOnly(boolean readOnly)voidsetTransactionIsolation(int level)
-
-
-
Field Detail
-
TRANSACTION_NONE
static final int TRANSACTION_NONE
- See Also:
- Constant Field Values
-
TRANSACTION_READ_UNCOMMITTED
static final int TRANSACTION_READ_UNCOMMITTED
- See Also:
- Constant Field Values
-
TRANSACTION_READ_COMMITTED
static final int TRANSACTION_READ_COMMITTED
- See Also:
- Constant Field Values
-
TRANSACTION_REPEATABLE_READ
static final int TRANSACTION_REPEATABLE_READ
- See Also:
- Constant Field Values
-
TRANSACTION_SERIALIZABLE
static final int TRANSACTION_SERIALIZABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createStatement
Statement createStatement() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
prepareStatement
PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
nativeSQL
java.lang.String nativeSQL(java.lang.String sql) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setAutoCommit
void setAutoCommit(boolean autoCommit) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getAutoCommit
boolean getAutoCommit() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
commit
void commit() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
rollback
void rollback() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
close
void close() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isClosed
boolean isClosed() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setReadOnly
void setReadOnly(boolean readOnly) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isReadOnly
boolean isReadOnly() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setCatalog
void setCatalog(java.lang.String catalog) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getCatalog
java.lang.String getCatalog() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setTransactionIsolation
void setTransactionIsolation(int level) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getTransactionIsolation
int getTransactionIsolation() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getWarnings
java.sql.SQLWarning getWarnings() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
clearWarnings
void clearWarnings() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
createStatement
Statement createStatement(int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
prepareStatement
PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-