| java.lang.Object org.xorm.datastore.sql.BaseSQLDriver
All known Subclasses: org.xorm.datastore.sql.SybaseDriver,
BaseSQLDriver | public class BaseSQLDriver implements DatastoreDriver,I15d(Code) | | Implements the datastore driver interface for a "plain vanilla"
generic JDBC driver. The implementation is configured by the
drivers.properties file, which maps particular idioms for handling
sequences and autoincrement columns to particular JDBC driver classes.
This is intended to handle all JDBC drivers that work according to
the specification; subclasses should be necessary only for databases
that behave in odd or non-standard ways.
|
Inner Class :public class PreparedStatements | |
readOnly | protected boolean readOnly(Code) | | |
createPreparedStatements | protected PreparedStatements createPreparedStatements(Table table)(Code) | | Subclasses should override this if they need to provide custom
SQL generation for the prepared statements.
|
getStatements | protected PreparedStatements getStatements(Table table)(Code) | | |
inTransaction | protected boolean inTransaction()(Code) | | |
setObject | protected void setObject(PreparedStatement ps, int pos, Object value, String type) throws SQLException(Code) | | Handles default conversions that should work with most JDBC
drivers. Instances of java.util.Date are converted to
java.sql.Timestamp; values for SQL "CHAR" columns are converted
into a character stream.
|
update | public void update(Row row) throws DriverException(Code) | | Updates a row against the database. Uses the dirty bit settings
on Row to determine which fields to update.
|
|
|