Java Code Examples for java.sql.SQLInput

The following examples show how to use java.sql.SQLInput. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {

    sqlType = typeName;
    types[stringPos] = stream.readString();
    types[datePos] = stream.readDate();
    types[timePos] = stream.readTime();
    types[timestampPos] = stream.readTimestamp();
    types[intPos] = stream.readInt();
    types[longPos] = stream.readLong();
    types[shortPos] = stream.readShort();
    types[bigDecimalPos] = stream.readBigDecimal();
    types[doublePos] = stream.readDouble();
    types[booleanPos] = stream.readBoolean();
    types[floatPos] = stream.readFloat();
    types[bytePos] = stream.readByte();
    types[bytesPos] = stream.readBytes();
}
 
Example 2
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {

    sqlType = typeName;
    types[stringPos] = stream.readString();
    types[datePos] = stream.readDate();
    types[timePos] = stream.readTime();
    types[timestampPos] = stream.readTimestamp();
    types[intPos] = stream.readInt();
    types[longPos] = stream.readLong();
    types[shortPos] = stream.readShort();
    types[bigDecimalPos] = stream.readBigDecimal();
    types[doublePos] = stream.readDouble();
    types[booleanPos] = stream.readBoolean();
    types[floatPos] = stream.readFloat();
    types[bytePos] = stream.readByte();
    types[bytesPos] = stream.readBytes();
}
 
Example 3
Source Project: jdk8u60   Source File: TestSQLDataImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {

    sqlType = typeName;
    types[stringPos] = stream.readString();
    types[datePos] = stream.readDate();
    types[timePos] = stream.readTime();
    types[timestampPos] = stream.readTimestamp();
    types[intPos] = stream.readInt();
    types[longPos] = stream.readLong();
    types[shortPos] = stream.readShort();
    types[bigDecimalPos] = stream.readBigDecimal();
    types[doublePos] = stream.readDouble();
    types[booleanPos] = stream.readBoolean();
    types[floatPos] = stream.readFloat();
    types[bytePos] = stream.readByte();
    types[bytesPos] = stream.readBytes();
}
 
Example 4
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {

    sqlType = typeName;
    types[stringPos] = stream.readString();
    types[datePos] = stream.readDate();
    types[timePos] = stream.readTime();
    types[timestampPos] = stream.readTimestamp();
    types[intPos] = stream.readInt();
    types[longPos] = stream.readLong();
    types[shortPos] = stream.readShort();
    types[bigDecimalPos] = stream.readBigDecimal();
    types[doublePos] = stream.readDouble();
    types[booleanPos] = stream.readBoolean();
    types[floatPos] = stream.readFloat();
    types[bytePos] = stream.readByte();
    types[bytesPos] = stream.readBytes();
}
 
Example 5
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {

    sqlType = typeName;
    types[stringPos] = stream.readString();
    types[datePos] = stream.readDate();
    types[timePos] = stream.readTime();
    types[timestampPos] = stream.readTimestamp();
    types[intPos] = stream.readInt();
    types[longPos] = stream.readLong();
    types[shortPos] = stream.readShort();
    types[bigDecimalPos] = stream.readBigDecimal();
    types[doublePos] = stream.readDouble();
    types[booleanPos] = stream.readBoolean();
    types[floatPos] = stream.readFloat();
    types[bytePos] = stream.readByte();
    types[bytesPos] = stream.readBytes();
}
 
Example 6
Source Project: openjdk-jdk9   Source File: TestSQLDataImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {

    sqlType = typeName;
    types[stringPos] = stream.readString();
    types[datePos] = stream.readDate();
    types[timePos] = stream.readTime();
    types[timestampPos] = stream.readTimestamp();
    types[intPos] = stream.readInt();
    types[longPos] = stream.readLong();
    types[shortPos] = stream.readShort();
    types[bigDecimalPos] = stream.readBigDecimal();
    types[doublePos] = stream.readDouble();
    types[booleanPos] = stream.readBoolean();
    types[floatPos] = stream.readFloat();
    types[bytePos] = stream.readByte();
    types[bytesPos] = stream.readBytes();
}
 
