java.sql.SQLInput Java Examples

The following examples show how to use java.sql.SQLInput. 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
Source Project: dragonwell8_jdk   Author: alibaba   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 #2
Source Project: TencentKona-8   Author: Tencent   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 #3
Source Project: jdk8u60   Author: chenghanpeng   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
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   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 #5
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   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 #6
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   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   Author: lambdalab-mirror   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   Author: dsrg-uoft   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   Author: JetBrains   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   Author: alibaba   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   Author: Tencent   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   Author: chenghanpeng   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   Author: AdoptOpenJDK   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
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   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 #15
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   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   Author: lambdalab-mirror   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   Author: dsrg-uoft   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   Author: JetBrains   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   Author: gemxd   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   Author: gemxd   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
Source Project: spliceengine   Author: splicemachine   File: SampleSQLData.java    License: GNU Affero General Public License v3.0 4 votes vote down vote up
public void readSQL( SQLInput in, String typeName ) throws SQLException
{
    _data = in.readBytes();
}