|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.buzzsurf.sql.OutParameter
public class OutParameter
An object that models a stored procedure OUT parameter.
See com.buzzsurf.sql.StoredProcedure for usage information.
StoredProcedure,
Types| Field Summary | |
|---|---|
protected int |
outSqlType
|
protected java.lang.Object |
outValue
|
| Constructor Summary | |
|---|---|
OutParameter()
Empty constructor provided for convenience |
|
OutParameter(int outSqlType)
Construct a stored procedure OUT parameter of the specified type |
|
| Method Summary | |
|---|---|
boolean |
getBoolean()
|
byte |
getByte()
|
byte[] |
getBytes()
|
java.util.Calendar |
getCalendar()
|
java.util.Date |
getDate()
|
double |
getDouble()
|
float |
getFloat()
|
int |
getInt()
|
long |
getLong()
|
java.lang.Object |
getObject()
|
int |
getOutSqlType()
|
short |
getShort()
|
java.lang.String |
getString()
|
void |
setCalendar(int columnIndex,
java.util.Calendar c)
Set the java.util.Calendar to the value of the out parameter value from the stored procedure if it is an instanceof java.sql.Timestamp |
void |
setOutSqlType(int outSqlType)
Set the out parameter SQL type from java.sql.Type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int outSqlType
protected java.lang.Object outValue
| Constructor Detail |
|---|
public OutParameter()
public OutParameter(int outSqlType)
outSqlType - A java.sql.Type constant int| Method Detail |
|---|
public void setOutSqlType(int outSqlType)
java.sql.Type
outSqlType - A java.sql.Type constant intpublic int getOutSqlType()
java.sql.Type of the out parameter.public java.lang.Object getObject()
public java.lang.String getString()
public boolean getBoolean()
public byte getByte()
public short getShort()
public int getInt()
public long getLong()
public float getFloat()
public double getDouble()
public java.util.Date getDate()
java.util.Date, or null if it is not an instanceof java.util.Datepublic java.util.Calendar getCalendar()
java.util.Calendar, or null if it is not an instanceof java.sql.Timestamp
public void setCalendar(int columnIndex,
java.util.Calendar c)
java.util.Calendar to the value of the out parameter value from the stored procedure if it is an instanceof java.sql.Timestamp
public byte[] getBytes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||