Package adalid.core.sql
Class QueryTable
- java.lang.Object
-
- adalid.core.sql.QueryTable
-
public class QueryTable extends Object
- Author:
- Jorge Campins
-
-
Constructor Summary
Constructors Constructor Description QueryTable(PersistentEntity entity, int maxDepth, VirtualEntityType virtualEntityType)
-
Method Summary
-
-
-
Constructor Detail
-
QueryTable
public QueryTable(PersistentEntity entity, int maxDepth, VirtualEntityType virtualEntityType)
-
-
Method Detail
-
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
-
getSqlProgrammer
public SqlProgrammer getSqlProgrammer()
- Returns:
- the sql programmer
-
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)
-
getContainingQueryTableOf
public QueryTable getContainingQueryTableOf(Property property)
-
merge
public void merge(QueryTable anotherQueryTable)
-
getSqlJoinQualifier
public String getSqlJoinQualifier()
-
getSelectColumnCount
public int getSelectColumnCount()
-
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 columnsinto- into- Returns:
- the SQL statement
-
-