wt.change2.htmlclient
Class ChangeRequestQuery

java.lang.Object
  extended bywt.enterprise.tabularresults.BaseQueryService
      extended bywt.change2.htmlclient.ChangeRequestQuery
All Implemented Interfaces:
Externalizable, NetFactor, Serializable

Deprecated. This class is still valid for this release, however this serves as advance notice that it will be removed in the future. All user interfaces built using the Windchill HTML Template Processing client architecture will be rewritten on a JSP framework in an upcoming release. This subclass of BaseQueryService is used to find the Change Request2 that isassociated with a Change Issue.
For more information on how to use this class, see the javadoc on BaseQueryService

public class ChangeRequestQuery
extends BaseQueryService
implements Externalizable

Use the newChangeRequestQuery static factory method(s), not the ChangeRequestQuery constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: false

Extendable: false

See Also:
QueryServiceProvider, WTChangeIssue, WTChangeRequest2, Serialized Form

Field Summary
private static String CLASSNAME
          Deprecated.  
private  String[] columnNames
          Deprecated.  
private  String dataFormatName
          Deprecated.  
static long EXTERNALIZATION_VERSION_UID
          Deprecated.  
protected static long OLD_FORMAT_VERSION_UID
          Deprecated.  
private static String RESOURCE
          Deprecated.  
(package private) static long serialVersionUID
          Deprecated.  
private  String tableFormatName
          Deprecated.  
 
Constructor Summary
ChangeRequestQuery()
          Deprecated.  
 
Method Summary
private  void dataFormatNameValidate(String a_DataFormatName)
          Deprecated.  
 String[] getColumnNames()
          Deprecated. Gets the value of the attribute: columnNames; The instance variable is used to hold an array of the default or initial columns that will be presented in the table of results.
 String getConceptualClassname()
          Deprecated.  
 String getDataFormatName()
          Deprecated. Gets the value of the attribute: dataFormatName; This instance variable can be used to provide a the name, full class path for example, of the subclass of

Supported API: false
 Object getQuery(Object context_obj, Properties parameters, Locale locale)
          Deprecated. A call to getQuery should sent the object that is to be queried against to build a QueryResult.
 String getTableFormatName()
          Deprecated. Gets the value of the attribute: tableFormatName; This instance variable can be used to provide a the name, full class path for example, of the subclass of

Supported API: false
protected  void initialize()
          Deprecated.  
static ChangeRequestQuery newChangeRequestQuery()
          Deprecated. Default factory for the class.
 void readExternal(ObjectInput input)
          Deprecated. Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Deprecated. Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(ChangeRequestQuery thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Deprecated. Reads the non-transient fields of this class from an external source.
 void setColumnNames(String[] a_ColumnNames)
          Deprecated. Sets the value of the attribute: columnNames; The instance variable is used to hold an array of the default or initial columns that will be presented in the table of results.
 void setDataFormatName(String a_DataFormatName)
          Deprecated. Sets the value of the attribute: dataFormatName; This instance variable can be used to provide a the name, full class path for example, of the subclass of

Supported API: false
 void setTableFormatName(String a_TableFormatName)
          Deprecated. Sets the value of the attribute: tableFormatName; This instance variable can be used to provide a the name, full class path for example, of the subclass of

Supported API: false
private  void tableFormatNameValidate(String a_TableFormatName)
          Deprecated.  
 void writeExternal(ObjectOutput output)
          Deprecated. Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.enterprise.tabularresults.BaseQueryService
getClassInfo, readVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Deprecated. 

tableFormatName

private String tableFormatName
Deprecated. 

dataFormatName

private String dataFormatName
Deprecated. 

columnNames

private String[] columnNames
Deprecated. 

serialVersionUID

static final long serialVersionUID
Deprecated. 
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
Deprecated. 
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

ChangeRequestQuery

public ChangeRequestQuery()
Deprecated. 
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Deprecated. 
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class BaseQueryService
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Deprecated. 
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class BaseQueryService
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(ChangeRequestQuery thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Deprecated. 
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Deprecated. 
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Returns:
String

newChangeRequestQuery

public static ChangeRequestQuery newChangeRequestQuery()
                                                throws WTException
Deprecated. 
Default factory for the class.

Supported API: false

Returns:
ChangeRequestQuery
Throws:
WTException

getTableFormatName

public String getTableFormatName()
Deprecated. 
Gets the value of the attribute: tableFormatName; This instance variable can be used to provide a the name, full class path for example, of the subclass of

Supported API: false

Specified by:
getTableFormatName in class BaseQueryService
Returns:
String
See Also:
that the query generated by a call to, wants to use to build the table for presenting the results of the query.

setTableFormatName

public void setTableFormatName(String a_TableFormatName)
                        throws WTPropertyVetoException
Deprecated. 
Sets the value of the attribute: tableFormatName; This instance variable can be used to provide a the name, full class path for example, of the subclass of

Supported API: false

Specified by:
setTableFormatName in class BaseQueryService
Parameters:
a_TableFormatName -
Throws:
WTPropertyVetoException
See Also:
that the query generated by a call to, wants to use to build the table for presenting the results of the query.

tableFormatNameValidate

private void tableFormatNameValidate(String a_TableFormatName)
                              throws WTPropertyVetoException
Deprecated. 
Parameters:
a_TableFormatName -
Throws:
WTPropertyVetoException

getDataFormatName

public String getDataFormatName()
Deprecated. 
Gets the value of the attribute: dataFormatName; This instance variable can be used to provide a the name, full class path for example, of the subclass of

Supported API: false

Specified by:
getDataFormatName in class BaseQueryService
Returns:
String
See Also:
that the query generated by a call to, wants to use to format the individual table enties for presenting the results of the query.

setDataFormatName

public void setDataFormatName(String a_DataFormatName)
                       throws WTPropertyVetoException
Deprecated. 
Sets the value of the attribute: dataFormatName; This instance variable can be used to provide a the name, full class path for example, of the subclass of

Supported API: false

Specified by:
setDataFormatName in class BaseQueryService
Parameters:
a_DataFormatName -
Throws:
WTPropertyVetoException
See Also:
that the query generated by a call to, wants to use to format the individual table enties for presenting the results of the query.

dataFormatNameValidate

private void dataFormatNameValidate(String a_DataFormatName)
                             throws WTPropertyVetoException
Deprecated. 
Parameters:
a_DataFormatName -
Throws:
WTPropertyVetoException

getColumnNames

public String[] getColumnNames()
Deprecated. 
Gets the value of the attribute: columnNames; The instance variable is used to hold an array of the default or initial columns that will be presented in the table of results. The subclasses of

Supported API: false

Specified by:
getColumnNames in class BaseQueryService
Returns:
String[]
See Also:
should implement, to initialize this class.

setColumnNames

public void setColumnNames(String[] a_ColumnNames)
                    throws WTPropertyVetoException
Deprecated. 
Sets the value of the attribute: columnNames; The instance variable is used to hold an array of the default or initial columns that will be presented in the table of results. The subclasses of

Supported API: false

Specified by:
setColumnNames in class BaseQueryService
Parameters:
a_ColumnNames -
Throws:
WTPropertyVetoException
See Also:
should implement, to initialize this class.

getQuery

public Object getQuery(Object context_obj,
                       Properties parameters,
                       Locale locale)
                throws WTException
Deprecated. 
A call to getQuery should sent the object that is to be queried against to build a QueryResult. After the query is completed, the queryresult should be enumerated against and placed into an array. One of the things that should be done at this point is any unform action on the queryresult for presentation should be done here. For example, if you get back and ChangeRecord and you need the Changeable object for presentation, you should retrieve the Changeable object and create a Changeable array with the Changeable objects. The Locale argument is passed in so that a sort may be done on the enumerated result if so desired. Here is some sample code of performing the query and sorting it.
         qr = ChangeHelper.service.getAddressingChangeOrders(change_request);
         if (qr == null)
         {
             return null;
         }
         String sorting_attribute = "number";
         QueryCollationKeyFactory key = new QueryCollationKeyFactory(locale,
 sorting_attribute);
         SortedEnumeration enum = new SortedEnumeration(qr.getEnumeration(),
 key);
         results = new Vector();
         while (enum.hasMoreElements())
           {
             ChangeOrder current_element = (ChangeOrder)enum.nextElement();
             System.out.println("ChangeOrder -> " + current_element);
             results.addElement(current_element);
           }
 


Supported API: false

Supported API: false

Specified by:
getQuery in class BaseQueryService
Parameters:
context_obj -
parameters -
locale -
Returns:
Object
Throws:
WTException

initialize

protected void initialize()
Deprecated.