public class DBAdapter
extends java.lang.Object
implements java.io.Serializable
Title: DBAdapter
Description: 消除数据之间的差异性
Copyright: Copyright (c) 2005
Company:
| 构造器和说明 |
|---|
DBAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
escapeText()
This method is for the SqlExpression.quoteAndEscape rules.
|
static boolean |
escapeText(java.lang.String dbName)
This method is for the SqlExpression.quoteAndEscape rules.
|
static java.lang.String |
getBooleanString(java.lang.Boolean b)
This method is used to format a boolean string.
|
static java.lang.String |
getBooleanString(java.lang.Boolean b,
java.lang.String dbName)
This method is used to format a boolean string.
|
static java.lang.Object |
getCharValue(java.sql.ResultSet res,
int i,
java.lang.String value) |
static java.lang.String |
getDateString(java.util.Date date)
This method is used to format any date string.
|
static java.lang.String |
getDateString(java.util.Date date,
java.lang.String dbName)
This method is used to format any date string.
|
static java.lang.String |
getDateString(java.lang.String date) |
static java.lang.String |
getIDMethodSQL(java.lang.Object obj) |
static java.lang.String |
getIDMethodSQL(java.lang.Object obj,
java.lang.String dbName) |
static java.lang.String |
getIDMethodType() |
static java.lang.String |
getIDMethodType(java.lang.String dbName) |
static int |
getLimitStyle()
This method is used to check whether the database supports
limiting the size of the resultset.
|
static int |
getLimitStyle(java.lang.String dbName)
This method is used to check whether the database supports
limiting the size of the resultset.
|
static char |
getStringDelimiter()
Returns the character used to indicate the beginning and end of
a piece of text used in a SQL statement (generally a single
quote).
|
static char |
getStringDelimiter(java.lang.String dbName)
Returns the character used to indicate the beginning and end of
a piece of text used in a SQL statement (generally a single
quote).
|
static java.lang.String |
ignoreCase(java.lang.String in) |
static java.lang.String |
ignoreCase(java.lang.String in,
java.lang.String dbName) |
static java.lang.String |
ignoreCaseInOrderBy(java.lang.String in)
This method is used to ignore case in an ORDER BY clause.
|
static java.lang.String |
ignoreCaseInOrderBy(java.lang.String in,
java.lang.String dbName)
This method is used to ignore case in an ORDER BY clause.
|
static void |
lockTable(java.sql.Connection con,
java.lang.String table) |
static void |
lockTable(java.sql.Connection con,
java.lang.String table,
java.lang.String dbName) |
static boolean |
supportsNativeLimit()
This method is used to check whether the database natively
supports limiting the size of the resultset.
|
static boolean |
supportsNativeLimit(java.lang.String dbName)
This method is used to check whether the database natively
supports limiting the size of the resultset.
|
static boolean |
supportsNativeOffset()
This method is used to check whether the database natively
supports returning results starting at an offset position other
than 0.
|
static boolean |
supportsNativeOffset(java.lang.String dbName)
This method is used to check whether the database natively
supports returning results starting at an offset position other
than 0.
|
static java.lang.String |
toUpperCase(java.lang.String in)
Method following are inheritate from *
com.frameworkset.orm.adapter.DB *
|
static java.lang.String |
toUpperCase(java.lang.String in,
java.lang.String dbName) |
static void |
unlockTable(java.sql.Connection con,
java.lang.String table) |
static void |
unlockTable(java.sql.Connection con,
java.lang.String table,
java.lang.String dbName) |
public static final java.lang.String toUpperCase(java.lang.String in)
public static final java.lang.String getIDMethodType(java.lang.String dbName)
public static final java.lang.String getIDMethodSQL(java.lang.Object obj,
java.lang.String dbName)
public static final void lockTable(java.sql.Connection con,
java.lang.String table,
java.lang.String dbName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static final void unlockTable(java.sql.Connection con,
java.lang.String table,
java.lang.String dbName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static final java.lang.String ignoreCase(java.lang.String in,
java.lang.String dbName)
public static final java.lang.String ignoreCaseInOrderBy(java.lang.String in,
java.lang.String dbName)
in - The string whose case to ignore.public static final boolean supportsNativeLimit(java.lang.String dbName)
public static final boolean supportsNativeOffset(java.lang.String dbName)
public static final boolean escapeText(java.lang.String dbName)
public static final int getLimitStyle(java.lang.String dbName)
public static final java.lang.String getDateString(java.util.Date date,
java.lang.String dbName)
date - the Date to formatpublic static final java.lang.String getBooleanString(java.lang.Boolean b,
java.lang.String dbName)
b - the Boolean to formatpublic static final char getStringDelimiter(java.lang.String dbName)
public static final java.lang.String toUpperCase(java.lang.String in,
java.lang.String dbName)
public static final java.lang.String getIDMethodType()
public static final java.lang.String getIDMethodSQL(java.lang.Object obj)
public static final void lockTable(java.sql.Connection con,
java.lang.String table)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static final void unlockTable(java.sql.Connection con,
java.lang.String table)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static final java.lang.String ignoreCase(java.lang.String in)
public static final java.lang.String ignoreCaseInOrderBy(java.lang.String in)
in - The string whose case to ignore.public static final boolean supportsNativeLimit()
public static final boolean supportsNativeOffset()
public static final boolean escapeText()
public static final int getLimitStyle()
public static final java.lang.String getDateString(java.util.Date date)
date - the Date to formatpublic static final java.lang.String getDateString(java.lang.String date)
public static final java.lang.String getBooleanString(java.lang.Boolean b)
b - the Boolean to formatpublic static final char getStringDelimiter()
public static final java.lang.Object getCharValue(java.sql.ResultSet res,
int i,
java.lang.String value)