net.sf.saffron.oj.stmt
Class OJStatement.Argument

java.lang.Object
  |
  +--net.sf.saffron.oj.stmt.OJStatement.Argument
All Implemented Interfaces:
Environment.VariableInfo
Enclosing class:
OJStatement

public static class OJStatement.Argument
extends Object
implements Environment.VariableInfo

An Argument supplies a name/value pair to a statement. The class of the argument is usually superfluous, but is necessary when the value is a primitive type (such as int, as opposed to Integer), or is a superclass of the object's runtime type.


Field Summary
(package private)  Class clazz
           
(package private)  String name
           
(package private)  Object value
           
 
Constructor Summary
OJStatement.Argument(String name, Class clazz, Object value)
          Creates an argument.
OJStatement.Argument(String name, int value)
          Creates an int argument.
OJStatement.Argument(String name, Object value)
          Creates an argument whose type is the runtime type of value.
 
Method Summary
 SaffronSchema getSaffronSchema()
           
 OJClass getType()
           
 Object getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

Class clazz

value

Object value

name

String name
Constructor Detail

OJStatement.Argument

public OJStatement.Argument(String name,
                            Class clazz,
                            Object value)
Creates an argument.


OJStatement.Argument

public OJStatement.Argument(String name,
                            Object value)
Creates an argument whose type is the runtime type of value.


OJStatement.Argument

public OJStatement.Argument(String name,
                            int value)
Creates an int argument.

Method Detail

getSaffronSchema

public SaffronSchema getSaffronSchema()
Specified by:
getSaffronSchema in interface Environment.VariableInfo

getType

public OJClass getType()
Specified by:
getType in interface Environment.VariableInfo

getValue

public Object getValue()

SourceForge.net_Logo