saffron
Class Statement.Argument

java.lang.Object
  |
  +--saffron.Statement.Argument
All Implemented Interfaces:
Environment.VariableInfo
Enclosing class:
Statement

public static class Statement.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
Statement.Argument(String name, Class clazz, Object value)
          Creates an argument.
Statement.Argument(String name, int value)
          Creates an int argument.
Statement.Argument(String name, Object value)
          Creates an argument whose type is the runtime type of value.
 
Method Summary
 Schema getSchema()
           
 OJClass getType()
           
 Object getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

String name

clazz

Class clazz

value

Object value
Constructor Detail

Statement.Argument

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


Statement.Argument

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


Statement.Argument

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

Method Detail

getValue

public Object getValue()

getType

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

getSchema

public Schema getSchema()
Specified by:
getSchema in interface Environment.VariableInfo

SourceForge.net_Logo