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


Java ClobData类代码示例

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


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

示例1: getClob

import org.hsqldb.types.ClobData; //导入依赖的package包/类
public ClobData getClob(long lobID) {

        writeLock.lock();

        try {
            Object[] data = getLobHeader(lobID);

            if (data == null) {
                return null;
            }

            ClobData clob = new ClobDataID(lobID);

            return clob;
        } finally {
            writeLock.unlock();
        }
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:19,代码来源:LobManager.java

示例2: compare

import org.hsqldb.types.ClobData; //导入依赖的package包/类
public int compare(Collation collation, ClobData a, ClobData b) {

        if (a.getId() == b.getId()) {
            return 0;
        }

        writeLock.lock();

        try {
            if (compressLobs || cryptLobs) {
                return compareTextCompressed(collation, a.getId(), b.getId());
            } else {
                return compareTextNormal(collation, a.getId(), b.getId());
            }
        } finally {
            writeLock.unlock();
        }
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:19,代码来源:LobManager.java

示例3: compare

import org.hsqldb.types.ClobData; //导入依赖的package包/类
Boolean compare(Session session, Object o) {

        if (o == null) {
            return null;
        }

        if (isNull) {
            return null;
        }

        if (isIgnoreCase) {
            o = ((CharacterType) dataType).upper(session, o);
        }

        int length = getLength(session, o);

        if (o instanceof ClobData) {
            o = ((ClobData) o).getChars(session, 0,
                                        (int) ((ClobData) o).length(session));
        }

        return compareAt(session, o, 0, 0, iLen, length, cLike, wildCardType)
               ? Boolean.TRUE
               : Boolean.FALSE;
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:26,代码来源:Like.java

示例4: getChar

import org.hsqldb.types.ClobData; //导入依赖的package包/类
char getChar(Session session, Object o, int i) {

        char c;

        if (isBinary) {
            c = (char) ((BlobData) o).getBytes()[i];
        } else {
            if (o instanceof char[]) {
                c = ((char[]) o)[i];
            } else if (o instanceof ClobData) {
                c = ((ClobData)o).getChars(session,i,1)[0];
            } else {
                c = ((String) o).charAt(i);
            }
        }

        return c;
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:19,代码来源:Like.java

示例5: compare

import org.hsqldb.types.ClobData; //导入依赖的package包/类
Boolean compare(Session session, Object o) {

        if (o == null) {
            return null;
        }

        if (isNull) {
            return null;
        }

        int length = getLength(session, o);

        if (isIgnoreCase) {
            o = ((CharacterType) dataType).upper(session, o);
        }

        if (o instanceof ClobData) {
            o = ((ClobData) o).getChars(session, 0,
                                        (int) ((ClobData) o).length(session));
        }

        return compareAt(o, 0, 0, iLen, length, cLike, wildCardType)
               ? Boolean.TRUE
               : Boolean.FALSE;
    }
 
开发者ID:RabadanLab,项目名称:Pegasus,代码行数:26,代码来源:Like.java

示例6: compare

import org.hsqldb.types.ClobData; //导入依赖的package包/类
public int compare(ClobData a, ClobData b) {

        if (a.getId() == b.getId()) {
            return 0;
        }

        return compareText(a.getId(), b.getId());
    }
 
开发者ID:RabadanLab,项目名称:Pegasus,代码行数:9,代码来源:LobManager.java

示例7: readClob

import org.hsqldb.types.ClobData; //导入依赖的package包/类
protected ClobData readClob() {

        String s = readString();

        if (s == null) {
            return null;
        }

        s = s.trim();

        if (s.length() == 0) {
            return null;
        }

        long id = Long.parseLong(s);

        return new ClobDataID(id);
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:19,代码来源:RowInputText.java

示例8: writeClob

import org.hsqldb.types.ClobData; //导入依赖的package包/类
protected void writeClob(ClobData o, Type type) {
    writeLong(o.getId());
}
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:4,代码来源:RowOutputBinary.java

示例9: writeClob

import org.hsqldb.types.ClobData; //导入依赖的package包/类
protected void writeClob(ClobData o, Type type) {
    writeString(Long.toString(o.getId()));
}
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:4,代码来源:RowOutputText.java

示例10: writeClob

import org.hsqldb.types.ClobData; //导入依赖的package包/类
protected void writeClob(ClobData o, Type type) {
    writeBytes(Long.toString(o.getId()));
}
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:4,代码来源:RowOutputTextLog.java

示例11: readClob

import org.hsqldb.types.ClobData; //导入依赖的package包/类
protected ClobData readClob() throws IOException {

        String s = readString();

        if (s == null) {
            return null;
        }

        s = s.trim();

        if (s.length() == 0) {
            return null;
        }

        long id = Long.parseLong(s);

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


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