|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jtds.jdbc.ProcEntry
Stores information about a cached stored procedure or statement handle.
Field Summary | |
private ColInfo[] |
colMetaData
Column meta data (Sybase only). |
static int |
CURSOR
The entry references a prepared cursor handle. |
private java.lang.String |
name
Stored procedure name or statement handle. |
private ParamInfo[] |
paramMetaData
Parameter meta data (Sybase only). |
static int |
PREP_FAILED
The entry references a failed prepare. |
static int |
PREPARE
The entry references a prepared statement handle. |
static int |
PROCEDURE
The entry references a stored procedure. |
private int |
refCount
Usage count for this statement. |
private int |
type
Type of statement referenced by this entry. |
Constructor Summary | |
ProcEntry()
|
Method Summary | |
void |
addRef()
Increments the usage count. |
void |
appendDropSQL(java.lang.StringBuffer sql)
Retrieves the SQL to drop this statement. |
ColInfo[] |
getColMetaData()
Retrieves the column meta data array. |
ParamInfo[] |
getParamMetaData()
Retrieves the parameter meta data array. |
int |
getRefCount()
Retreives the usage count. |
int |
getType()
Retrieves the statement implementation type. |
void |
release()
Decrements the usage count. |
void |
setColMetaData(ColInfo[] colMetaData)
Sets the column meta data. |
void |
setHandle(int handle)
Sets the prepared statement handle. |
void |
setName(java.lang.String name)
Sets the procedure name. |
void |
setParamMetaData(ParamInfo[] paramMetaData)
Sets the parameter meta data. |
void |
setType(int type)
Sets the statement implementation type. |
java.lang.String |
toString()
Retrieves the procedure or handle name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PROCEDURE
public static final int PREPARE
public static final int CURSOR
public static final int PREP_FAILED
private java.lang.String name
private ColInfo[] colMetaData
private ParamInfo[] paramMetaData
private int type
private int refCount
Constructor Detail |
public ProcEntry()
Method Detail |
public final java.lang.String toString()
String
public void setName(java.lang.String name)
name
- the procedure namepublic void setHandle(int handle)
handle
- the sp_prepare
handle valuepublic ColInfo[] getColMetaData()
ColInfo[]
public void setColMetaData(ColInfo[] colMetaData)
colMetaData
- the column meta datapublic ParamInfo[] getParamMetaData()
ParamInfo[]
public void setParamMetaData(ParamInfo[] paramMetaData)
paramMetaData
- the parameter meta data arraypublic void setType(int type)
type
- the type code (one of PROCEDURE,PREPARE,CURSOR)public int getType()
int
public void appendDropSQL(java.lang.StringBuffer sql)
public void addRef()
public void release()
public int getRefCount()
int
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |