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


Java DbClause.LongClause方法代码示例

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


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

示例1: getOffers

import nxt.db.DbClause; //导入方法依赖的package包/类
public static DbIterator<CurrencySellOffer> getOffers(Currency currency, boolean availableOnly, int from, int to) {
    DbClause dbClause = new DbClause.LongClause("currency_id", currency.getId());
    if (availableOnly) {
        dbClause = dbClause.and(availableOnlyDbClause);
    }
    return sellOfferTable.getManyBy(dbClause, from, to, " ORDER BY rate ASC, creation_height ASC, transaction_index ASC ");
}
 
开发者ID:giannisKonst,项目名称:blockchain,代码行数:8,代码来源:CurrencySellOffer.java

示例2: getOffers

import nxt.db.DbClause; //导入方法依赖的package包/类
public static DbIterator<CurrencyBuyOffer> getOffers(Currency currency, boolean availableOnly, int from, int to) {
    DbClause dbClause = new DbClause.LongClause("currency_id", currency.getId());
    if (availableOnly) {
        dbClause = dbClause.and(availableOnlyDbClause);
    }
    return buyOfferTable.getManyBy(dbClause, from, to, " ORDER BY rate DESC, creation_height ASC, transaction_index ASC ");
}
 
开发者ID:giannisKonst,项目名称:blockchain,代码行数:8,代码来源:CurrencyBuyOffer.java

示例3: getOffers

import nxt.db.DbClause; //导入方法依赖的package包/类
public static DbIterator<CurrencySellOffer> getOffers(Currency currency, boolean availableOnly, int from, int to) {
    DbClause dbClause = new DbClause.LongClause("currency_id", currency.getId());
    if (availableOnly) {
        dbClause = dbClause.and(availableOnlyDbClause);
    }
    return sellOfferTable.getManyBy(dbClause, from, to, " ORDER BY rate ASC, creation_height ASC, transaction_height ASC, transaction_index ASC ");
}
 
开发者ID:BitcoinFullnode,项目名称:ROKOS-OK-Bitcoin-Fullnode,代码行数:8,代码来源:CurrencySellOffer.java

示例4: getOffers

import nxt.db.DbClause; //导入方法依赖的package包/类
public static DbIterator<CurrencyBuyOffer> getOffers(Currency currency, boolean availableOnly, int from, int to) {
    DbClause dbClause = new DbClause.LongClause("currency_id", currency.getId());
    if (availableOnly) {
        dbClause = dbClause.and(availableOnlyDbClause);
    }
    return buyOfferTable.getManyBy(dbClause, from, to, " ORDER BY rate DESC, creation_height ASC, transaction_height ASC, transaction_index ASC ");
}
 
开发者ID:BitcoinFullnode,项目名称:ROKOS-OK-Bitcoin-Fullnode,代码行数:8,代码来源:CurrencyBuyOffer.java

示例5: getDbClause

import nxt.db.DbClause; //导入方法依赖的package包/类
private static DbClause getDbClause(String channel, long accountId) {
    DbClause dbClause = DbClause.EMPTY_CLAUSE;
    if (channel != null) {
        dbClause = new DbClause.StringClause("channel", channel);
    }
    if (accountId != 0) {
        DbClause accountClause = new DbClause.LongClause("account_id", accountId);
        dbClause = dbClause != DbClause.EMPTY_CLAUSE ? dbClause.and(accountClause) : accountClause;
    }
    return dbClause;
}
 
开发者ID:BitcoinFullnode,项目名称:ROKOS-OK-Bitcoin-Fullnode,代码行数:12,代码来源:TaggedData.java

示例6: getPollsByAccount

import nxt.db.DbClause; //导入方法依赖的package包/类
public static DbIterator<Poll> getPollsByAccount(long accountId, boolean includeFinished, int from, int to) {
    DbClause dbClause = new DbClause.LongClause("account_id", accountId);
    if (!includeFinished) {
        dbClause = dbClause.and(new DbClause.IntClause("finish_height", DbClause.Op.GT, Nxt.getBlockchain().getHeight()));
    }
    return pollTable.getManyBy(dbClause, from, to);
}
 
开发者ID:BitcoinFullnode,项目名称:ROKOS-OK-Bitcoin-Fullnode,代码行数:8,代码来源:Poll.java

示例7: getByAccountId

import nxt.db.DbClause; //导入方法依赖的package包/类
public static DbIterator<PhasingPoll> getByAccountId(long accountId, int firstIndex, int lastIndex) {
    DbClause clause = new DbClause.LongClause("account_id", accountId);
    return phasingPollTable.getManyBy(clause, firstIndex, lastIndex);
}
 
开发者ID:BitcoinFullnode,项目名称:ROKOS-OK-Bitcoin-Fullnode,代码行数:5,代码来源:PhasingPoll.java

示例8: getByHoldingId

import nxt.db.DbClause; //导入方法依赖的package包/类
public static DbIterator<PhasingPoll> getByHoldingId(long holdingId, int firstIndex, int lastIndex) {
    DbClause clause = new DbClause.LongClause("holding_id", holdingId);
    return phasingPollTable.getManyBy(clause, firstIndex, lastIndex);
}
 
开发者ID:BitcoinFullnode,项目名称:ROKOS-OK-Bitcoin-Fullnode,代码行数:5,代码来源:PhasingPoll.java


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