gran.app.adapter.kernel.udf
Class UDFValue

java.lang.Object
  extended bygran.app.adapter.kernel.udf.UDFValue
All Implemented Interfaces:
java.lang.Comparable

public class UDFValue
extends java.lang.Object
implements java.lang.Comparable

View for Udfval


Field Summary
static int DATE
           
static int FLOAT
           
static int INTEGER
           
static int LIST
           
static int MEMO
           
static int STRING
           
 
Constructor Summary
UDFValue(gran.model.Udf ud)
           
UDFValue(gran.model.Udf ud, gran.model.Udfval val)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
          Checks equality by UDF
 java.lang.String findListByValue(java.lang.Object t)
           
 gran.app.filter.customizer.Customizer getCustomizer(gran.model.User u, java.lang.String sortcolumn, boolean disabled)
           
 java.lang.String getInput(gran.model.User u, java.lang.Object task, boolean required, java.lang.String contextPath, java.lang.String schemePath)
           
 java.lang.String getList(java.lang.Object o)
           
 java.lang.String getString(gran.tools.formatter.DateFormatter df, java.lang.Object o)
           
 gran.model.Udf getUdf()
           
protected  gran.model.Udfval getUdfvalue()
           
 java.lang.Object getValue(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING

public static int STRING

FLOAT

public static int FLOAT

DATE

public static int DATE

LIST

public static int LIST

INTEGER

public static int INTEGER

MEMO

public static int MEMO
Constructor Detail

UDFValue

public UDFValue(gran.model.Udf ud,
                gran.model.Udfval val)

UDFValue

public UDFValue(gran.model.Udf ud)
Method Detail

getUdfvalue

protected gran.model.Udfval getUdfvalue()

getString

public java.lang.String getString(gran.tools.formatter.DateFormatter df,
                                  java.lang.Object o)
                           throws gran.exception.GranException
Throws:
gran.exception.GranException

getValue

public java.lang.Object getValue(java.lang.Object o)
                          throws gran.exception.GranException
Parameters:
o -
Returns:
Can return null
Throws:
gran.exception.GranException

getList

public java.lang.String getList(java.lang.Object o)
                         throws gran.exception.GranException
Throws:
gran.exception.GranException

findListByValue

public java.lang.String findListByValue(java.lang.Object t)

getUdf

public gran.model.Udf getUdf()

getInput

public java.lang.String getInput(gran.model.User u,
                                 java.lang.Object task,
                                 boolean required,
                                 java.lang.String contextPath,
                                 java.lang.String schemePath)
                          throws gran.exception.GranException
Throws:
gran.exception.GranException

getCustomizer

public gran.app.filter.customizer.Customizer getCustomizer(gran.model.User u,
                                                           java.lang.String sortcolumn,
                                                           boolean disabled)
                                                    throws gran.exception.GranException
Throws:
gran.exception.GranException

equals

public boolean equals(java.lang.Object o)
Checks equality by UDF

Parameters:
o - another UDFValue object
Returns:
true if this UDFValue has same UDF as param

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2002-2003 TrackStudio, Ltd. All Rights Reserved.