Package org.ehrbase.aql.sql.queryImpl
Class CompositionAttributeQuery
- java.lang.Object
-
- org.ehrbase.aql.sql.queryImpl.ObjectQuery
-
- org.ehrbase.aql.sql.queryImpl.CompositionAttributeQuery
-
- All Implemented Interfaces:
I_JoinBinder,I_QueryImpl
public class CompositionAttributeQuery extends ObjectQuery implements I_QueryImpl, I_JoinBinder
map an AQL datavalue expression into a SQL fieldCreated by christian on 5/6/2016.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ehrbase.aql.sql.queryImpl.I_QueryImpl
I_QueryImpl.Clause
-
-
Field Summary
Fields Modifier and Type Field Description protected JoinSetupjoinSetup-
Fields inherited from class org.ehrbase.aql.sql.queryImpl.ObjectQuery
context, itemType, jsonDataBlock, pathResolver, serial
-
Fields inherited from interface org.ehrbase.aql.sql.binding.I_JoinBinder
composerRef, COMPOSITION_JOIN, compositionRecordTable, EHR_JOIN, ehrRecordTable, facilityRef, STATUS_JOIN, statusRecordTable, subjectRef, SYSTEM_JOIN, systemRecordTable
-
Fields inherited from interface org.ehrbase.aql.sql.queryImpl.I_QueryImpl
AQL_NODE_ITERATIVE_FUNCTION, AQL_NODE_ITERATIVE_MARKER, AQL_NODE_NAME_PREDICATE_FUNCTION, AQL_NODE_NAME_PREDICATE_MARKER, ENV_AQL_ARRAY_DEPTH, ENV_AQL_ARRAY_IGNORE_NODE
-
-
Constructor Summary
Constructors Constructor Description CompositionAttributeQuery(org.jooq.DSLContext context, PathResolver pathResolver, String serverNodeId, String entry_root, IntrospectService introspectCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsEhrStatus()StringgetJsonbItemPath()booleanisContainsJqueryPath()booleanisJoinComposer()booleanisJoinComposition()booleanisJoinContextFacility()booleanisJoinEhr()booleanisJoinEhrStatus()booleanisJoinEventContext()booleanisJoinSubject()booleanisJoinSystem()org.jooq.Field<?>makeField(String templateId, UUID compositionId, String identifier, I_VariableDefinition variableDefinition, I_QueryImpl.Clause clause)booleanuseFromEntry()true if the expression contains path and then use ENTRY as primary from tableorg.jooq.Field<?>whereField(String templateId, UUID compositionId, String identifier, I_VariableDefinition variableDefinition)-
Methods inherited from class org.ehrbase.aql.sql.queryImpl.ObjectQuery
getItemType, getSerial, inc, isJsonDataBlock, reset
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ehrbase.aql.sql.queryImpl.I_QueryImpl
getItemType, isJsonDataBlock
-
-
-
-
Field Detail
-
joinSetup
protected JoinSetup joinSetup
-
-
Constructor Detail
-
CompositionAttributeQuery
public CompositionAttributeQuery(org.jooq.DSLContext context, PathResolver pathResolver, String serverNodeId, String entry_root, IntrospectService introspectCache)
-
-
Method Detail
-
makeField
public org.jooq.Field<?> makeField(String templateId, UUID compositionId, String identifier, I_VariableDefinition variableDefinition, I_QueryImpl.Clause clause)
- Specified by:
makeFieldin interfaceI_QueryImpl
-
whereField
public org.jooq.Field<?> whereField(String templateId, UUID compositionId, String identifier, I_VariableDefinition variableDefinition)
- Specified by:
whereFieldin interfaceI_QueryImpl
-
isJoinComposition
public boolean isJoinComposition()
-
isJoinEventContext
public boolean isJoinEventContext()
-
isJoinSubject
public boolean isJoinSubject()
-
isJoinEhr
public boolean isJoinEhr()
-
isJoinSystem
public boolean isJoinSystem()
-
isJoinEhrStatus
public boolean isJoinEhrStatus()
-
isJoinComposer
public boolean isJoinComposer()
-
isJoinContextFacility
public boolean isJoinContextFacility()
-
containsEhrStatus
public boolean containsEhrStatus()
-
isContainsJqueryPath
public boolean isContainsJqueryPath()
- Specified by:
isContainsJqueryPathin interfaceI_QueryImpl
-
getJsonbItemPath
public String getJsonbItemPath()
- Specified by:
getJsonbItemPathin interfaceI_QueryImpl
-
useFromEntry
public boolean useFromEntry()
true if the expression contains path and then use ENTRY as primary from table- Returns:
-
-