|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.tools.JDBC.THD_QueryProcessor
public class THD_QueryProcessor
A SandQueryMessage processor for standard SQL.
AUTOGENERATED FILE, DO NOT EDIT DIRECTLY.
source: declared in build
generator: org.sandev.generator.SQLQueryProcessorGenerator
time: Jul 31, 2008 4:34:17 PM
| Field Summary | |
|---|---|
static java.lang.String |
accountQueryConnector
The static connector phrase for all AccountQuery processing |
static java.lang.String |
accountQueryPreamble
The static preamble for all AccountQuery processing |
static java.lang.String |
dataManagementQueryConnector
The static connector phrase for all DataManagementQuery processing |
static java.lang.String |
dataManagementQueryPreamble
The static preamble for all DataManagementQuery processing |
static java.lang.String |
externalPlanQueryConnector
The static connector phrase for all ExternalPlanQuery processing |
static java.lang.String |
externalPlanQueryPreamble
The static preamble for all ExternalPlanQuery processing |
static java.lang.String |
heapAssociationQueryConnector
The static connector phrase for all HeapAssociationQuery processing |
static java.lang.String |
heapAssociationQueryPreamble
The static preamble for all HeapAssociationQuery processing |
static java.lang.String |
heapAttributesQueryConnector
The static connector phrase for all HeapAttributesQuery processing |
static java.lang.String |
heapAttributesQueryPreamble
The static preamble for all HeapAttributesQuery processing |
static java.lang.String |
planComponentQueryConnector
The static connector phrase for all PlanComponentQuery processing |
static java.lang.String |
planComponentQueryPreamble
The static preamble for all PlanComponentQuery processing |
static java.lang.String |
planQueryConnector
The static connector phrase for all PlanQuery processing |
static java.lang.String |
planQueryPreamble
The static preamble for all PlanQuery processing |
static java.lang.String |
roleQueryConnector
The static connector phrase for all RoleQuery processing |
static java.lang.String |
roleQueryPreamble
The static preamble for all RoleQuery processing |
static java.lang.String |
systemStatusQueryConnector
The static connector phrase for all SystemStatusQuery processing |
static java.lang.String |
systemStatusQueryPreamble
The static preamble for all SystemStatusQuery processing |
static java.lang.String |
taskPhaseQueryConnector
The static connector phrase for all TaskPhaseQuery processing |
static java.lang.String |
taskPhaseQueryPreamble
The static preamble for all TaskPhaseQuery processing |
static java.lang.String |
taskQueryConnector
The static connector phrase for all TaskQuery processing |
static java.lang.String |
taskQueryPreamble
The static preamble for all TaskQuery processing |
static java.lang.String |
taskTypeQueryConnector
The static connector phrase for all TaskTypeQuery processing |
static java.lang.String |
taskTypeQueryPreamble
The static preamble for all TaskTypeQuery processing |
| Constructor Summary | |
|---|---|
THD_QueryProcessor()
|
|
| Method Summary | |
|---|---|
static void |
debug(org.sandev.basics.DataManager.DataManagerNode dm,
java.lang.String text)
Debug dump the given text |
static org.sandev.TaskHeap.sandmessages.AccountCollection |
doAccountQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.AccountQuery query)
Process a AccountQuery. |
static org.sandev.TaskHeap.sandmessages.DataManagementCollection |
doDataManagementQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.DataManagementQuery query)
Process a DataManagementQuery. |
static org.sandev.TaskHeap.sandmessages.ExternalPlanCollection |
doExternalPlanQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.ExternalPlanQuery query)
Process a ExternalPlanQuery. |
static org.sandev.TaskHeap.sandmessages.HeapAssociationCollection |
doHeapAssociationQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.HeapAssociationQuery query)
Process a HeapAssociationQuery. |
static org.sandev.TaskHeap.sandmessages.HeapAttributesCollection |
doHeapAttributesQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.HeapAttributesQuery query)
Process a HeapAttributesQuery. |
static org.sandev.TaskHeap.sandmessages.PlanComponentCollection |
doPlanComponentQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.PlanComponentQuery query)
Process a PlanComponentQuery. |
static org.sandev.TaskHeap.sandmessages.PlanCollection |
doPlanQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.PlanQuery query)
Process a PlanQuery. |
static org.sandev.basics.structs.SandCollectionMessage |
doQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.basics.structs.SandQueryMessage query)
Process the specified query and return the result. |
static org.sandev.TaskHeap.sandmessages.RoleCollection |
doRoleQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.RoleQuery query)
Process a RoleQuery. |
static org.sandev.TaskHeap.sandmessages.SystemStatusCollection |
doSystemStatusQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.SystemStatusQuery query)
Process a SystemStatusQuery. |
static org.sandev.TaskHeap.sandmessages.TaskPhaseCollection |
doTaskPhaseQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.TaskPhaseQuery query)
Process a TaskPhaseQuery. |
static org.sandev.TaskHeap.sandmessages.TaskCollection |
doTaskQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.TaskQuery query)
Process a TaskQuery. |
static org.sandev.TaskHeap.sandmessages.TaskTypeCollection |
doTaskTypeQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.TaskTypeQuery query)
Process a TaskTypeQuery. |
static java.lang.String |
formatNumber(double dbl)
All numbers come out of the StreamTokenizer as a double value, which doesn't help for matching because looking for 1.0 when the field is an integer type is generally illegal. |
static org.sandev.TaskHeap.sandmessages.AccountCollection |
getAccountCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a AccountCollection for it. |
static java.lang.String |
getAccountPrefixedAttr(java.lang.String attr)
Prefix a Account attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getAccountSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getAccountSQL method and subselect processing |
static void |
getAccountSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a AccountQuery, return the SQL for it. |
protected static java.lang.String |
getAggregateFunctionSQL(org.sandev.basics.structs.SandQueryMessage query)
Return the select clause of the aggregate query, or null if anything is wrong. |
static org.sandev.TaskHeap.sandmessages.DataManagementCollection |
getDataManagementCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a DataManagementCollection for it. |
static java.lang.String |
getDataManagementPrefixedAttr(java.lang.String attr)
Prefix a DataManagement attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getDataManagementSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getDataManagementSQL method and subselect processing |
static void |
getDataManagementSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a DataManagementQuery, return the SQL for it. |
static org.sandev.TaskHeap.sandmessages.ExternalPlanCollection |
getExternalPlanCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a ExternalPlanCollection for it. |
static java.lang.String |
getExternalPlanPrefixedAttr(java.lang.String attr)
Prefix a ExternalPlan attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getExternalPlanSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getExternalPlanSQL method and subselect processing |
static void |
getExternalPlanSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a ExternalPlanQuery, return the SQL for it. |
static org.sandev.TaskHeap.sandmessages.HeapAssociationCollection |
getHeapAssociationCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a HeapAssociationCollection for it. |
static java.lang.String |
getHeapAssociationPrefixedAttr(java.lang.String attr)
Prefix a HeapAssociation attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getHeapAssociationSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getHeapAssociationSQL method and subselect processing |
static void |
getHeapAssociationSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a HeapAssociationQuery, return the SQL for it. |
static org.sandev.TaskHeap.sandmessages.HeapAttributesCollection |
getHeapAttributesCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a HeapAttributesCollection for it. |
static java.lang.String |
getHeapAttributesPrefixedAttr(java.lang.String attr)
Prefix a HeapAttributes attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getHeapAttributesSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getHeapAttributesSQL method and subselect processing |
static void |
getHeapAttributesSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a HeapAttributesQuery, return the SQL for it. |
static org.sandev.TaskHeap.sandmessages.PlanCollection |
getPlanCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a PlanCollection for it. |
static org.sandev.TaskHeap.sandmessages.PlanComponentCollection |
getPlanComponentCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a PlanComponentCollection for it. |
static java.lang.String |
getPlanComponentPrefixedAttr(java.lang.String attr)
Prefix a PlanComponent attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getPlanComponentSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getPlanComponentSQL method and subselect processing |
static void |
getPlanComponentSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a PlanComponentQuery, return the SQL for it. |
static java.lang.String |
getPlanPrefixedAttr(java.lang.String attr)
Prefix a Plan attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getPlanSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getPlanSQL method and subselect processing |
static void |
getPlanSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a PlanQuery, return the SQL for it. |
static org.sandev.TaskHeap.sandmessages.RoleCollection |
getRoleCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a RoleCollection for it. |
static java.lang.String |
getRolePrefixedAttr(java.lang.String attr)
Prefix a Role attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getRoleSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getRoleSQL method and subselect processing |
static void |
getRoleSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a RoleQuery, return the SQL for it. |
protected static java.io.StreamTokenizer |
getStreamToker(java.io.BufferedReader in)
Factored method to return a new StreamTokenizer |
static org.sandev.TaskHeap.sandmessages.SystemStatusCollection |
getSystemStatusCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a SystemStatusCollection for it. |
static java.lang.String |
getSystemStatusPrefixedAttr(java.lang.String attr)
Prefix a SystemStatus attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getSystemStatusSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getSystemStatusSQL method and subselect processing |
static void |
getSystemStatusSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a SystemStatusQuery, return the SQL for it. |
static org.sandev.TaskHeap.sandmessages.TaskCollection |
getTaskCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a TaskCollection for it. |
static org.sandev.TaskHeap.sandmessages.TaskPhaseCollection |
getTaskPhaseCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a TaskPhaseCollection for it. |
static java.lang.String |
getTaskPhasePrefixedAttr(java.lang.String attr)
Prefix a TaskPhase attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getTaskPhaseSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getTaskPhaseSQL method and subselect processing |
static void |
getTaskPhaseSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a TaskPhaseQuery, return the SQL for it. |
static java.lang.String |
getTaskPrefixedAttr(java.lang.String attr)
Prefix a Task attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getTaskSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getTaskSQL method and subselect processing |
static void |
getTaskSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a TaskQuery, return the SQL for it. |
static org.sandev.TaskHeap.sandmessages.TaskTypeCollection |
getTaskTypeCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
Given a result set, return a TaskTypeCollection for it. |
static java.lang.String |
getTaskTypePrefixedAttr(java.lang.String attr)
Prefix a TaskType attribute appropriately so that the resulting WHERE clause is unambiguous. |
static void |
getTaskTypeSQL(java.lang.StringBuffer buf,
java.util.List list)
Workhorse method for the general getTaskTypeSQL method and subselect processing |
static void |
getTaskTypeSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
Given a TaskTypeQuery, return the SQL for it. |
protected static boolean |
handleClassSubselect(java.lang.String fieldspec,
java.lang.StringBuffer buf,
java.util.List clauses)
For each entry in the clauses that specifies a class, create an appropriate subselect clause. |
protected static long[] |
loadRefArray(java.lang.String tableName,
java.lang.String parentField,
java.lang.String childField,
java.lang.String indexField,
long parentID,
java.sql.Connection conn)
Given the name of the array relation, retrieve the child references. |
static java.lang.String |
matchExprToSQL(java.lang.String attr,
java.lang.String val)
Setup for work |
static java.lang.String |
matchExprToSQLWork(java.lang.String attr,
java.io.StreamTokenizer st)
Convert the specified expression into a SQL statement. |
protected static void |
securityCheckValue(java.lang.String value)
Make sure the given value isn't some kind of embedded SQL call trying to hack around in the db. |
protected static void |
setFunctionResult(org.sandev.basics.structs.SandCollectionMessage coll,
org.sandev.basics.structs.SandQueryMessage query,
java.sql.ResultSet rs)
Set the result field in the collection based on the fields from the query and the result we got back. |
static java.lang.String |
wordquote(java.lang.String word)
This method would still be necessary if we were using the parameter substitution in a prepared statement. |
protected static boolean |
writeClassSubselect(java.lang.String fieldspec,
java.lang.StringBuffer buf,
java.lang.String classname,
java.util.List subclause)
Write a subselect for the given class, matching on the attribute and value specified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String accountQueryPreamble
public static final java.lang.String accountQueryConnector
public static final java.lang.String dataManagementQueryPreamble
public static final java.lang.String dataManagementQueryConnector
public static final java.lang.String externalPlanQueryPreamble
public static final java.lang.String externalPlanQueryConnector
public static final java.lang.String heapAssociationQueryPreamble
public static final java.lang.String heapAssociationQueryConnector
public static final java.lang.String heapAttributesQueryPreamble
public static final java.lang.String heapAttributesQueryConnector
public static final java.lang.String planComponentQueryPreamble
public static final java.lang.String planComponentQueryConnector
public static final java.lang.String planQueryPreamble
public static final java.lang.String planQueryConnector
public static final java.lang.String roleQueryPreamble
public static final java.lang.String roleQueryConnector
public static final java.lang.String systemStatusQueryPreamble
public static final java.lang.String systemStatusQueryConnector
public static final java.lang.String taskPhaseQueryPreamble
public static final java.lang.String taskPhaseQueryConnector
public static final java.lang.String taskQueryPreamble
public static final java.lang.String taskQueryConnector
public static final java.lang.String taskTypeQueryPreamble
public static final java.lang.String taskTypeQueryConnector
| Constructor Detail |
|---|
public THD_QueryProcessor()
| Method Detail |
|---|
public static org.sandev.basics.structs.SandCollectionMessage doQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.basics.structs.SandQueryMessage query)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.AccountCollection doAccountQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.AccountQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getAccountSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getAccountSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getAccountPrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.AccountCollection getAccountCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.DataManagementCollection doDataManagementQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.DataManagementQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getDataManagementSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getDataManagementSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getDataManagementPrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.DataManagementCollection getDataManagementCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.ExternalPlanCollection doExternalPlanQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.ExternalPlanQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getExternalPlanSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getExternalPlanSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getExternalPlanPrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.ExternalPlanCollection getExternalPlanCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.HeapAssociationCollection doHeapAssociationQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.HeapAssociationQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getHeapAssociationSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getHeapAssociationSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getHeapAssociationPrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.HeapAssociationCollection getHeapAssociationCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.HeapAttributesCollection doHeapAttributesQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.HeapAttributesQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getHeapAttributesSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getHeapAttributesSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getHeapAttributesPrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.HeapAttributesCollection getHeapAttributesCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.PlanComponentCollection doPlanComponentQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.PlanComponentQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getPlanComponentSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getPlanComponentSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getPlanComponentPrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.PlanComponentCollection getPlanComponentCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.PlanCollection doPlanQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.PlanQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getPlanSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getPlanSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getPlanPrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.PlanCollection getPlanCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.RoleCollection doRoleQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.RoleQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getRoleSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getRoleSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getRolePrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.RoleCollection getRoleCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.SystemStatusCollection doSystemStatusQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.SystemStatusQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getSystemStatusSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getSystemStatusSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getSystemStatusPrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.SystemStatusCollection getSystemStatusCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.TaskPhaseCollection doTaskPhaseQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.TaskPhaseQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getTaskPhaseSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getTaskPhaseSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getTaskPhasePrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.TaskPhaseCollection getTaskPhaseCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.TaskCollection doTaskQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.TaskQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getTaskSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getTaskSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getTaskPrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.TaskCollection getTaskCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static org.sandev.TaskHeap.sandmessages.TaskTypeCollection doTaskTypeQuery(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.Connection conn,
org.sandev.TaskHeap.sandmessages.TaskTypeQuery query)
throws java.sql.SQLException
java.sql.SQLException
public static void getTaskTypeSQL(java.lang.StringBuffer buf,
java.util.List list,
int orderSense,
long uidAfter)
throws java.sql.SQLException
java.sql.SQLException
public static void getTaskTypeSQL(java.lang.StringBuffer buf,
java.util.List list)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getTaskTypePrefixedAttr(java.lang.String attr)
public static org.sandev.TaskHeap.sandmessages.TaskTypeCollection getTaskTypeCollection(org.sandev.basics.DataManager.DataManagerNode dm,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
protected static boolean handleClassSubselect(java.lang.String fieldspec,
java.lang.StringBuffer buf,
java.util.List clauses)
throws java.sql.SQLException
If FooStruct has-a BarStruct reference mybar, and BazStruct extends BarStruct adding an int field called age, then you can query for Foos having a Baz with age > 18 with FooQuery matchInfo like:
"mybar._class.Baz.age", "> 18"
This will probably become a standard part of the match expression, and we'll update the SandQueryMessage description to mention it. For now we want to give this some time before that to make sure it is the right solution. There are security implications here also which should be mentioned in the AuthFilter.messageInstanceAccess description. What classes can be specified explicitely under what circumstances should be authorized.
This method returns true if a subselect was written, false otherwise. This is to allow the caller to handle AND conjunctions in the total SQL being produced.
java.sql.SQLException
protected static boolean writeClassSubselect(java.lang.String fieldspec,
java.lang.StringBuffer buf,
java.lang.String classname,
java.util.List subclause)
throws java.sql.SQLException
java.sql.SQLException
protected static long[] loadRefArray(java.lang.String tableName,
java.lang.String parentField,
java.lang.String childField,
java.lang.String indexField,
long parentID,
java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLExceptionprotected static java.io.StreamTokenizer getStreamToker(java.io.BufferedReader in)
public static java.lang.String matchExprToSQL(java.lang.String attr,
java.lang.String val)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String wordquote(java.lang.String word)
public static java.lang.String formatNumber(double dbl)
public static java.lang.String matchExprToSQLWork(java.lang.String attr,
java.io.StreamTokenizer st)
throws java.io.IOException
>= 0 AND <= 12
turns into
attr >= 0 AND attr <= 12
The operators we pick up on are <, <=, >, >=, =, !=
That means that '<', '>', are potential prefixes, '!' is always a
prefix, '=' is always a terminal, and a word is always a terminal.
If only a value is given, then operator = is assumed. This only has
to support cases where only a value is given.
java.io.IOException
protected static void securityCheckValue(java.lang.String value)
throws java.sql.SQLException
java.sql.SQLExceptionprotected static java.lang.String getAggregateFunctionSQL(org.sandev.basics.structs.SandQueryMessage query)
protected static void setFunctionResult(org.sandev.basics.structs.SandCollectionMessage coll,
org.sandev.basics.structs.SandQueryMessage query,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static void debug(org.sandev.basics.DataManager.DataManagerNode dm,
java.lang.String text)
| ||