Package adalid.core.sql
Class QueryTable
java.lang.Object
adalid.core.sql.QueryTable
- Author:
- Jorge Campins
-
Constructor Summary
ConstructorsConstructorDescriptionQueryTable(PersistentEntity entity, int maxDepth, VirtualEntityType virtualEntityType) -
Method Summary
Modifier and TypeMethodDescriptioncontainingQueryTableOf(Property property) booleanbooleancontainsAny(List<Property> properties) getAlias()getContainingQueryTableOf(Property property) intgetDepth()intgetIndex()getJoins()intgetName()getProperty(String sqlAlias) getReferencedJoinsMap(Property property) getReferencedJoinsMap(Primitive primitive) getReferencedJoinsMap(List<Property> referencedColumns) intgetSqlAlias(Property property) getSqlQualifiedName(Property property) getSqlSelectStatement(List<Property> referencedColumns) getSqlSelectStatement(List<Property> referencedColumns, boolean into) getSqlSelectStatement(List<Property> referencedColumns, boolean into, boolean indent) getSqlSelectStatement(List<Property> referencedColumns, boolean into, boolean indent, boolean blobless) getSqlSelectStatement(List<Property> referencedColumns, boolean into, boolean indent, boolean blobless, boolean joinless) intgetTrace()voidmerge(QueryTable anotherQueryTable) voidtoString()
-
Constructor Details
-
QueryTable
-
-
Method Details
-
getEntity
- Returns:
- the _entity
-
getName
- Returns:
- the name
-
getAlias
- Returns:
- the alias
-
getTrace
- Returns:
- the trace message
-
setTrace
- Parameters:
trace- message
-
getPrefix
- Returns:
- the prefix
-
getSuffix
- Returns:
- the suffix
-
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
- Returns:
- the columns
-
getJoins
- Returns:
- the joins
-
getSqlProgrammer
- Returns:
- the sql programmer
-
toString
-
getJoinsMap
- Returns:
- the joins map
-
getReferencedJoinsMap
- Parameters:
primitive- primitive- Returns:
- the referenced joins map
-
getReferencedJoinsMap
- Parameters:
property- property- Returns:
- the referenced joins map
-
getReferencedJoinsMap
- Parameters:
referencedColumns- referenced columns- Returns:
- the referenced joins map
-
containingQueryTableOf
-
contains
-
containsAny
-
getContainingQueryTableOf
-
merge
-
getSqlAlias
-
getProperty
-
getSqlQualifiedName
-
getSqlJoinQualifier
-
getSelectColumnCount
public int getSelectColumnCount() -
getSelectColumnsList
-
getSelectColumnsMap
- Returns:
- the select columns map
-
getSqlSelectStatement
- Returns:
- the SQL statement
-
getSqlSelectStatement
- Parameters:
referencedColumns- referenced columns- Returns:
- the SQL statement
-
getSqlSelectStatement
- Parameters:
referencedColumns- referenced columnsinto- into- Returns:
- the SQL statement
-
getSqlSelectStatement
- Parameters:
referencedColumns- referenced columnsinto- intoindent- indent- Returns:
- the SQL statement
-
getSqlSelectStatement
public String getSqlSelectStatement(List<Property> referencedColumns, boolean into, boolean indent, boolean blobless) - Parameters:
referencedColumns- referenced columnsinto- intoindent- indentblobless- blobless- Returns:
- the SQL statement
-
getSqlSelectStatement
public String getSqlSelectStatement(List<Property> referencedColumns, boolean into, boolean indent, boolean blobless, boolean joinless) - Parameters:
referencedColumns- referenced columnsinto- intoindent- indentblobless- bloblessjoinless- joinless- Returns:
- the SQL statement
-