当前位置: 首页>>代码示例>>Java>>正文


Java SQLOutput类代码示例

本文整理汇总了Java中java.sql.SQLOutput的典型用法代码示例。如果您正苦于以下问题:Java SQLOutput类的具体用法?Java SQLOutput怎么用?Java SQLOutput使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SQLOutput类属于java.sql包,在下文中一共展示了SQLOutput类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
@Override
public void writeSQL(SQLOutput stream) throws SQLException {

    stream.writeString((String) types[stringPos]);
    stream.writeDate((Date) types[datePos]);
    stream.writeTime((Time) types[timePos]);
    stream.writeTimestamp((Timestamp) types[timestampPos]);
    stream.writeInt((Integer) types[intPos]);
    stream.writeLong((Long) types[longPos]);
    stream.writeShort((Short) types[shortPos]);
    stream.writeBigDecimal((BigDecimal) types[bigDecimalPos]);
    stream.writeDouble((Double) types[doublePos]);
    stream.writeBoolean((Boolean) types[booleanPos]);
    stream.writeFloat((Float) types[floatPos]);
    stream.writeByte((Byte) types[bytePos]);
    stream.writeBytes((byte[]) types[bytesPos]);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:18,代码来源:TestSQLDataImpl.java

示例2: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
@Function(effects=IMMUTABLE, onNullInput=RETURNS_NULL)
@Override
public void writeSQL(SQLOutput stream) throws SQLException
{
	stream.writeBigDecimal(s_bigdec);
	stream.writeBinaryStream(new ByteArrayInputStream(s_utfgedicht));
	stream.writeBoolean(s_bool);
	stream.writeByte(s_byte);
	stream.writeBytes(s_utfgedicht);
	stream.writeCharacterStream(new StringReader(s_gedicht));
	stream.writeDate(s_date);
	stream.writeDouble(s_double);
	stream.writeFloat(s_float);
	stream.writeInt(s_int);
	stream.writeLong(s_long);
	stream.writeShort(s_short);
	stream.writeString(s_gedicht);
	stream.writeTime(s_time);
	stream.writeTimestamp(s_timestamp);
	stream.writeURL(s_url);
}
 
开发者ID:greenplum-db,项目名称:pljava,代码行数:22,代码来源:UDTScalarIOTest.java

示例3: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
@Override
public void writeSQL(SQLOutput stream) throws SQLException {
    stream.writeString(first);
    stream.writeString(last);
    stream.writeInt(firstYear);
    stream.writeString(secretIdentity);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:8,代码来源:SuperHero.java

示例4: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
@Function(effects=IMMUTABLE, onNullInput=RETURNS_NULL)
@Override
public void writeSQL(SQLOutput stream) throws SQLException {
	s_logger.info(m_typeName + " to SQLOutput");
	stream.writeDouble(m_x);
	stream.writeDouble(m_y);
}
 
开发者ID:greenplum-db,项目名称:pljava,代码行数:8,代码来源:ComplexScalar.java

示例5: testWriteSQL

import java.sql.SQLOutput; //导入依赖的package包/类
/**
 * Test method for {@link java.sql.SQLData#writeSQL(java.sql.SQLOutput)}.
 */
@TestTargetNew(
  level = TestLevel.NOT_FEASIBLE,
  notes = "",
      method = "writeSQL",
      args = {SQLOutput.class}
    )
public void testWriteSQL() {
    fail("Not yet implemented");
}
 
开发者ID:keplersj,项目名称:In-the-Box-Fork,代码行数:13,代码来源:SQLDataTest.java

示例6: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
@Override
public void writeSQL(SQLOutput stream) throws SQLException {
	stream.writeString(this.tableName);
	stream.writeString(this.columnName);
	stream.writeString(String.valueOf(this.columnValue));
}
 
开发者ID:gagoyal01,项目名称:mongodb-rdbms-sync,代码行数:7,代码来源:O2MSyncEventLog.java

示例7: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
public void writeSQL( SQLOutput out ) throws SQLException
{
    out.writeBytes( _data );
}
 
开发者ID:gemxd,项目名称:gemfirexd-oss,代码行数:5,代码来源:SampleSQLData.java

示例8: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
public void writeSQL( SQLOutput stream) throws SQLException {
	for ( int i = 0 ; i < apop ; ++ i )
		stream.writeByte( (byte)'a');
}
 
开发者ID:greenplum-db,项目名称:pljava,代码行数:5,代码来源:VarlenaUDTTest.java

示例9: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
@Override
public void writeSQL(SQLOutput stream) throws SQLException {
	stream.writeDouble(m_x);
	stream.writeDouble(m_y);
	s_logger.info(m_typeName + " to SQLOutput");
}
 
开发者ID:greenplum-db,项目名称:pljava,代码行数:7,代码来源:ComplexTuple.java

示例10: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
@Function(effects=IMMUTABLE, onNullInput=RETURNS_NULL)
@Override
public void writeSQL(SQLOutput stream) throws SQLException {
	stream.writeInt(m_value);
}
 
开发者ID:greenplum-db,项目名称:pljava,代码行数:6,代码来源:IntWithMod.java

示例11: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
@Override
public void writeSQL(SQLOutput stream) throws SQLException {
	s_logger.info(m_typeName + " to SQLOutput");
	stream.writeDouble(m_x);
	stream.writeDouble(m_y);
}
 
开发者ID:greenplum-db,项目名称:pljava,代码行数:7,代码来源:Point.java

示例12: DDRProcessorImpl

import java.sql.SQLOutput; //导入依赖的package包/类
DDRProcessorImpl( ProcessingEnvironment processingEnv)
{
	elmu = processingEnv.getElementUtils();
	filr = processingEnv.getFiler();
	loca = processingEnv.getLocale();
	msgr = processingEnv.getMessager();
	opts = processingEnv.getOptions();
	srcv = processingEnv.getSourceVersion();
	typu = processingEnv.getTypeUtils();

	tmpr = new TypeMapper();
	
	String optv;
	
	optv = opts.get( "ddr.name.trusted");
	if ( null != optv )
		nameTrusted = optv;
	else
		nameTrusted = "java";
	
	optv = opts.get( "ddr.name.untrusted");
	if ( null != optv )
		nameUntrusted = optv;
	else
		nameUntrusted = "javaU";
	
	optv = opts.get( "ddr.implementor");
	if ( null != optv )
		defaultImplementor = "-".equals( optv) ? null : optv;
	else
		defaultImplementor = "PostgreSQL";

	optv = opts.get( "ddr.output");
	if ( null != optv )
		output = optv;
	else
		output = "pljava.ddr";
	
	TY_ITERATOR = typu.getDeclaredType(
		elmu.getTypeElement( java.util.Iterator.class.getName()));
	TY_OBJECT = typu.getDeclaredType(
		elmu.getTypeElement( Object.class.getName()));
	TY_RESULTSET = typu.getDeclaredType(
		elmu.getTypeElement( java.sql.ResultSet.class.getName()));
	TY_RESULTSETPROVIDER = typu.getDeclaredType(
		elmu.getTypeElement( ResultSetProvider.class.getName()));
	TY_RESULTSETHANDLE = typu.getDeclaredType(
		elmu.getTypeElement( ResultSetHandle.class.getName()));
	TY_SQLDATA = typu.getDeclaredType(
		elmu.getTypeElement( SQLData.class.getName()));
	TY_SQLINPUT = typu.getDeclaredType(
		elmu.getTypeElement( SQLInput.class.getName()));
	TY_SQLOUTPUT = typu.getDeclaredType(
		elmu.getTypeElement( SQLOutput.class.getName()));
	TY_STRING = typu.getDeclaredType(
		elmu.getTypeElement( String.class.getName()));
	TY_TRIGGERDATA = typu.getDeclaredType(
		elmu.getTypeElement( TriggerData.class.getName()));
	TY_VOID = typu.getNoType( TypeKind.VOID);

	AN_FUNCTION    = elmu.getTypeElement( Function.class.getName());
	AN_SQLACTION   = elmu.getTypeElement( SQLAction.class.getName());
	AN_SQLACTIONS  = elmu.getTypeElement( SQLActions.class.getName());
	AN_SQLTYPE     = elmu.getTypeElement( SQLType.class.getName());
	AN_TRIGGER     = elmu.getTypeElement( Trigger.class.getName());
	AN_BASEUDT     = elmu.getTypeElement( BaseUDT.class.getName());
	AN_MAPPEDUDT   = elmu.getTypeElement( MappedUDT.class.getName());
}
 
开发者ID:greenplum-db,项目名称:pljava,代码行数:69,代码来源:DDRProcessor.java

示例13: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
/**
 * Write object to SQLOutput stream.
 */
public void writeSQL(SQLOutput stream) throws SQLException {
    stream.writeLong(value.getNumerator());
    stream.writeLong(value.getDenominator());
}
 
开发者ID:beargiles,项目名称:pljava-udt-type-extension,代码行数:8,代码来源:RationalUDT.java

示例14: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
/**
 * Write object to SQLOutput stream.
 */
public void writeSQL(SQLOutput stream) throws SQLException {
    stream.writeDouble(value.Re());
    stream.writeDouble(value.Im());
}
 
开发者ID:beargiles,项目名称:pljava-udt-type-extension,代码行数:8,代码来源:ComplexUDT.java

示例15: writeSQL

import java.sql.SQLOutput; //导入依赖的package包/类
public void writeSQL(SQLOutput stream) throws SQLException {
    stream.writeString(firstAttribute);
    stream.writeBoolean(secondAttribute);
    stream.writeString(thirdAttribute);
    stream.writeInt(fourthAttribute);
}
 
开发者ID:shannah,项目名称:cn1,代码行数:7,代码来源:SQLInputImplTest.java


注:本文中的java.sql.SQLOutput类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。