uk.org.ogsadai.sql
Class SQLParameter

java.lang.Object
  extended by uk.org.ogsadai.sql.SQLParameter

public class SQLParameter
extends java.lang.Object

Represents SQL parameters in an SQL function or procedure call. This includes parameter value, type and mode.

Author:
The OGSA-DAI Project Team.

Constructor Summary
SQLParameter()
          Constructor.
SQLParameter(java.lang.String value, int type, SQLParameterMode mode)
          Constructor.
 
Method Summary
 SQLParameterMode getMode()
          Gets the mode of the SQL parameter.
 int getType()
          Gets the type of the SQL parameter.
 java.lang.String getValue()
          Gets the value of the SQL parameter.
 void setMode(SQLParameterMode mode)
          Sets the mode of the SQL parameter.
 void setType(int type)
          Sets the type of the SQL parameter.
 void setValue(java.lang.String value)
          Sets the value of the SQL parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLParameter

public SQLParameter()
Constructor.


SQLParameter

public SQLParameter(java.lang.String value,
                    int type,
                    SQLParameterMode mode)
Constructor.

Parameters:
value -
type -
mode -
Method Detail

setValue

public void setValue(java.lang.String value)
Sets the value of the SQL parameter.

Parameters:
value -

setType

public void setType(int type)
Sets the type of the SQL parameter.

Parameters:
type -

setMode

public void setMode(SQLParameterMode mode)
Sets the mode of the SQL parameter.

Parameters:
mode -

getValue

public java.lang.String getValue()
Gets the value of the SQL parameter.

Returns:
the value of the SQL parameter.

getType

public int getType()
Gets the type of the SQL parameter.

Returns:
the type of the SQL parameter.

getMode

public SQLParameterMode getMode()
Gets the mode of the SQL parameter.

Returns:
the mode of the SQL parameter.