| java.lang.Object com.sqlmagic.tinysql.tinySQLConnection
All known Subclasses: com.sqlmagic.tinysql.dbfFileConnection, com.sqlmagic.tinysql.textFileConnection,
tinySQLConnection | abstract public class tinySQLConnection implements java.sql.Connection(Code) | | author: Thomas Morgner executetinySQL is now called with a statement author: containing the SQL-Query String. |
catalog | protected String catalog(Code) | | the catalog - it's not used by tinySQL
|
debug | static boolean debug(Code) | | |
isolation | protected int isolation(Code) | | Transaction isolation level - it's not used by tinySQL
|
user | protected String user(Code) | | The user name - currently unused
|
tinySQLConnection | public tinySQLConnection(String user, String u, Driver d) throws SQLException(Code) | | Constructs a new JDBC Connection for a tinySQL database
exception: SQLException - in case of an error Parameters: user - the user name - currently unused Parameters: u - the URL used to connect to the datasource Parameters: d - the Driver that instantiated this connection |
commit | public void commit() throws SQLException(Code) | | Commits a transaction. Since all SQL statements are implicitly
committed, it's save to preserve the illusion, and when this
method is invoked, it does not throw an exception.
See Also: java.sql.Connection.commit |
createStatement | public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException(Code) | | JDBC 2.0
Creates a Statement object that will generate
ResultSet objects with the given type and concurrency.
This method is the same as the createStatement method
above, but it allows the default result set
type and result set concurrency type to be overridden.
Parameters: resultSetType - a result set type; see ResultSet.TYPE_XXX Parameters: resultSetConcurrency - a concurrency type; see ResultSet.CONCUR_XXX a new Statement object exception: SQLException - if a database access error occurs |
executetinySQL | public tsResultSet executetinySQL(tinySQLStatement sql) throws SQLException(Code) | | Execute a tinySQL Statement
Parameters: sql - the statement to be executed tsResultSet containing the results of the SQL statement |
executetinyUpdate | public int executetinyUpdate(tinySQLStatement sql) throws SQLException(Code) | | Execute a tinySQL Statement
Parameters: sql - the statement to be executed either the row count for INSERT, UPDATE or DELETE or 0 for SQL statements that return nothing |
getAutoClose | public boolean getAutoClose()(Code) | | |
getAutoCommit | public boolean getAutoCommit()(Code) | | |
getTypeMap | public java.util.Map getTypeMap() throws SQLException(Code) | | JDBC 2.0
Gets the type map object associated with this connection.
Unless the application has added an entry to the type map,
the map returned will be empty.
the java.util.Map object associated with this Connection object |
get_tinySQL | abstract public tinySQL get_tinySQL()(Code) | | creates a new tinySQL object and returns it. Well, not really,
since tinySQL is an abstract class. When you subclass tinySQLConnection,
you will need to include this method, and return some subclass
of tinySQL.
|
nativeSQL | public String nativeSQL(String sql) throws SQLException(Code) | | Converts escaped SQL to tinySQL syntax. This is not supported yet,
but some level of it will be meaningful, when tinySQL begins to
support scalar functions. For now, it just returns the original SQL.
See Also: java.sql.Connection.nativeSQL Parameters: sql - the SQL statement just what you gave it |
prepareCall | public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code) | | JDBC 2.0
Creates a CallableStatement object that will generate
ResultSet objects with the given type and concurrency.
This method is the same as the prepareCall method
above, but it allows the default result set
type and result set concurrency type to be overridden.
Parameters: resultSetType - a result set type; see ResultSet.TYPE_XXX Parameters: resultSetConcurrency - a concurrency type; see ResultSet.CONCUR_XXX a new CallableStatement object containing thepre-compiled SQL statement exception: SQLException - if a database access error occurs |
prepareStatement | public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code) | | JDBC 2.0
Creates a PreparedStatement object that will generate
ResultSet objects with the given type and concurrency.
This method is the same as the prepareStatement method
above, but it allows the default result set
type and result set concurrency type to be overridden.
Parameters: resultSetType - a result set type; see ResultSet.TYPE_XXX Parameters: resultSetConcurrency - a concurrency type; see ResultSet.CONCUR_XXX a new PreparedStatement object containing thepre-compiled SQL statement exception: SQLException - if a database access error occurs |
setAutoClose | public void setAutoClose(boolean l)(Code) | | |
setReadOnly | public void setReadOnly(boolean b) throws SQLException(Code) | | Puts the database in read-only mode... not! This throws an
exception whenever it is called. tinySQL does not support
a read-only mode, and it might be dangerous to let a program
think it's in that mode.
See Also: java.sql.Connection.setReadOnly Parameters: b - meaningless |
setTransactionIsolation | public void setTransactionIsolation(int x) throws SQLException(Code) | | Sets the transaction isolation level, which has no meaning in tinySQL.
We'll set the isolation level value anyhow, just to keep it happy.
See Also: java.sql.Connection.setTransactionIsolation Parameters: x - the isolation level |
setTypeMap | public void setTypeMap(java.util.Map map) throws SQLException(Code) | | JDBC 2.0
Installs the given type map as the type map for
this connection. The type map will be used for the
custom mapping of SQL structured types and distinct types.
Parameters: the - java.util.Map object to installas the replacement for this Connection object's default type map |
|
|