wt.query.specification
Class DefaultQueryWriter

java.lang.Object
  extended bywt.query.specification.DefaultQueryWriter
All Implemented Interfaces:
QueryWriter

public class DefaultQueryWriter
extends Object
implements QueryWriter



Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static boolean IS_HIERARCHICAL_DEFINITION_ALLOWED
           
private  Hashtable queryHashtable
           
private static String RESOURCE
           
protected  boolean rootUseReferenceable
          This boolean is used to specify if the an appendSelectReference has been done on the ReferenceValue table with a referenceable reference on a root element
private  Hashtable useRefHashtable
           
private static boolean VERBOSE_DEV
           
 
Constructor Summary
DefaultQueryWriter()
           
 
Method Summary
protected  SearchCondition getDefinitionInstancedAttributeSearchCondition(Class a_class, String a_label, String a_hierarchy_id, boolean is_descend)
          

Supported API: false
protected  SearchCondition getDependencyInstancedAttributeSearchCondition(ClassSearchSpec a_selection, AttributeSearchExp an_expression)
          

Supported API: false
protected  StatementSpec getDependentStatementSpec(ClassSearchSpec a_selection, AttributeSearchExp an_expression, Boolean use_reference, boolean a_is_direct_dependency)
          

Supported API: false
protected  SearchCondition getHolderClassInstancedAttributeSearchCondition(Class a_class, String a_classname)
          

Supported API: false
protected  SearchCondition getLatestIterationSearchCondition(ClassSearchSpec a_selection)
          

Supported API: false
protected  SearchCondition getModeledAttributeSearchCondition(ClassSearchSpec a_selection, AttributeSearchExp an_expression)
          

Supported API: false
private  WhereExpression getModeledAttributeWhereExpression(ClassSearchSpec a_selection, AttributeSearchExp an_expression)
           
 Object getQueryObjectResult(SearchSpecification a_search_spec)
          

Supported API: false
protected  QuerySpec getQuerySpec(SelectionSearchSpec a_selection)
          

Supported API: false
protected  StatementSpec getResultStatementSpec(ResultSpecification a_result_specification, StatementSpec a_statement_spec)
          

Supported API: false
protected  RelationalExpression getRightHandSideExpression(AttributeSearchExp an_expression)
          

Supported API: false
protected  String getSearchConditionOperator(AttributeSearchExp an_expression)
          

Supported API: false
protected  StatementSpec getSortStatementSpec(SortSpecification a_sort_specification, StatementSpec a_statement_spec)
          

Supported API: false
protected  SearchCondition getValueInstancedAttributeSearchCondition(Class a_class, String a_label, AttributeSearchExp an_expression)
          

Supported API: false
 void postQueryObjectProcessing(SearchSpecification a_search_spec)
          

Supported API: false
 void preQueryObjectProcessing(SearchSpecification a_search_spec)
          

Supported API: false
protected  void setupQuerySpec(QuerySpec a_query_spec, AttributeSearchExp an_expression, String a_column, Boolean use_reference)
          

Supported API: false
protected  void setupQuerySpecForInstance(QuerySpec a_query_spec, ClassSearchSpec a_selection, AttributeSearchExp an_expression, String a_column, Boolean use_reference)
          

Supported API: false
 void writeFirstSearchExpression(SelectionSearchSpec a_selection, SearchExpression an_expression)
          

Supported API: false
 void writeFirstSelectionSearchSpec(CriteriaSpecification a_criteria, SelectionSearchSpec a_selection)
          

Supported API: false
 void writeIntermediateSearchExpression(SelectionSearchSpec a_selection, SearchExpression an_expression)
          

Supported API: false
 void writeIntermediateSelectionSearchSpec(CriteriaSpecification a_criteria, SelectionSearchSpec a_selection)
          

Supported API: false
 void writeLastSearchExpression(SelectionSearchSpec a_selection, SearchExpression an_expression)
          

Supported API: false
 void writeLastSelectionSearchSpec(CriteriaSpecification a_criteria, SelectionSearchSpec a_selection)
          

Supported API: false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

queryHashtable

private Hashtable queryHashtable

useRefHashtable

private Hashtable useRefHashtable

rootUseReferenceable

protected boolean rootUseReferenceable
This boolean is used to specify if the an appendSelectReference has been done on the ReferenceValue table with a referenceable reference on a root element


VERBOSE_DEV

private static final boolean VERBOSE_DEV

IS_HIERARCHICAL_DEFINITION_ALLOWED

private static final boolean IS_HIERARCHICAL_DEFINITION_ALLOWED
Constructor Detail

DefaultQueryWriter

public DefaultQueryWriter()
Method Detail

getModeledAttributeSearchCondition

protected SearchCondition getModeledAttributeSearchCondition(ClassSearchSpec a_selection,
                                                             AttributeSearchExp an_expression)


Supported API: false

Parameters:
a_selection -
an_expression -
Returns:
SearchCondition

getLatestIterationSearchCondition

protected SearchCondition getLatestIterationSearchCondition(ClassSearchSpec a_selection)


Supported API: false

Parameters:
a_selection -
Returns:
SearchCondition

getHolderClassInstancedAttributeSearchCondition

protected SearchCondition getHolderClassInstancedAttributeSearchCondition(Class a_class,
                                                                          String a_classname)


Supported API: false

Parameters:
a_class -
a_classname -
Returns:
SearchCondition

getDefinitionInstancedAttributeSearchCondition

protected SearchCondition getDefinitionInstancedAttributeSearchCondition(Class a_class,
                                                                         String a_label,
                                                                         String a_hierarchy_id,
                                                                         boolean is_descend)


Supported API: false

Parameters:
a_class -
a_label -
a_hierarchy_id -
is_descend -
Returns:
SearchCondition

