Package net.sourceforge.jtds.jdbc
Class TdsCore.TdsToken
- java.lang.Object
-
- net.sourceforge.jtds.jdbc.TdsCore.TdsToken
-
- Enclosing class:
- TdsCore
private static class TdsCore.TdsToken extends java.lang.ObjectInner static class used to hold information about TDS tokens read.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Object[]dynamParamDataThe dynamic parameter data from the last TDS_DYNAMIC token.(package private) ColInfo[]dynamParamInfoThe dynamic parameters from the last TDS_DYNAMIC token.(package private) byteoperationThe operation field from a DONE packet.(package private) bytestatusThe status field from a DONE packet.(package private) bytetokenThe current TDS token byte.(package private) intupdateCountThe update count from a DONE packet.
-
Constructor Summary
Constructors Modifier Constructor Description privateTdsToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanisAuthToken()Retrieve the NTLM challenge status.(package private) booleanisEndToken()Retrieve the DONE token status.(package private) booleanisResultSet()Retrieve the result set status.booleanisRowData()Retrieve the row data status.(package private) booleanisUpdateCount()Retrieve the update count status.(package private) booleanresultsPending()Retrieve the results pending status.
-
-
-
Field Detail
-
token
byte token
The current TDS token byte.
-
status
byte status
The status field from a DONE packet.
-
operation
byte operation
The operation field from a DONE packet.
-
updateCount
int updateCount
The update count from a DONE packet.
-
dynamParamInfo
ColInfo[] dynamParamInfo
The dynamic parameters from the last TDS_DYNAMIC token.
-
dynamParamData
java.lang.Object[] dynamParamData
The dynamic parameter data from the last TDS_DYNAMIC token.
-
-
Method Detail
-
isUpdateCount
boolean isUpdateCount()
Retrieve the update count status.- Returns:
booleantrue if the update count is valid.
-
isEndToken
boolean isEndToken()
Retrieve the DONE token status.- Returns:
booleantrue if the current token is a DONE packet.
-
isAuthToken
boolean isAuthToken()
Retrieve the NTLM challenge status.- Returns:
booleantrue if the current token is an NTLM challenge.
-
resultsPending
boolean resultsPending()
Retrieve the results pending status.- Returns:
booleantrue if more results in input.
-
isResultSet
boolean isResultSet()
Retrieve the result set status.- Returns:
booleantrue if the current token is a result set.
-
isRowData
public boolean isRowData()
Retrieve the row data status.- Returns:
trueif the current token is a result row.
-
-