public class TableAlias extends Named
Modifier and Type | Class and Description |
---|---|
class |
TableAlias.FieldSelectionAlias<E> |
Constructor and Description |
---|
TableAlias(StoredTableSchema table,
java.lang.String alias)
Creates a table alias that will query all fields for the table
|
Modifier and Type | Method and Description |
---|---|
<E> void |
addFieldSelection(StoredFieldSchema<E> selectedfield,
java.lang.String alias)
specifies the field to display in the query for the alias.
|
TableAlias.FieldSelectionAlias[] |
getFieldSelection()
gives all field selection aliases
|
StoredTableSchema |
getTable()
gets the table in this alias
|
boolean |
queryAllFields()
tells if this table alias will query all fields
|
java.lang.String |
toString() |
changeName, cleanName, equals, getName
public TableAlias(StoredTableSchema table, java.lang.String alias)
table
- the table schemaalias
- the alias inside the querypublic StoredTableSchema getTable()
public <E> void addFieldSelection(StoredFieldSchema<E> selectedfield, java.lang.String alias)
selectedfield
- the field to add in the queryalias
- aliasfor the fieldpublic boolean queryAllFields()
public TableAlias.FieldSelectionAlias[] getFieldSelection()
public java.lang.String toString()
toString
in class java.lang.Object