| java.lang.Object simpleorm.core.SDriver simpleorm.core.SDriverMSSQL
SDriverMSSQL | public class SDriverMSSQL extends SDriver (Code) | | This contains MS SQL Server specific code.
CHAR, VARCHAR max 8,000. TEXT 2^31. NVARCHAR/NCHAR UTF16, max size 4,000.
|
xLockEnabled | boolean xLockEnabled(Code) | | |
columnTypeSQL | protected String columnTypeSQL(SFieldMeta field)(Code) | | Apparantly need DATETIME instead of TIMESTAMP
|
forUpdateSQL | protected String forUpdateSQL(boolean forUpdate)(Code) | | |
getXLockEnabled | public boolean getXLockEnabled()(Code) | | |
postFromSQL | protected String postFromSQL(boolean forUpdate, boolean unrepeatableRead)(Code) | | XLOCK is not strictly necessary in MS SQL because it does not
provide Oracle-like data versioning.
But having XLOCK should reduce deadlocks. More importantly,
2005 is supposed to be providing data versioning
("Snapshots").
However, Jorge says that it is unnecessary and makes SimpleORM
fail, but it works for me.
See Also: SDriver.forUpdateSQL See Also: for discussion. |
setXLockEnabled | public void setXLockEnabled(boolean xlock)(Code) | | Enables WITH (XLOCK) for updatable queries.
Should reduce deadlocks but apparantly can cause bugs.
(Not supported in SQL 7? Something about HOLDLOCK?)
|
Methods inherited from simpleorm.core.SDriver | protected void aReferenceSQL(SFieldReference topRef, SFieldReference fldRef, StringBuffer sbFkey, StringBuffer sbRefed)(Code)(Java Doc) protected void addNull(StringBuffer sql, SFieldMeta fld)(Code)(Java Doc) public String alterTableAddColumnSQL(SFieldMeta field)(Code)(Java Doc) public String alterTableDropColumnSQL(SFieldMeta field)(Code)(Java Doc) protected boolean canResultSetAbsolute()(Code)(Java Doc) protected String clauseSeparator(String indent)(Code)(Java Doc) protected String columnTypeSQL(SFieldMeta field)(Code)(Java Doc) protected String createSequenceDDL(String name)(Code)(Java Doc) public String createTableSQL(SRecordMeta meta)(Code)(Java Doc) protected String deleteSQL(SRecordMeta from, SArrayList where, SRecordInstance instance, Object[] keyMetaValues)(Code)(Java Doc) protected String driverName()(Code)(Java Doc) protected String dropSequenceDDL(String name)(Code)(Java Doc) public void dropTableNoError(String table)(Code)(Java Doc) protected String forUpdateSQL(boolean forUpdate)(Code)(Java Doc) protected String foreignKeysSQL(SRecordMeta meta)(Code)(Java Doc) protected String fromSQL(SRecordMeta from, SRecordMeta[] joinTables)(Code)(Java Doc) protected long generateKeySelectMax(SRecordMeta rec, SFieldMeta keyFld)(Code)(Java Doc) protected long generateKeySequence(SRecordMeta rec, SFieldMeta keyFld)(Code)(Java Doc) protected String indexKeySQL(SRecordMeta meta)(Code)(Java Doc) protected void initResultSet(SResultSet srs)(Code)(Java Doc) protected String insertSQL(SArrayList updates, SRecordMeta from)(Code)(Java Doc) protected void makeForeignKeyIndexSQL(SRecordMeta meta, int fx, SFieldReference fldRef, StringBuffer sbFkey, StringBuffer sbRefed, StringBuffer fkey)(Code)(Java Doc) protected String mapForeignKeys(SRecordMeta meta, boolean foreignKey)(Code)(Java Doc) public int maxIdentNameLength()(Code)(Java Doc) static SDriver newSDriver(java.sql.Connection con, String driverName)(Code)(Java Doc) protected String postColumnSQL(SFieldMeta field)(Code)(Java Doc) protected String postFromSQL(boolean forUpdate, boolean unrepeatableRead)(Code)(Java Doc) protected String postTablePostParenSQL(SRecordMeta meta)(Code)(Java Doc) protected String postTablePreParenSQL(SRecordMeta meta)(Code)(Java Doc) protected String primaryKeySQL(SRecordMeta meta)(Code)(Java Doc) public String quoteColumn(String ident)(Code)(Java Doc) public String quoteConstraint(String ident)(Code)(Java Doc) public String quoteIdentifier(String ident)(Code)(Java Doc) public String quoteTable(String ident)(Code)(Java Doc) public void registerDriver()(Code)(Java Doc) protected String selectSQL(SFieldMeta[] select, SRecordMeta from, SFieldMeta[] where, String orderBy, boolean forUpdate, boolean unrepeatableRead, SPreparedStatement sps)(Code)(Java Doc) protected String selectSQL(SFieldMeta[] select, SRecordMeta from, String where, String orderBy, boolean forUpdate, boolean unrepeatableRead, SPreparedStatement sps)(Code)(Java Doc) public boolean supportsKeySequences()(Code)(Java Doc) public boolean supportsLocking()(Code)(Java Doc) protected String updateSQL(SArrayList updates, SRecordMeta from, SArrayList where, SRecordInstance instance, Object[] keyMetaValues)(Code)(Java Doc) protected void whereSQL(StringBuffer ret, SArrayList where, SRecordInstance instance, Object[] keyMetaValues)(Code)(Java Doc) protected String wholeColumnSQL(SFieldMeta fld)(Code)(Java Doc)
|
|
|