|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.d2rq.db.schema.Identifier
public class Identifier
The name of a SQL object, such as a column, table, view, schema, or catalog.
This may include appropriate quotation marks around the identifier.
A SQL identifier must match the "identifier" production in [SQL2].
When comparing identifiers for equality, the comparison rules of [SQL2] must be used.
"A", a and A are all considered equal for purposes of
equals(java.lang.Object)
and compareTo(org.d2rq.db.schema.Identifier)
.
Nested Class Summary | |
---|---|
static class |
Identifier.Parser
|
Method Summary | |
---|---|
int |
compareTo(Identifier o)
|
static Identifier |
create(boolean delimited,
String name)
Caller must ensure that the name is valid. |
static Identifier |
createDelimited(String name)
Caller must ensure that the name is valid. |
static Identifier |
createUndelimited(String name)
Caller must ensure that the name is valid. |
boolean |
equals(Object otherObject)
|
String |
getCanonicalName()
Case-normalized form if case-insensitive. |
String |
getName()
General display name. |
int |
hashCode()
|
boolean |
isDelimited()
Is this a delimited identifier (case-sensitive, written with double-quotes in standard SQL)? |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Identifier createDelimited(String name)
name
- The identifier's name, without delimiters and unescaped
null
if name was nullpublic static Identifier createUndelimited(String name)
name
- The identifier's name, without delimiters and unescaped
null
if name was nullpublic static Identifier create(boolean delimited, String name)
delimited
- Is this a delimited identifier as per SQL spec?name
- The identifier's name, without delimiters and unescaped
null
if name was nullpublic String getName()
public String getCanonicalName()
public boolean isDelimited()
public String toString()
toString
in class Object
public boolean equals(Object otherObject)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(Identifier o)
compareTo
in interface Comparable<Identifier>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |