public class QueryHelper
extends java.lang.Object
Constructor and Description |
---|
QueryHelper() |
Modifier and Type | Method and Description |
---|---|
static QueryStructureExt |
createQueryStructureExt()
Create an empty structure QueryStructureExt all fields are initialize with empty sequences.
|
protected static SelAIDNameUnitId |
createSelAIDNameUnitId(T_LONGLONG aid,
java.lang.String aaName)
Create a SelAIDNameUnitId structure all fields use NONE as Aggregate function.
|
protected static SelAIDNameUnitId |
createSelAIDNameUnitId(T_LONGLONG aid,
java.lang.String aaName,
AggrFunc aggr)
Create a SelAIDNameUnitId structure all fields
|
protected static SelValueExt |
createSelValueExt(T_LONGLONG aid,
java.lang.String aaName,
SelOpcode oper)
Create a SelValueExt structure all fields are filled without the value of
the TS_Union.
|
static T_LONGLONG |
getAidByBaseType(ApplicationStructureValue asv,
java.lang.String beName)
Get the application element id for the first element with the matching base element name (type).
|
protected static java.lang.String |
getAttributeNameByBaseName(ApplicationStructureValue asv,
T_LONGLONG aid,
java.lang.String baName)
Get the attribute name of an defined element by the base attribute name
|
static java.lang.String |
getRelationName(ApplicationStructureValue asv,
T_LONGLONG aid,
T_LONGLONG faid)
Get the relation name from the element points to the target application element.
|
protected static java.lang.String |
getRelationName(ApplicationStructureValue asv,
T_LONGLONG aid,
T_LONGLONG faid,
java.lang.String brName)
Get the relation name from the element points to the target application element.
|
public static T_LONGLONG getAidByBaseType(ApplicationStructureValue asv, java.lang.String beName)
asv
- the application structure value.beName
- the base element name (type).public static java.lang.String getRelationName(ApplicationStructureValue asv, T_LONGLONG aid, T_LONGLONG faid)
asv
- the application structure value.aid
- the application element Id.faid
- the target application element.protected static java.lang.String getRelationName(ApplicationStructureValue asv, T_LONGLONG aid, T_LONGLONG faid, java.lang.String brName)
asv
- the application structure value.aid
- the application element Id.faid
- the target application element.brName
- the name of the base relationprotected static java.lang.String getAttributeNameByBaseName(ApplicationStructureValue asv, T_LONGLONG aid, java.lang.String baName)
asv
- the application structure value.aid
- the application element Id.baName
- the base attribute name.public static QueryStructureExt createQueryStructureExt()
protected static SelValueExt createSelValueExt(T_LONGLONG aid, java.lang.String aaName, SelOpcode oper)
aid
- the application element IdaaName
- the attribute nameoper
- the operationprotected static SelAIDNameUnitId createSelAIDNameUnitId(T_LONGLONG aid, java.lang.String aaName, AggrFunc aggr)
aid
- the application element IdaaName
- the attribute nameaggr
- the aggregate function.protected static SelAIDNameUnitId createSelAIDNameUnitId(T_LONGLONG aid, java.lang.String aaName)
aid
- the application element IdaaName
- the attribute name