本文整理汇总了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]);
}
示例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);
}
示例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);
}
示例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);
}
示例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");
}
示例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));
}
示例7: writeSQL
import java.sql.SQLOutput; //导入依赖的package包/类
public void writeSQL( SQLOutput out ) throws SQLException
{
out.writeBytes( _data );
}
示例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');
}
示例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");
}
示例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);
}
示例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);
}
示例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());
}
示例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());
}
示例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());
}
示例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);
}