Package net.sourceforge.jtds.jdbc
Class TdsCore.TdsToken
java.lang.Object
net.sourceforge.jtds.jdbc.TdsCore.TdsToken
- Enclosing class:
TdsCore
Inner static class used to hold information about TDS tokens read.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Object[]The dynamic parameter data from the last TDS_DYNAMIC token.(package private) ColInfo[]The dynamic parameters from the last TDS_DYNAMIC token.(package private) byteThe operation field from a DONE packet.(package private) byteThe status field from a DONE packet.(package private) byteThe current TDS token byte.(package private) intThe update count from a DONE packet. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanRetrieve the NTLM challenge status.(package private) booleanRetrieve the DONE token status.(package private) booleanRetrieve the result set status.booleanRetrieve the row data status.(package private) booleanRetrieve the update count status.(package private) booleanRetrieve the results pending status.
-
Field Details
-
token
byte tokenThe current TDS token byte. -
status
byte statusThe status field from a DONE packet. -
operation
byte operationThe operation field from a DONE packet. -
updateCount
int updateCountThe update count from a DONE packet. -
dynamParamInfo
ColInfo[] dynamParamInfoThe dynamic parameters from the last TDS_DYNAMIC token. -
dynamParamData
Object[] dynamParamDataThe dynamic parameter data from the last TDS_DYNAMIC token.
-
-
Constructor Details
-
TdsToken
private TdsToken()
-
-
Method Details
-
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.
-