|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QuoteStrategy>
org.firebirdsql.jdbc.QuoteStrategy
public enum QuoteStrategy
Strategy for quoting objects (or no quoting in the case of dialect 1).
Enum Constant Summary | |
---|---|
NO_QUOTES
Dialect 1 doesn't support quoting of object names. |
|
QUOTES
Dialect 3 (and 2) supports quoting of object names. |
Method Summary | |
---|---|
abstract java.lang.StringBuffer |
appendQuoted(java.lang.String objectName,
java.lang.StringBuffer sb)
Appends the objectName with (or in the case of dialect 1: without) quotes to sb . |
static QuoteStrategy |
forDialect(int dialect)
Obtain the QuoteStrategy for the specified dialect. |
static QuoteStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QuoteStrategy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QuoteStrategy NO_QUOTES
public static final QuoteStrategy QUOTES
Method Detail |
---|
public static QuoteStrategy[] values()
for (QuoteStrategy c : QuoteStrategy.values()) System.out.println(c);
public static QuoteStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic abstract java.lang.StringBuffer appendQuoted(java.lang.String objectName, java.lang.StringBuffer sb)
objectName
with (or in the case of dialect 1: without) quotes to sb
.
objectName
- The object name to appendsb
- StringBuilder for appending
public static QuoteStrategy forDialect(int dialect)
QuoteStrategy
for the specified dialect.
dialect
- Dialect
QuoteStrategy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |