public class QueryOrganizer extends QueryOrganizer implements QueryOrganizerI
fieldAliases, fields, isMappingTable, joins, level, rootElement, tableAliases, tables, user
Constructor and Description |
---|
QueryOrganizer(SchemaElementI se,
UserI u,
String level) |
QueryOrganizer(String elementName,
UserI u,
String level) |
Modifier and Type | Method and Description |
---|---|
void |
addField(String xmlPath) |
void |
addSubquery(String xmlPath) |
void |
addSubquery(String key,
DisplayFieldReferenceI df) |
void |
addSubqueryToJoin(String viewName) |
void |
addView(String xmlPath) |
void |
addViewToJoin(String viewName) |
String |
buildJoin()
Builds query which gets all necessary fields from the db for the generation of the Display Fields
(Secured).
|
String |
buildQuery() |
String |
buildQuery(boolean distinct)
The big mamba jamba.
|
static boolean |
CanConnect(String rootElementName,
String foreignElementName)
Is there a direct connection between the two elements?
|
Hashtable |
getAddOns() |
ArrayList |
getAllFields() |
ArrayList |
getAllSubqueries() |
ArrayList |
getAllViews() |
static String |
GetConnectionType(String rootElementName,
String foreignElementName)
'schemaelement','arc','connection','multi-leveled'
|
void |
setAddOns(Hashtable addOns) |
String |
translateStandardizedPath(String xmlPath) |
String |
translateXMLPath(String xmlPath) |
String |
translateXMLPath(String xmlPath,
String tableAlias) |
addDirectField, addFieldToJoin, addFieldToJoin, getArcJoin, getExternalFieldXMLPaths, getFieldAlias, getFieldAlias, getFieldAliass, getFields, getFilterField, getKeys, getLevel, getRootElement, getRootQuery, getRootQuery, getTableAndFieldSQL, GetTableAndFieldSQL, getUser, getWhere, getXPATHforAlias, setFields, setIsMappingTable, setLevel, setRootElement, setUser, setWhere, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRootElement
public QueryOrganizer(String elementName, UserI u, String level) throws ElementNotFoundException
ElementNotFoundException
public QueryOrganizer(SchemaElementI se, UserI u, String level)
public void addSubquery(String key, DisplayFieldReferenceI df)
public void addField(String xmlPath) throws ElementNotFoundException
addField
in interface QueryOrganizerI
addField
in class QueryOrganizer
xmlPath
- ElementNotFoundException
public void addSubquery(String xmlPath) throws ElementNotFoundException
xmlPath
- ElementNotFoundException
public void addView(String xmlPath) throws ElementNotFoundException
xmlPath
- ElementNotFoundException
public void addSubqueryToJoin(String viewName) throws Exception
viewName
- Exception
public void addViewToJoin(String viewName) throws Exception
viewName
- Exception
public String buildJoin() throws Exception
buildJoin
in class QueryOrganizer
Exception
public static boolean CanConnect(String rootElementName, String foreignElementName)
foreignElement
- public static String GetConnectionType(String rootElementName, String foreignElementName)
foreignElement
- public String buildQuery() throws Exception
buildQuery
in interface QueryOrganizerI
buildQuery
in class QueryOrganizer
Exception
public String buildQuery(boolean distinct) throws Exception
distinct
- : should a distinct clause be added to the root of the queryException
public ArrayList getAllFields()
getAllFields
in class QueryOrganizer
public ArrayList getAllViews()
public ArrayList getAllSubqueries()
public Hashtable getAddOns()
public void setAddOns(Hashtable addOns)
addOns
- The addOns to set.public String translateXMLPath(String xmlPath) throws FieldNotFoundException
translateXMLPath
in interface QueryOrganizerI
translateXMLPath
in class QueryOrganizer
FieldNotFoundException
public String translateStandardizedPath(String xmlPath) throws FieldNotFoundException
translateStandardizedPath
in interface QueryOrganizerI
translateStandardizedPath
in class QueryOrganizer
FieldNotFoundException
public String translateXMLPath(String xmlPath, String tableAlias) throws FieldNotFoundException
translateXMLPath
in interface QueryOrganizerI
translateXMLPath
in class QueryOrganizer
FieldNotFoundException
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.