Package org.umlg.sqlg.sql.parse
Class ColumnList
java.lang.Object
org.umlg.sqlg.sql.parse.ColumnList
List of column, managing serialization to SQL
- Author:
- jpmoresmau, pieter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclasssimple column, fully qualified: schema+table+column -
Constructor Summary
ConstructorsConstructorDescriptionColumnList(SqlgGraph graph, boolean drop, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, Map<String, Map<String, PropertyDefinition>> filteredAllTables) build a new empty column list -
Method Summary
Modifier and TypeMethodDescriptionadd(SchemaTable st, String column, int stepDepth, String alias) add a new columnadd(SchemaTable st, String column, int stepDepth, String alias, String aggregateFunction) getAlias(SchemaTableTree stt, String column) get an alias if the column is already in the listgetAlias(SchemaTable st, String column, int stepDepth, String aggregateFunction) get an alias if the column is already in the listgetFor(int stepDepth, SchemaTable schemaTable) getInForeignKeys(int stepDepth, SchemaTable schemaTable) getOutForeignKeys(int stepDepth, SchemaTable schemaTable) org.apache.commons.lang3.tuple.Pair<String,PropertyDefinition> getPropertyDefinition(String alias) voidindexColumns(int startColumnIndex) booleanintreindexColumnsExcludeForeignKey(int startColumnIndex, boolean stackContainsAggregate) voidremoveColumns(SchemaTableTree schemaTableTree) toOuterFromString(String prefix, boolean stackContainsAggregate) toSelectString(boolean partOfDuplicateQuery) toString()
-
Constructor Details
-
Method Details
-
add
public ColumnList.Column add(SchemaTable st, String column, int stepDepth, String alias, String aggregateFunction) -
add
add a new column- Parameters:
st-column-stepDepth-alias-
-
getAlias
get an alias if the column is already in the list- Parameters:
stt-column-- Returns:
-
getAlias
get an alias if the column is already in the list- Parameters:
st-column-stepDepth-- Returns:
-
toSelectString
-
isContainsAggregate
public boolean isContainsAggregate() -
toString
-
getPropertyDefinition
public org.apache.commons.lang3.tuple.Pair<String,PropertyDefinition> getPropertyDefinition(String alias) -
removeColumns
-
toOuterFromString
-
getInForeignKeys
public Map<SchemaTable,List<ColumnList.Column>> getInForeignKeys(int stepDepth, SchemaTable schemaTable) -
getOutForeignKeys
public Map<SchemaTable,List<ColumnList.Column>> getOutForeignKeys(int stepDepth, SchemaTable schemaTable) -
getFor
-
indexColumns
public void indexColumns(int startColumnIndex) -
reindexColumnsExcludeForeignKey
public int reindexColumnsExcludeForeignKey(int startColumnIndex, boolean stackContainsAggregate)
-