org.eigenbase.oj.stmt
Class OJPreparingStmt.Argument
java.lang.Object
org.eigenbase.oj.stmt.OJPreparingStmt.Argument
- Enclosing class:
- OJPreparingStmt
public static class OJPreparingStmt.Argument
- extends Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clazz
Class clazz
value
Object value
name
String name
OJPreparingStmt.Argument
public OJPreparingStmt.Argument(String name,
Class clazz,
Object value)
- Creates an argument.
OJPreparingStmt.Argument
public OJPreparingStmt.Argument(String name,
Object value)
- Creates an argument whose type is the runtime type of
value
.
OJPreparingStmt.Argument
public OJPreparingStmt.Argument(String name,
int value)
- Creates an
int
argument.
getType
public OJClass getType()
getValue
public Object getValue()
getName
public String getName()