|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.instantbank.component.job.util.AuxGenerateSQLtext
Auxiliary Class that supports SQL sentence generation
Field Summary | |
private Debug |
debug
|
private java.lang.String |
rootType
fixed rootType for systemAlias and systemFields attributes |
private java.util.Hashtable |
systemAlias
memory representation of system alias key: tableAlias (String), value: Alias element |
private java.util.Hashtable |
systemFields
memory representation of system fields for current company key: fieldIdLong (Long), value: Field element |
Constructor Summary | |
AuxGenerateSQLtext(java.util.Hashtable systemFields,
java.util.Hashtable systemAlias,
java.lang.String rootType)
Constructor for the AuxGenerateSQLtext object |
Method Summary | |
java.lang.String |
alias(long fieldId)
Finds tableAlias corresponding to a fieldId |
java.lang.String |
beginSELECT()
Builds beginning of SELECT part according to rootType |
JoinElement |
buildJoinElement(java.lang.String alias)
Builds a JoinElement corresponding to an alias |
java.lang.String |
builtTable(java.lang.String alias)
Finds builtTable corresponding to an alias |
java.lang.String |
category(java.lang.String alias)
Finds fieldCategory corresponding to an alias |
java.lang.String |
direction(java.lang.String direction)
Tranforms a direction of DatabaseNames.LETT_JOB_ORDER in a SQL direction |
java.lang.String |
endWHERE(java.lang.String companyId)
Builds ending condition of WHERE part according to rootType |
java.lang.String |
fieldColumn(long fieldId)
Finds fieldColumn corresponding to a fieldId |
int |
findAlias(java.util.ArrayList participantTables,
java.lang.String alias)
Finds index of alias in the list of participant tables of the job SQL sentence |
int |
findParent(java.util.ArrayList joinList,
java.lang.String alias)
Finds index of parent of an alias in the join list of the job SQL sentence |
java.lang.String |
parentTableAlias(java.lang.String alias)
Finds ParentTableAlias corresponding to an alias |
java.lang.String |
realTable(java.lang.String alias)
Finds realTable corresponding to an alias |
java.lang.String |
rename(long fieldId)
Builds output name of a field in the SELECT |
java.lang.String |
rootParticipant()
Finds tableAlias of root table according to rootType |
java.lang.String |
value(java.lang.String value,
java.lang.String ruleOperator,
long fieldId)
Tranforms a value of DatabaseNames.LETT_JOB_WHERE in a SQL value |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String rootType
private java.util.Hashtable systemAlias
private java.util.Hashtable systemFields
private Debug debug
Constructor Detail |
public AuxGenerateSQLtext(java.util.Hashtable systemFields, java.util.Hashtable systemAlias, java.lang.String rootType)
systemFields
- values of system fields for current companysystemAlias
- values of system aliasrootType
- fixed rootType for systemAlias and systemFieldsMethod Detail |
public java.lang.String beginSELECT()
public java.lang.String alias(long fieldId)
fieldId
- unique code of fieldpublic java.lang.String fieldColumn(long fieldId)
fieldId
- unique code of fieldpublic java.lang.String rename(long fieldId)
fieldId
- unique code of fieldpublic java.lang.String rootParticipant()
public int findAlias(java.util.ArrayList participantTables, java.lang.String alias)
participantTables
- list of participant tables in the
job SQL sentence;
elements of type ParticipantTablealias
- table alias to searchpublic JoinElement buildJoinElement(java.lang.String alias)
alias
- name of table aliaspublic int findParent(java.util.ArrayList joinList, java.lang.String alias)
joinList
- join list of the job SQL sentence;
elements of type JoinElementalias
- name of table aliaspublic java.lang.String parentTableAlias(java.lang.String alias)
alias
- name of table aliaspublic java.lang.String value(java.lang.String value, java.lang.String ruleOperator, long fieldId)
value
- value of a job where conditionruleOperator
- ruleOperator of the job where conditionfieldId
- fieldId corresponding to valuepublic java.lang.String endWHERE(java.lang.String companyId)
companyId
- current companypublic java.lang.String category(java.lang.String alias)
alias
- name of table aliaspublic java.lang.String realTable(java.lang.String alias)
alias
- name of table aliaspublic java.lang.String builtTable(java.lang.String alias)
alias
- name of table alias of
fieldCategory == LetterTemplateGlobals.TEMPORAL_FIELDSpublic java.lang.String direction(java.lang.String direction)
direction
- direction of a job order element:
"ascending" or "descending"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |