wt.clients.prodmgmt
Class WTPartHelper

java.lang.Object
  extended bywt.clients.prodmgmt.WTPartHelper

public class WTPartHelper
extends Object

WTPartHelper is a class that contains static methods for searching for WTParts.

This class is not currently used since all searches use the wt.clients.beans.WTChooser instead.

Supported API: false

Extendable: false

See Also:
WTChooser, WTPart

Constructor Summary
WTPartHelper()
           
 
Method Summary
static WTPart[] findPartByName(String name)
          Finds parts by name.
static WTPart[] findPartByNumber(String number)
          Finds parts by number.
static WTPart[] findParts(String number, String name)
          Finds parts by name or number, using a "like" clause to do automatic wildcard matching.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WTPartHelper

public WTPartHelper()
Method Detail

findPartByName

public static WTPart[] findPartByName(String name)
                               throws WTException
Finds parts by name.

Parameters:
name - the part name to search for.
Returns:
array of WTPart objects with a matching part name.
Throws:
WTException
See Also:
WTPart

findPartByNumber

public static WTPart[] findPartByNumber(String number)
                                 throws WTException
Finds parts by number.

Parameters:
number - the part number to search for.
Returns:
array of WTPart objects with a matching part number.
Throws:
WTException
See Also:
WTPart

findParts

public static WTPart[] findParts(String number,
                                 String name)
                          throws WTException
Finds parts by name or number, using a "like" clause to do automatic wildcard matching.

Parameters:
name - the part name to search for.
number - the part number to search for.
Returns:
array of WTPart objects with a matching part name and/or number.
Throws:
WTException
See Also:
WTPart

main

public static void main(String[] args)