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


Java RowOutputInterface.writeLong方法代码示例

本文整理汇总了Java中org.hsqldb.rowio.RowOutputInterface.writeLong方法的典型用法代码示例。如果您正苦于以下问题:Java RowOutputInterface.writeLong方法的具体用法?Java RowOutputInterface.writeLong怎么用?Java RowOutputInterface.writeLong使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.hsqldb.rowio.RowOutputInterface的用法示例。


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

示例1: write

import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out, ResultMetaData meta) {

        reset();
        out.writeLong(id);
        out.writeInt(size);
        out.writeInt(0);    // offset
        out.writeInt(size);

        while (hasNext()) {
            Object[] data = getNext();

            out.writeData(meta.getExtendedColumnCount(), meta.columnTypes,
                          data, null, null);
        }

        reset();
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:18,代码来源:RowSetNavigatorDataTable.java

示例2: write

import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out, ResultMetaData meta) {

        int limit = size - currentOffset;

        if (limit > table.length) {
            limit = table.length;
        }

        out.writeLong(id);
        out.writeInt(size);
        out.writeInt(currentOffset);
        out.writeInt(limit);

        for (int i = 0; i < limit; i++) {
            Object[] data = table[i];

            out.writeData(meta.getColumnCount(), meta.columnTypes, data, null,
                          null);
        }
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:21,代码来源:RowSetNavigatorClient.java

示例3: write

import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out,
                  ResultMetaData meta) throws HsqlException, IOException {

    int limit = size - currentOffset;

    if (limit > table.length) {
        limit = table.length;
    }

    out.writeLong(id);
    out.writeInt(size);
    out.writeInt(currentOffset);
    out.writeInt(limit);

    for (int i = 0; i < limit; i++) {
        Object[] data = table[i];

        out.writeData(meta.getColumnCount(), meta.columnTypes, data, null,
                      null);
    }
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:22,代码来源:RowSetNavigatorClient.java

示例4: write

import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out,
                  ResultMetaData meta) throws IOException {

    beforeFirst();
    out.writeLong(id);
    out.writeInt(size);
    out.writeInt(0);    // offset
    out.writeInt(size);

    while (hasNext()) {
        Object[] data = getNext();

        out.writeData(meta.getColumnCount(), meta.columnTypes, data, null,
                      null);
    }

    beforeFirst();
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:19,代码来源:RowSetNavigatorLinkedList.java

示例5: write

import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out,
                  ResultMetaData meta) throws IOException {

    reset();
    out.writeLong(id);
    out.writeInt(size);
    out.writeInt(0);    // offset
    out.writeInt(size);

    while (hasNext()) {
        Object[] data = (Object[]) getNext();

        out.writeData(meta.getExtendedColumnCount(), meta.columnTypes,
                      data, null, null);
    }

    reset();
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:19,代码来源:RowSetNavigatorData.java

示例6: write

import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out,
                  ResultMetaData meta) throws IOException {

    reset();
    out.writeLong(id);
    out.writeInt(size);
    out.writeInt(0);    // offset
    out.writeInt(size);

    while (hasNext()) {
        Object[] data = getNext();

        out.writeData(meta.getExtendedColumnCount(), meta.columnTypes,
                      data, null, null);
    }

    reset();
}
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:19,代码来源:RowSetNavigatorDataTable.java

示例7: writeDataType

import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
void writeDataType(RowOutputInterface out, Type type) {

        out.writeType(type.typeCode);

        if (type.isArrayType()) {
            out.writeType(type.collectionBaseType().typeCode);
        }

        out.writeLong(type.precision);
        out.writeInt(type.scale);
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:12,代码来源:ResultMetaData.java

示例8: writeDataType

import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
void writeDataType(RowOutputInterface out, Type type) {

        out.writeType(type.typeCode);
        out.writeLong(type.precision);
        out.writeInt(type.scale);
    }
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:7,代码来源:ResultMetaData.java


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