@GwtCompatible
public class ColumnAlias
extends java.lang.Object
Immutable bean representing the column dot notation and it's alias.
An instance can only be obtain by using the helper class QueryBuilder.Selector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCAL_PART |
static javax.xml.namespace.QName |
QNAME |
Modifier | Constructor and Description |
---|---|
protected |
ColumnAlias()
Initializes a newly created
ColumnAlias object |
|
ColumnAlias(ColumnAlias ca)
Copy constructor
|
protected |
ColumnAlias(java.lang.String field,
java.lang.String alias)
Constructs a new
ColumnAlias for a field with the given alias name |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.StringBuilder |
appendForToString(java.lang.StringBuilder sb,
java.lang.String field,
java.lang.String alias)
Helper function which appends the alias info to a given
StringBuilder |
protected boolean |
canEquals(java.lang.Object obj)
Checks if this instance can compare against the given object.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlias()
Returns the column's alias name
|
java.lang.String |
getField()
Returns the field name
|
int |
hashCode() |
java.lang.String |
toString() |
public static final java.lang.String LOCAL_PART
public static final javax.xml.namespace.QName QNAME
protected ColumnAlias()
ColumnAlias
objectprotected ColumnAlias(java.lang.String field, java.lang.String alias)
ColumnAlias
for a field with the given alias namefield
- a field namealias
- an alias name for this columnpublic ColumnAlias(ColumnAlias ca)
ca
- a ColumnAlias
public java.lang.String getField()
public java.lang.String getAlias()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected boolean canEquals(java.lang.Object obj)
obj
- an Object
instanceof
this class.public java.lang.String toString()
toString
in class java.lang.Object
protected static java.lang.StringBuilder appendForToString(java.lang.StringBuilder sb, java.lang.String field, java.lang.String alias)
StringBuilder
sb
- a StringBuilder
field
- a field namealias
- an alias nameStringBuilder
by appending the alias infoCopyright © 2003-2024 Appian Corporation. All Rights Reserved.