|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.dewdrop.sql.dialect.Dialect
| Field Summary | |
protected static String |
DEFAULT_CHAR_TOKEN
|
static Dialect |
DEFAULT_DIALECT
|
protected static String |
DEFAULT_NUMERIC_TOKEN
|
protected static String |
DEFAULT_VARBINARY_TOKEN
|
protected static String |
DEFAULT_VARCHAR_TOKEN
|
| Constructor Summary | |
protected |
Dialect()
|
| Method Summary | |
boolean |
equals(Object o)
|
String |
getCloseQuote()
Returns the closing delimiter for a quoted literal string. |
static Dialect |
getDialect(String dialectName)
|
String |
getName()
Returns the name of this dialect. |
String |
getOpenQuote()
Returns the opening delimiter for a quoted literal string. |
String |
getTypeString(SqlDataType type)
Get the name of the database type associated with the given SqlDataType. |
String |
getTypeString(SqlDataType type,
int length,
int precision)
Get the name of the database type associated with the given SqlDataType. |
protected void |
registerColumnType(SqlDataType type,
int capacity,
String name)
Subclasses register a typename for the given type code and maximum column length. |
protected void |
registerColumnType(SqlDataType type,
String name)
Subclasses register a typename for the given type code. |
boolean |
supportsSequences()
Returns whether or not this SQL Dialect supports sequences. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Dialect DEFAULT_DIALECT
protected static final String DEFAULT_CHAR_TOKEN
protected static final String DEFAULT_VARCHAR_TOKEN
protected static final String DEFAULT_VARBINARY_TOKEN
protected static final String DEFAULT_NUMERIC_TOKEN
| Constructor Detail |
protected Dialect()
| Method Detail |
public String getName()
public String getTypeString(SqlDataType type)
throws DialectException
SqlDataType.
type - Sql data type
DialectException - if this Dialect does not support the specified
type.
public String getTypeString(SqlDataType type,
int length,
int precision)
throws DialectException
SqlDataType.
type - Sql data typelength - the length or size of the columnprecision - the precision/scale of the column
DialectException
protected void registerColumnType(SqlDataType type,
int capacity,
String name)
type - Sql data typecapacity - maximum length of database typename - the database type name
protected void registerColumnType(SqlDataType type,
String name)
type - Sql data typename - the database type namepublic boolean supportsSequences()
public String getOpenQuote()
public String getCloseQuote()
public boolean equals(Object o)
public static Dialect getDialect(String dialectName)
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||