public class QuotedID extends Object
An identifier can be in quotation marks (to preserve the case etc.). Quotation, however, is ignored when identifiers are compared
| Modifier and Type | Field and Description |
|---|---|
static QuotedID |
EMPTY_ID |
static String |
NO_QUOTATION |
| Modifier | Constructor and Description |
|---|---|
protected |
QuotedID(String id,
String quoteString)
(used only in QuotedIDFactory implementations)
|
protected |
QuotedID(String id,
String quoteString,
boolean caseSensitive) |
| Modifier and Type | Method and Description |
|---|---|
static QuotedID |
createIdFromDatabaseRecord(QuotedIDFactory idfac,
String s)
creates attribute ID from the database record (as though it is a quoted name)
|
boolean |
equals(Object obj)
compares two identifiers ignoring quotation
|
String |
getName()
returns the identifier (stripped of quotation marks)
|
String |
getSQLRendering()
returns SQL rendering of the identifier, in quotes, if necessary
|
int |
hashCode() |
String |
toString() |
public static final String NO_QUOTATION
public static final QuotedID EMPTY_ID
protected QuotedID(String id, String quoteString)
id - can be nullquoteString - cannot be null (the empty string stands for no quotation, as in getIdentifierQuoteString)public static QuotedID createIdFromDatabaseRecord(QuotedIDFactory idfac, String s)
s - public String getName()
public String getSQLRendering()
public boolean equals(Object obj)
Copyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.