getValueInstancedAttributeSearchCondition

protected SearchCondition getValueInstancedAttributeSearchCondition(Class a_class,
                                                                    String a_label,
                                                                    AttributeSearchExp an_expression)


Supported API: false

Parameters:
a_class -
a_label -
an_expression -
Returns:
SearchCondition

getDependencyInstancedAttributeSearchCondition

protected SearchCondition getDependencyInstancedAttributeSearchCondition(ClassSearchSpec a_selection,
                                                                         AttributeSearchExp an_expression)


Supported API: false

Parameters:
a_selection -
an_expression -
Returns:
SearchCondition

getQuerySpec

protected QuerySpec getQuerySpec(SelectionSearchSpec a_selection)


Supported API: false

Parameters:
a_selection -
Returns:
QuerySpec

setupQuerySpecForInstance

protected void setupQuerySpecForInstance(QuerySpec a_query_spec,
                                         ClassSearchSpec a_selection,
                                         AttributeSearchExp an_expression,
                                         String a_column,
                                         Boolean use_reference)


Supported API: false

Parameters:
a_query_spec -
a_selection -
an_expression -
a_column -
use_reference -

setupQuerySpec

protected void setupQuerySpec(QuerySpec a_query_spec,
                              AttributeSearchExp an_expression,
                              String a_column,
                              Boolean use_reference)


Supported API: false

Parameters:
a_query_spec -
an_expression -
a_column -
use_reference -

getSearchConditionOperator

protected String getSearchConditionOperator(AttributeSearchExp an_expression)


Supported API: false

Parameters:
an_expression -
Returns:
String

getRightHandSideExpression

protected RelationalExpression getRightHandSideExpression(AttributeSearchExp an_expression)


Supported API: false

Parameters:
an_expression -
Returns:
RelationalExpression

getDependentStatementSpec

protected StatementSpec getDependentStatementSpec(ClassSearchSpec a_selection,
                                                  AttributeSearchExp an_expression,
                                                  Boolean use_reference,
                                                  boolean a_is_direct_dependency)


Supported API: false

Parameters:
a_selection -
an_expression -
use_reference -
a_is_direct_dependency -
Returns:
StatementSpec

getSortStatementSpec

protected StatementSpec getSortStatementSpec(SortSpecification a_sort_specification,
                                             StatementSpec a_statement_spec)


Supported API: false

Parameters:
a_sort_specification -
a_statement_spec -
Returns:
StatementSpec

getResultStatementSpec

protected StatementSpec getResultStatementSpec(ResultSpecification a_result_specification,
                                               StatementSpec a_statement_spec)


Supported API: false

Parameters:
a_result_specification -
a_statement_spec -
Returns:
StatementSpec

writeFirstSelectionSearchSpec

public void writeFirstSelectionSearchSpec(CriteriaSpecification a_criteria,
                                          SelectionSearchSpec a_selection)
                                   throws WTException


Supported API: false

Specified by:
writeFirstSelectionSearchSpec in interface QueryWriter
Parameters:
a_criteria -
a_selection -
Throws:
WTException

writeIntermediateSelectionSearchSpec

public void writeIntermediateSelectionSearchSpec(CriteriaSpecification a_criteria,
                                                 SelectionSearchSpec a_selection)
                                          throws WTException


Supported API: false

Specified by:
writeIntermediateSelectionSearchSpec in interface QueryWriter
Parameters:
a_criteria -
a_selection -
Throws:
WTException

writeLastSelectionSearchSpec

public void writeLastSelectionSearchSpec(CriteriaSpecification a_criteria,
                                         SelectionSearchSpec a_selection)
                                  throws WTException


Supported API: false

Specified by:
writeLastSelectionSearchSpec in interface QueryWriter
Parameters:
a_criteria -
a_selection -
Throws:
WTException

writeFirstSearchExpression

public void writeFirstSearchExpression(SelectionSearchSpec a_selection,
                                       SearchExpression an_expression)
                                throws WTException


Supported API: false

Specified by:
writeFirstSearchExpression in interface QueryWriter
Parameters:
a_selection -
an_expression -
Throws:
WTException

writeIntermediateSearchExpression

public void writeIntermediateSearchExpression(SelectionSearchSpec a_selection,
                                              SearchExpression an_expression)
                                       throws WTException


Supported API: false

Specified by:
writeIntermediateSearchExpression in interface QueryWriter
Parameters:
a_selection -
an_expression -
Throws:
WTException

writeLastSearchExpression

public void writeLastSearchExpression(SelectionSearchSpec a_selection,
                                      SearchExpression an_expression)
                               throws WTException


Supported API: false

Specified by:
writeLastSearchExpression in interface QueryWriter
Parameters:
a_selection -
an_expression -
Throws:
WTException

preQueryObjectProcessing

public void preQueryObjectProcessing(SearchSpecification a_search_spec)


Supported API: false

Specified by:
preQueryObjectProcessing in interface QueryWriter
Parameters:
a_search_spec -

postQueryObjectProcessing

public void postQueryObjectProcessing(SearchSpecification a_search_spec)


Supported API: false

Specified by:
postQueryObjectProcessing in interface QueryWriter
Parameters:
a_search_spec -

getQueryObjectResult

public Object getQueryObjectResult(SearchSpecification a_search_spec)
                            throws WTException


Supported API: false

Specified by:
getQueryObjectResult in interface QueryWriter
Parameters:
a_search_spec -
Returns:
Object
Throws:
WTException

getModeledAttributeWhereExpression

private WhereExpression getModeledAttributeWhereExpression(ClassSearchSpec a_selection,
                                                           AttributeSearchExp an_expression)
                                                    throws WTException
Throws:
WTException