Top Description Fields Constructors Methods
org.hsqldb.rowio

public Class RowInputTextLog

extends RowInputBase
implements RowInputInterface
Class Inheritance
All Implemented Interfaces
org.hsqldb.rowio.RowInputInterface
Imports
java.math.BigDecimal, org.hsqldb.HsqlException, .Scanner, .Session, .Tokens, org.hsqldb.error.Error, .ErrorCode, org.hsqldb.lib.HsqlArrayList, org.hsqldb.map.ValuePool, org.hsqldb.scriptio.StatementLineTypes, org.hsqldb.types.BinaryData, .BlobData, .BlobDataID, .ClobData, .ClobDataID, .IntervalMonthData, .IntervalSecondData, .IntervalType, .JavaObjectData, .TimeData, .TimestampData, .Type

Class for reading the data for a database row from the script file.
Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
1.7.3
Version
2.7.0

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv Scanner
pack-priv String
pack-priv int
pack-priv String
pack-priv Object
Inherited from org.hsqldb.rowio.RowInputBase:
filePosNO_POSsize

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public int
public String
protected Object[]
protected Long
protected BinaryData
protected BinaryData
protected BlobData
protected Boolean
public byte
public char
protected String
protected ClobData
protected TimestampData
protected IntervalSecondData
protected BigDecimal
protected void
protected void
public int
protected Integer
public long
protected boolean
protected void
protected Object
protected Double
public short
protected Integer
public String
protected TimeData
protected TimestampData
public int
protected BinaryData
protected IntervalMonthData
public void
setSource(Session session, String text)

Inherited from org.hsqldb.rowio.RowInputBase:
getBuffergetFilePositiongetSizereadDatareadDatareadLineresetBlockresetRowskipBytes

Field Detail

noSeparatorsback to summary
pack-priv boolean noSeparators
scannerback to summary
pack-priv Scanner scanner
schemaNameback to summary
pack-priv String schemaName
statementTypeback to summary
pack-priv int statementType
tableNameback to summary
pack-priv String tableName
valueback to summary
pack-priv Object value

Constructor Detail

RowInputTextLogback to summary
public RowInputTextLog()

Method Detail

getSchemaNameback to summary
public String getSchemaName()
getStatementTypeback to summary
public int getStatementType()
getTableNameback to summary
public String getTableName()
readArrayback to summary
protected Object[] readArray(Type type)

Implements abstract org.hsqldb.rowio.RowInputBase.readArray.

readBigintback to summary
protected Long readBigint()

Implements abstract org.hsqldb.rowio.RowInputBase.readBigint.

readBinaryback to summary
protected BinaryData readBinary()

Implements abstract org.hsqldb.rowio.RowInputBase.readBinary.

readBitback to summary
protected BinaryData readBit()

Implements abstract org.hsqldb.rowio.RowInputBase.readBit.

readBlobback to summary
protected BlobData readBlob()

Implements abstract org.hsqldb.rowio.RowInputBase.readBlob.

readBooleback to summary
protected Boolean readBoole()

Implements abstract org.hsqldb.rowio.RowInputBase.readBoole.

readByteback to summary
public byte readByte()

Overrides org.hsqldb.lib.HsqlByteArrayInputStream.readByte.

Implements org.hsqldb.rowio.RowInputInterface.readByte, java.io.DataInput.readByte.

Doc from java.io.DataInput.readByte.

Reads and returns one input byte. The byte is treated as a signed value in the range -128 through 127, inclusive. This method is suitable for reading the byte written by the writeByte method of interface DataOutput.

readCharback to summary
public char readChar()

Overrides org.hsqldb.lib.HsqlByteArrayInputStream.readChar.

Implements org.hsqldb.rowio.RowInputInterface.readChar, java.io.DataInput.readChar.

Doc from java.io.DataInput.readChar.

Reads two input bytes and returns a char value. Let a be the first byte read and b be the second byte. The value returned is:

(char)((a << 8) | (b & 0xff))
This method is suitable for reading bytes written by the writeChar method of interface DataOutput.
readCharback to summary
protected String readChar(Type type)

Implements abstract org.hsqldb.rowio.RowInputBase.readChar.

readClobback to summary
protected ClobData readClob()

