Class OIdentifier
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OIdentifier
- All Implemented Interfaces:
Node
This class is used to represent all the indentifies in the SQL grammar, ie. class names, property
names, index names, variables and so on so forth.
Instances of this class are immutable and can be recycled multiple times in the same or in different queries.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanset to true by the query executor/optimizer for internally generated aliases for query optimizationFields inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
children, firstToken, id, lastToken, PARAMETER_PLACEHOLDER, parent, parser -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOIdentifier(int id) OIdentifier(OIdentifier copyFrom, boolean quoted) OIdentifier(OrientSql p, int id) OIdentifier(String content) -
Method Summary
Modifier and TypeMethodDescriptioncopy()static OIdentifierdeserialize(OResult fromResult) booleanreturns the plain string representation of this identifier, with quoting removed from back-ticksgetValue()returns the value as is, with back-ticks quoted with backslashinthashCode()booleanbooleanvoidsetQuotedValue(String value) voidaccepts a plain value.voidtoGenericStatement(StringBuilder builder) toString()voidtoString(Map<Object, Object> params, StringBuilder builder) Methods inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toGenericStatement
-
Field Details
-
internalAlias
protected boolean internalAliasset to true by the query executor/optimizer for internally generated aliases for query optimization
-
-
Constructor Details
-
OIdentifier
-
OIdentifier
-
OIdentifier
protected OIdentifier(int id) -
OIdentifier
-
-
Method Details
-
deserialize
-
getValue
returns the value as is, with back-ticks quoted with backslash- Overrides:
getValuein classSimpleNode- Returns:
-
setValue
accepts a plain value. Back-ticks have to be quoted.- Parameters:
value-
-
setQuotedValue
-
getStringValue
returns the plain string representation of this identifier, with quoting removed from back-ticks- Returns:
-
refersToParent
public boolean refersToParent() -
toString
- Overrides:
toStringin classSimpleNode
-
toString
- Overrides:
toStringin classSimpleNode
-
toString
- Specified by:
toStringin classSimpleNode
-
toGenericStatement
- Specified by:
toGenericStatementin classSimpleNode
-
copy
- Overrides:
copyin classSimpleNode
-
equals
-
hashCode
public int hashCode() -
serialize
-
isEarlyCalculated
-