org.apache.xalan.lib.sql
Class QueryParameter

java.lang.Object
  extended by org.apache.xalan.lib.sql.QueryParameter

public class QueryParameter
extends java.lang.Object


Field Summary
private  java.lang.String m_name
           
private  boolean m_output
           
private  int m_type
           
private  java.lang.String m_typeName
           
private static java.util.Hashtable m_Typetable
           
private  java.lang.String m_value
           
 
Constructor Summary
QueryParameter()
           
QueryParameter(java.lang.String v, java.lang.String t)
           
QueryParameter(java.lang.String name, java.lang.String value, java.lang.String type, boolean out_flag)
           
 
Method Summary
 java.lang.String getName()
           
 int getType()
           
 java.lang.String getTypeName()
           
 java.lang.String getValue()
           
 boolean isOutput()
           
private static int map_type(java.lang.String typename)
           
 void setIsOutput(boolean flag)
          Set Name, this should really be covered in the constructor but the QueryParser has a State issue where the name is discoverd after the Parameter object needs to be created
 void setName(java.lang.String n)
          Set Name, this should really be covered in the constructor but the QueryParser has a State issue where the name is discoverd after the Parameter object needs to be created
 void setTypeName(java.lang.String newType)
          Used to set the parameter type when the type information is provided in the query.
 void setValue(java.lang.String newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_type

private int m_type

m_name

private java.lang.String m_name

m_value

private java.lang.String m_value

m_output

private boolean m_output

m_typeName

private java.lang.String m_typeName

m_Typetable

private static java.util.Hashtable m_Typetable
Constructor Detail

QueryParameter

public QueryParameter()

QueryParameter

public QueryParameter(java.lang.String v,
                      java.lang.String t)
Parameters:
v - The parameter value.
t - The type of the parameter.

QueryParameter

public QueryParameter(java.lang.String name,
                      java.lang.String value,
                      java.lang.String type,
                      boolean out_flag)
Method Detail

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String newValue)
Parameters:
newValue -

setTypeName

public void setTypeName(java.lang.String newType)
Used to set the parameter type when the type information is provided in the query.

Parameters:
newType - The parameter type.

getTypeName

public java.lang.String getTypeName()

getType

public int getType()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String n)
Set Name, this should really be covered in the constructor but the QueryParser has a State issue where the name is discoverd after the Parameter object needs to be created


isOutput

public boolean isOutput()

setIsOutput

public void setIsOutput(boolean flag)
Set Name, this should really be covered in the constructor but the QueryParser has a State issue where the name is discoverd after the Parameter object needs to be created


map_type

private static int map_type(java.lang.String typename)