Implements abstract org.hsqldb.rowio.RowInputBase.readClob.

readDateback to summary
protected TimestampData readDate(Type type)

Implements abstract org.hsqldb.rowio.RowInputBase.readDate.

readDaySecondIntervalback to summary
protected IntervalSecondData readDaySecondInterval(Type type)

Implements abstract org.hsqldb.rowio.RowInputBase.readDaySecondInterval.

readDecimalback to summary
protected BigDecimal readDecimal(Type type)

Implements abstract org.hsqldb.rowio.RowInputBase.readDecimal.

readFieldback to summary
protected void readField()
readFieldPrefixback to summary
protected void readFieldPrefix()
readIntback to summary
public int readInt()

Overrides org.hsqldb.lib.HsqlByteArrayInputStream.readInt.

Implements org.hsqldb.rowio.RowInputInterface.readInt, java.io.DataInput.readInt.

Doc from java.io.DataInput.readInt.

Reads four input bytes and returns an int value. Let a-d be the first through fourth bytes read. The value returned is:

(((a & 0xff) << 24) | ((b & 0xff) << 16) |
 ((c & 0xff) <<  8) | (d & 0xff))
This method is suitable for reading bytes written by the writeInt method of interface DataOutput.
readIntegerback to summary
protected Integer readInteger()

Implements abstract org.hsqldb.rowio.RowInputBase.readInteger.

readLongback to summary
public long readLong()

Overrides org.hsqldb.lib.HsqlByteArrayInputStream.readLong.

Implements org.hsqldb.rowio.RowInputInterface.readLong, java.io.DataInput.readLong.

Doc from java.io.DataInput.readLong.

Reads eight input bytes and returns a long value. Let a-h be the first through eighth bytes read. The value returned is:

(((long)(a & 0xff) << 56) |
 ((long)(b & 0xff) << 48) |
 ((long)(c & 0xff) << 40) |
 ((long)(d & 0xff) << 32) |
 ((long)(e & 0xff) << 24) |
 ((long)(f & 0xff) << 16) |
 ((long)(g & 0xff) <<  8) |
 ((long)(h & 0xff)))

This method is suitable for reading bytes written by the writeLong method of interface DataOutput.

readNullback to summary
protected boolean readNull()

Implements abstract org.hsqldb.rowio.RowInputBase.readNull.

readNumberFieldback to summary
protected void readNumberField(Type type)
readOtherback to summary
protected Object readOther()

Implements abstract org.hsqldb.rowio.RowInputBase.readOther.

readRealback to summary
protected Double readReal()

Implements abstract org.hsqldb.rowio.RowInputBase.readReal.

readShortback to summary
public short readShort()

Overrides org.hsqldb.lib.HsqlByteArrayInputStream.readShort.

Implements org.hsqldb.rowio.RowInputInterface.readShort, java.io.DataInput.readShort.

Doc from java.io.DataInput.readShort.

Reads two input bytes and returns a short value. Let a be the first byte read and b be the second byte. The value returned is:

(short)((a << 8) | (b & 0xff))
This method is suitable for reading the bytes written by the writeShort method of interface DataOutput.
readSmallintback to summary
protected Integer readSmallint()

Implements abstract org.hsqldb.rowio.RowInputBase.readSmallint.

readStringback to summary
public String readString()

Implements abstract org.hsqldb.rowio.RowInputBase.readString.

Implements org.hsqldb.rowio.RowInputInterface.readString.

readTimeback to summary
protected TimeData readTime(Type type)

Implements abstract org.hsqldb.rowio.RowInputBase.readTime.

readTimestampback to summary
protected TimestampData readTimestamp(Type type)

Implements abstract org.hsqldb.rowio.RowInputBase.readTimestamp.

readTypeback to summary
public int readType()

Implements abstract org.hsqldb.rowio.RowInputBase.readType.

Implements org.hsqldb.rowio.RowInputInterface.readType.

readUUIDback to summary
protected BinaryData readUUID()

Implements abstract org.hsqldb.rowio.RowInputBase.readUUID.

readYearMonthIntervalback to summary
protected IntervalMonthData readYearMonthInterval(Type type)

Implements abstract org.hsqldb.rowio.RowInputBase.readYearMonthInterval.

setSourceback to summary
public void setSource(Session session, String text)