com.hp.hpl.guess
Class Field

java.lang.Object
  extended bycom.hp.hpl.guess.Field
All Implemented Interfaces:
Comparable, Interesting

public final class Field
extends Object
implements Comparable, Interesting


Field Summary
static int EDGE
           
static boolean nn
           
static int NODE
           
 
Constructor Summary
Field(Graph graph, String name, int type, int sqlType)
           
Field(Graph graph, String name, int type, int sqlType, Object defval)
           
 
Method Summary
 ComparisonQuery __eq__(Object value)
           
 ComparisonQuery __ge__(Object value)
           
 Object __getattr__(String fieldName)
           
 PyObject __getitem__(int key)
           
 PyObject __getitem__(PyObject key)
           
 ComparisonQuery __gt__(Object value)
           
 ComparisonQuery __le__(Object value)
           
 ComparisonQuery __like__(Object value)
           
 ComparisonQuery __lt__(Object value)
           
 ComparisonQuery __ne__(Object value)
           
 int compareTo(Object o)
           
 Object getDefault()
           
 String getName()
           
 EditorPopup getPopup()
           
 int getSQLType()
           
 String getState()
           
 String getStatusBarString()
           
 int getType()
           
 boolean isNotNull()
           
 boolean isNumeric()
           
static boolean isNumeric(int type)
           
 boolean needsUpdate(Graph g)
           
 void setDefault(Object o)
           
 void setDynamic(boolean dyn)
           
 void setNotNull(boolean nn)
           
 void setState(String state)
           
 Object toJava(Object value)
           
static Object toJava(Object value, int sqlType)
           
 String toSQLString()
           
 String toString()
           
 void update()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODE

public static final int NODE
See Also:
Constant Field Values

EDGE

public static final int EDGE
See Also:
Constant Field Values

nn

public static boolean nn
Constructor Detail

Field

public Field(Graph graph,
             String name,
             int type,
             int sqlType,
             Object defval)

Field

public Field(Graph graph,
             String name,
             int type,
             int sqlType)
Method Detail

getState

public String getState()

setState

public void setState(String state)

setDynamic

public void setDynamic(boolean dyn)

update

public void update()

needsUpdate

public boolean needsUpdate(Graph g)

getDefault

public Object getDefault()

setDefault

public void setDefault(Object o)

isNotNull

public boolean isNotNull()

setNotNull

public void setNotNull(boolean nn)

__getitem__

public PyObject __getitem__(int key)

__getitem__

public PyObject __getitem__(PyObject key)

__eq__

public ComparisonQuery __eq__(Object value)

__ne__

public ComparisonQuery __ne__(Object value)

__lt__

public ComparisonQuery __lt__(Object value)

__gt__

public ComparisonQuery __gt__(Object value)

__le__

public ComparisonQuery __le__(Object value)

__ge__

public ComparisonQuery __ge__(Object value)

__like__

public ComparisonQuery __like__(Object value)

toString

public String toString()

toSQLString

public String toSQLString()

getName

public String getName()

getType

public int getType()

getSQLType

public int getSQLType()

toJava

public Object toJava(Object value)

toJava

public static Object toJava(Object value,
                            int sqlType)

__getattr__

public Object __getattr__(String fieldName)

isNumeric

public boolean isNumeric()

isNumeric

public static boolean isNumeric(int type)

compareTo

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

getStatusBarString

public String getStatusBarString()
Specified by:
getStatusBarString in interface Interesting

getPopup

public EditorPopup getPopup()
Specified by:
getPopup in interface Interesting