com.interface21.jdbc.core
Class SqlParameter

java.lang.Object
  |
  +--com.interface21.jdbc.core.SqlParameter
Direct Known Subclasses:
StoredProcedure.OutputParameter

public class SqlParameter
extends java.lang.Object

Object to represent a SQL parameter definition. Parameters may be anonymous, in which case name is null. However all parameters must define a SQL type constant from java.sql.Types.

Author:
Rod Johnson

Constructor Summary
SqlParameter(int type)
          Add a new anonymous parameter
SqlParameter(java.lang.String name, int type)
           
 
Method Summary
 java.lang.String getName()
           
 int getSqlType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlParameter

public SqlParameter(int type)
Add a new anonymous parameter

SqlParameter

public SqlParameter(java.lang.String name,
                    int type)
Method Detail

getName

public java.lang.String getName()

getSqlType

public int getSqlType()


Rod Johnson and Spring contributors 2001-2003.