com.sybase.jdbc2.tds
Class TdsDataObject

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--com.sybase.jdbc2.tds.TdsInputStream
                    |
                    +--com.sybase.jdbc2.tds.TdsDataInputStream
                          |
                          +--com.sybase.jdbc2.tds.TdsDataObject
Direct Known Subclasses:
TdsInt, TdsJdbcInputStream, TdsReal

public abstract class TdsDataObject
extends TdsDataInputStream
implements JdbcDataObject, Chainable


Field Summary
 protected byte[]_classID
           
 protected int_classIDLen
           
 protected int_classNum
           
 protected com.sybase.jdbc2.tds.TdsProtocolContext_context
           
 protected com.sybase.jdbc2.tds.DataFormat_dataFmt
           
 protected int_dataLength
           
 protected int_dbID
           
 protected boolean_isNull
           
 (package private) com.sybase.jdbc2.tds.TdsDataObject_next
           
 (package private) com.sybase.jdbc2.tds.TdsDataObject_prev
           
 protected int_state
           
 protected byte[]_textptr
           
 protected int_textptrlen
           
 protected byte[]_timestamp
           
 final static intUNINITIALIZED
           
 final static intUNKNOWN
           

Fields inherited from class com.sybase.jdbc2.tds.TdsDataInputStream
_tds

Fields inherited from class com.sybase.jdbc2.tds.TdsInputStream
_buf, _last, D_LOW_BYTE, LOW_BYTE

Fields inherited from class java.io.FilterInputStream
in

Constructor Summary
TdsDataObject(com.sybase.jdbc2.tds.TdsProtocolContext )
           

Method Summary
 protected voidbadConversion(java.lang.String )
           
 protected voidbadConversionCombination()
           
 protected abstract voidbeginRead()
           
 abstract voidcache()
           
 abstract voidclear()
           
 protected voidcopyInto(com.sybase.jdbc2.tds.TdsDataObject )
           
 protected abstract com.sybase.jdbc2.tds.TdsDataObjectcreateCachedCopy()
           
 protected voiddoRead()
           
 protected voidendRead()
           
 protected byte[]funkyBinaryReader()
           
 java.io.InputStreamgetAsciiStream()
           
 abstract java.math.BigDecimalgetBigDecimal(int )
           
 java.io.InputStreamgetBinaryStream()
           
 abstract booleangetBoolean()
           
 abstract bytegetByte()
           
 byte[]getBytes()
           
 java.io.ReadergetCharacterStream()
           
 com.sybase.jdbc2.jdbc.DateObjectgetDateObject(int , java.util.Calendar )
           
 abstract doublegetDouble()
           
 abstract floatgetFloat()
           
 abstract intgetInt()
           
 abstract longgetLong()
           
 com.sybase.jdbc2.utils.ChainablegetNext()
           
 abstract java.lang.ObjectgetObject()
           
 com.sybase.jdbc2.utils.ChainablegetPrevious()
           
 abstract shortgetShort()
           
 protected voidgetSize()
           
 abstract java.lang.StringgetString()
           
 com.sybase.jdbc2.jdbc.TextPointergetTextPtr()
           
 java.io.InputStreamgetUnicodeStream()
           
 voidinitialize()
           
 booleanisNull()
           
 protected voidnoTextPointer()
           
 protected final com.sybase.jdbc2.tds.TdsDateTimereadDATETIMN()
           
 protected final doublereadFLTN()
           
 protected final longreadINTN()
           
 protected final java.math.BigDecimalreadMONEYN()
           
 protected final java.math.BigDecimalreadNUMERIC(int , int )
           
 protected final java.lang.StringreadString()
           
 voidsetNext(com.sybase.jdbc2.utils.Chainable )
           
 voidsetPrevious(com.sybase.jdbc2.utils.Chainable )
           
 voidstartRead()
           

Methods inherited from class com.sybase.jdbc2.tds.TdsDataInputStream
getCharset, readString

Methods inherited from class com.sybase.jdbc2.tds.TdsInputStream
available, close, flush, getBigEndian, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setBigEndian, skipBytes

Methods inherited from class java.io.FilterInputStream
skip, mark, reset, markSupported

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize

Field Detail

_classID

protected byte[] _classID

_classIDLen

protected int _classIDLen

_classNum

protected int _classNum

_context

protected com.sybase.jdbc2.tds.TdsProtocolContext _context

_dataFmt

protected com.sybase.jdbc2.tds.DataFormat _dataFmt

_dataLength

protected int _dataLength

_dbID

protected int _dbID

_isNull

protected boolean _isNull

_next

com.sybase.jdbc2.tds.TdsDataObject _next

_prev

com.sybase.jdbc2.tds.TdsDataObject _prev

_state

protected int _state

_textptr

protected byte[] _textptr

_textptrlen

protected int _textptrlen

_timestamp

protected byte[] _timestamp

UNINITIALIZED

public final static int UNINITIALIZED

UNKNOWN

public final static int UNKNOWN
Constructor Detail

TdsDataObject

public TdsDataObject(com.sybase.jdbc2.tds.TdsProtocolContext )
Method Detail

badConversion

protected void badConversion(java.lang.String )

badConversionCombination

protected void badConversionCombination()

beginRead

protected abstract void beginRead()

cache

public abstract void cache()

clear

public abstract void clear()

copyInto

protected void copyInto(com.sybase.jdbc2.tds.TdsDataObject )

createCachedCopy

protected abstract com.sybase.jdbc2.tds.TdsDataObject createCachedCopy()

doRead

protected void doRead()

endRead

protected void endRead()

funkyBinaryReader

protected byte[] funkyBinaryReader()

getAsciiStream

public java.io.InputStream getAsciiStream()

getBigDecimal

public abstract java.math.BigDecimal getBigDecimal(int )

getBinaryStream

public java.io.InputStream getBinaryStream()

getBoolean

public abstract boolean getBoolean()

getByte

public abstract byte getByte()

getBytes

public byte[] getBytes()

getCharacterStream

public java.io.Reader getCharacterStream()

getDateObject

public com.sybase.jdbc2.jdbc.DateObject getDateObject(int , java.util.Calendar )

getDouble

public abstract double getDouble()

getFloat

public abstract float getFloat()

getInt

public abstract int getInt()

getLong

public abstract long getLong()

getNext

public com.sybase.jdbc2.utils.Chainable getNext()

getObject

public abstract java.lang.Object getObject()

getPrevious

public com.sybase.jdbc2.utils.Chainable getPrevious()

getShort

public abstract short getShort()

getSize

protected void getSize()

getString

public abstract java.lang.String getString()

getTextPtr

public com.sybase.jdbc2.jdbc.TextPointer getTextPtr()

getUnicodeStream

public java.io.InputStream getUnicodeStream()

initialize

public void initialize()

isNull

public boolean isNull()

noTextPointer

protected void noTextPointer()

readDATETIMN

protected final com.sybase.jdbc2.tds.TdsDateTime readDATETIMN()

readFLTN

protected final double readFLTN()

readINTN

protected final long readINTN()

readMONEYN

protected final java.math.BigDecimal readMONEYN()

readNUMERIC

protected final java.math.BigDecimal readNUMERIC(int , int )

readString

protected final java.lang.String readString()

setNext

public void setNext(com.sybase.jdbc2.utils.Chainable )

setPrevious

public void setPrevious(com.sybase.jdbc2.utils.Chainable )

startRead

public void startRead()