Example 7
Source Project: jdk8u-jdk   Source File: TestSQLDataImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {

    sqlType = typeName;
    types[stringPos] = stream.readString();
    types[datePos] = stream.readDate();
    types[timePos] = stream.readTime();
    types[timestampPos] = stream.readTimestamp();
    types[intPos] = stream.readInt();
    types[longPos] = stream.readLong();
    types[shortPos] = stream.readShort();
    types[bigDecimalPos] = stream.readBigDecimal();
    types[doublePos] = stream.readDouble();
    types[booleanPos] = stream.readBoolean();
    types[floatPos] = stream.readFloat();
    types[bytePos] = stream.readByte();
    types[bytesPos] = stream.readBytes();
}
 
Example 8
Source Project: hottub   Source File: TestSQLDataImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {

    sqlType = typeName;
    types[stringPos] = stream.readString();
    types[datePos] = stream.readDate();
    types[timePos] = stream.readTime();
    types[timestampPos] = stream.readTimestamp();
    types[intPos] = stream.readInt();
    types[longPos] = stream.readLong();
    types[shortPos] = stream.readShort();
    types[bigDecimalPos] = stream.readBigDecimal();
    types[doublePos] = stream.readDouble();
    types[booleanPos] = stream.readBoolean();
    types[floatPos] = stream.readFloat();
    types[bytePos] = stream.readByte();
    types[bytesPos] = stream.readBytes();
}
 
Example 9
Source Project: jdk8u_jdk   Source File: TestSQLDataImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {

    sqlType = typeName;
    types[stringPos] = stream.readString();
    types[datePos] = stream.readDate();
    types[timePos] = stream.readTime();
    types[timestampPos] = stream.readTimestamp();
    types[intPos] = stream.readInt();
    types[longPos] = stream.readLong();
    types[shortPos] = stream.readShort();
    types[bigDecimalPos] = stream.readBigDecimal();
    types[doublePos] = stream.readDouble();
    types[booleanPos] = stream.readBoolean();
    types[floatPos] = stream.readFloat();
    types[bytePos] = stream.readByte();
    types[bytesPos] = stream.readBytes();
}
 
Example 10
Source Project: dragonwell8_jdk   Source File: SuperHero.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {
    first = stream.readString();
    last = stream.readString();
    firstYear = stream.readInt();
    secretIdentity = stream.readString();
}
 
Example 11
Source Project: TencentKona-8   Source File: SuperHero.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {
    first = stream.readString();
    last = stream.readString();
    firstYear = stream.readInt();
    secretIdentity = stream.readString();
}
 
Example 12
Source Project: jdk8u60   Source File: SuperHero.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {
    first = stream.readString();
    last = stream.readString();
    firstYear = stream.readInt();
    secretIdentity = stream.readString();
}
 
Example 13
Source Project: openjdk-jdk8u   Source File: SuperHero.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {
    first = stream.readString();
    last = stream.readString();
    firstYear = stream.readInt();
    secretIdentity = stream.readString();
}
 
Example 14
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {
    first = stream.readString();
    last = stream.readString();
    firstYear = stream.readInt();
    secretIdentity = stream.readString();
}
 
Example 15
Source Project: openjdk-jdk9   Source File: SuperHero.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {
    first = stream.readString();
    last = stream.readString();
    firstYear = stream.readInt();
    secretIdentity = stream.readString();
}
 
Example 16
Source Project: jdk8u-jdk   Source File: SuperHero.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {
    first = stream.readString();
    last = stream.readString();
    firstYear = stream.readInt();
    secretIdentity = stream.readString();
}
 
Example 17
Source Project: hottub   Source File: SuperHero.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {
    first = stream.readString();
    last = stream.readString();
    firstYear = stream.readInt();
    secretIdentity = stream.readString();
}
 
Example 18
Source Project: jdk8u_jdk   Source File: SuperHero.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {
    first = stream.readString();
    last = stream.readString();
    firstYear = stream.readInt();
    secretIdentity = stream.readString();
}
 
Example 19
Source Project: gemfirexd-oss   Source File: SampleSQLData.java    License: Apache License 2.0 4 votes vote down vote up
public void readSQL( SQLInput in, String typeName ) throws SQLException
{
    _data = in.readBytes();
}
 
Example 20
Source Project: gemfirexd-oss   Source File: SampleSQLData.java    License: Apache License 2.0 4 votes vote down vote up
public void readSQL( SQLInput in, String typeName ) throws SQLException
{
    _data = in.readBytes();
}
 
Example 21
public void readSQL( SQLInput in, String typeName ) throws SQLException
{
    _data = in.readBytes();
}