Class QueryTable

java.lang.Object
adalid.core.sql.QueryTable

public class QueryTable extends Object
Author:
Jorge Campins
  • Constructor Details

  • Method Details

    • getEntity

      public PersistentEntity getEntity()
      Returns:
      the _entity
    • getName

      public String getName()
      Returns:
      the name
    • getAlias

      public String getAlias()
      Returns:
      the alias
    • getTrace

      public String getTrace()
      Returns:
      the trace message
    • setTrace

      public void setTrace(String trace)
      Parameters:
      trace - message
    • getPrefix

      public String getPrefix()
      Returns:
      the prefix
    • getSuffix

      public String getSuffix()
      Returns:
      the suffix
    • getVirtualEntityType

      public VirtualEntityType getVirtualEntityType()
      Returns:
      the virtual entity type
    • getMaxDepth

      public int getMaxDepth()
      Returns:
      the max depth
    • getDepth

      public int getDepth()
      Returns:
      the depth
    • getIndex

      public int getIndex()
      Returns:
      the index
    • getSubqueryIndex

      public int getSubqueryIndex()
      Returns:
      the subquery index
    • getColumns

      public List<Property> getColumns()
      Returns:
      the columns
    • getJoins

      public List<QueryJoin> getJoins()
      Returns:
      the joins
    • getSqlProgrammer

      public SqlProgrammer getSqlProgrammer()
      Returns:
      the sql programmer
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getJoinsMap

      public Map<String,QueryJoin> getJoinsMap()
      Returns:
      the joins map
    • getReferencedJoinsMap

      public Map<String,QueryJoin> getReferencedJoinsMap(Primitive primitive)
      Parameters:
      primitive - primitive
      Returns:
      the referenced joins map
    • getReferencedJoinsMap

      public Map<String,QueryJoin> getReferencedJoinsMap(Property property)
      Parameters:
      property - property
      Returns:
      the referenced joins map
    • getReferencedJoinsMap

      public Map<String,QueryJoin> getReferencedJoinsMap(List<Property> referencedColumns)
      Parameters:
      referencedColumns - referenced columns
      Returns:
      the referenced joins map
    • containingQueryTableOf

      public QueryTable containingQueryTableOf(Property property)
    • contains

      public boolean contains(Property property)
    • containsAny

      public boolean containsAny(List<Property> properties)
    • getContainingQueryTableOf

      public QueryTable getContainingQueryTableOf(Property property)
    • merge

      public void merge(QueryTable anotherQueryTable)
    • getSqlAlias

      public String getSqlAlias(Property property)
    • getProperty

      public Property getProperty(String sqlAlias)
    • getSqlQualifiedName

      public String getSqlQualifiedName(Property property)
    • getSqlJoinQualifier

      public String getSqlJoinQualifier()
    • getSelectColumnCount

      public int getSelectColumnCount()
    • getSelectColumnsList

      public List<Property> getSelectColumnsList()
    • getSelectColumnsMap

      public Map<String,Property> getSelectColumnsMap()
      Returns:
      the select columns map
    • getSqlSelectStatement

      public String getSqlSelectStatement()
      Returns:
      the SQL statement
    • getSqlSelectStatement

      public String getSqlSelectStatement(List<Property> referencedColumns)
      Parameters:
      referencedColumns - referenced columns
      Returns:
      the SQL statement
    • getSqlSelectStatement

      public String getSqlSelectStatement(List<Property> referencedColumns, boolean into)
      Parameters:
      referencedColumns - referenced columns
      into - into
      Returns:
      the SQL statement
    • getSqlSelectStatement

      public String getSqlSelectStatement(List<Property> referencedColumns, boolean into, boolean indent)
      Parameters:
      referencedColumns - referenced columns
      into - into
      indent - indent
      Returns:
      the SQL statement
    • getSqlSelectStatement

      public String getSqlSelectStatement(List<Property> referencedColumns, boolean into, boolean indent, boolean blobless)
      Parameters:
      referencedColumns - referenced columns
      into - into
      indent - indent
      blobless - blobless
      Returns:
      the SQL statement
    • getSqlSelectStatement

      public String getSqlSelectStatement(List<Property> referencedColumns, boolean into, boolean indent, boolean blobless, boolean joinless)
      Parameters:
      referencedColumns - referenced columns
      into - into
      indent - indent
      blobless - blobless
      joinless - joinless
      Returns:
      the SQL statement