wt.dataops.objectcol.resolution
Class ResolutionUtil

java.lang.Object
  extended bywt.dataops.objectcol.resolution.ResolutionUtil

public class ResolutionUtil
extends Object


Field Summary
static String ALL
           
static String RECURSE_SEP
           
private static String RESOURCE
           
private static DateFormat SIMPLE_DATE_FORMAT
           
 
Constructor Summary
ResolutionUtil()
           
 
Method Summary
static StatementSpec addClassnameIdToSelectable(StatementSpec spec)
           
static StatementSpec addMarkForDeleteFalseToWhere(StatementSpec spec)
           
static StatementSpec applyToStatementSpec(StatementSpec spec, QuerySpecCommandIfc command)
           
static Map createRecurseMap(List values)
          The list should contain string values of the form token,token,token
static List getExcludeList(List values)
           
protected static Object resolveToObjectArrayWithCorrectType(Class type, Collection values)
           
static Object resolveToObjectWithCorrectType(Class type, Collection values, Object defObj)
           
static Object resolveToObjectWithCorrectType(Class type, Object value)
           
protected static Object resolveToObjectWithCorrectType(Class type, String value)
           
protected static Object resolveToObjectWithCorrectType(Class type, WTReference value)
           
static Timestamp stringToTimeStamp(String timestamp)
           
static String timeStampToString(Timestamp timestamp)
           
 
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

ALL

public static final String ALL
See Also:
Constant Field Values

RECURSE_SEP

public static final String RECURSE_SEP
See Also:
Constant Field Values

SIMPLE_DATE_FORMAT

private static final DateFormat SIMPLE_DATE_FORMAT
Constructor Detail

ResolutionUtil

public ResolutionUtil()
Method Detail

applyToStatementSpec

public static StatementSpec applyToStatementSpec(StatementSpec spec,
                                                 QuerySpecCommandIfc command)
                                          throws WTException
Throws:
WTException

addClassnameIdToSelectable

public static StatementSpec addClassnameIdToSelectable(StatementSpec spec)
                                                throws WTException
Throws:
WTException

addMarkForDeleteFalseToWhere

public static StatementSpec addMarkForDeleteFalseToWhere(StatementSpec spec)
                                                  throws WTException
Throws:
WTException

resolveToObjectWithCorrectType

public static Object resolveToObjectWithCorrectType(Class type,
                                                    Collection values,
                                                    Object defObj)
                                             throws WTException
Throws:
WTException

resolveToObjectWithCorrectType

public static Object resolveToObjectWithCorrectType(Class type,
                                                    Object value)
                                             throws WTException
Throws:
WTException

resolveToObjectArrayWithCorrectType

protected static Object resolveToObjectArrayWithCorrectType(Class type,
                                                            Collection values)
                                                     throws WTException
Throws:
WTException

resolveToObjectWithCorrectType

protected static Object resolveToObjectWithCorrectType(Class type,
                                                       String value)
                                                throws WTException
Throws:
WTException

resolveToObjectWithCorrectType

protected static Object resolveToObjectWithCorrectType(Class type,
                                                       WTReference value)
                                                throws WTException
Throws:
WTException

createRecurseMap

public static Map createRecurseMap(List values)
                            throws WTException
The list should contain string values of the form token,token,token

Throws:
WTException

timeStampToString

public static String timeStampToString(Timestamp timestamp)
                                throws WTException
Throws:
WTException

stringToTimeStamp

public static Timestamp stringToTimeStamp(String timestamp)
                                   throws WTException
Throws:
WTException

getExcludeList

public static List getExcludeList(List values)