• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Internal类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: Episode

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Generated(122010498)
@Internal
/** This constructor was generated by ObjectBox and may change any time. */
public Episode(long id, int index, String title, String url, Date date,
        String videoUrl, boolean isViewed, String localPath, long playPosition,
        String animeUrl, long animeId) {
    this.id = id;
    this.index = index;
    this.title = title;
    this.url = url;
    this.date = date;
    this.videoUrl = videoUrl;
    this.isViewed = isViewed;
    this.localPath = localPath;
    this.playPosition = playPosition;
    this.animeUrl = animeUrl;
    this.animeToOne.setTargetId(animeId);
}
 
开发者ID:SalmanTKhan,项目名称:MyAnimeViewer,代码行数:19,代码来源:Episode.java


示例2: Anime

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Generated(2088667730)
@Internal
/** This constructor was generated by ObjectBox and may change any time. */
public Anime(long id, String title, String url, String cover, String type,
        String aliases, String creator, String genres, String summary,
        Date date, int status, String latestEpisode, String latestUpdateTime,
        int tagId) {
    this.id = id;
    this.title = title;
    this.url = url;
    this.cover = cover;
    this.type = type;
    this.aliases = aliases;
    this.creator = creator;
    this.genres = genres;
    this.summary = summary;
    this.date = date;
    this.status = status;
    this.latestEpisode = latestEpisode;
    this.latestUpdateTime = latestUpdateTime;
    this.tagId = tagId;
}
 
开发者ID:SalmanTKhan,项目名称:MyAnimeViewer,代码行数:23,代码来源:Anime.java


示例3: DownloadRecord

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Generated(1190050140)
@Internal
/** This constructor was generated by ObjectBox and may change any time. */
public DownloadRecord(long id, String title, String animeUrl, String episodeUrl,
        long timeStamp, long progress, long size, String path, int status, int position) {
    this.id = id;
    this.title = title;
    this.animeUrl = animeUrl;
    this.episodeUrl = episodeUrl;
    this.timeStamp = timeStamp;
    this.progress = progress;
    this.size = size;
    this.path = path;
    this.status = status;
    this.position = position;
}
 
开发者ID:SalmanTKhan,项目名称:MyAnimeViewer,代码行数:17,代码来源:DownloadRecord.java


示例4: getTarget

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
/** If property backed, entities can pass the target ID to avoid reflection. */
@Internal
public TARGET getTarget(long targetId) {
    synchronized (this) {
        if (resolvedTargetId == targetId) {
            return target;
        }
    }

    ensureBoxes(null);
    // Do not synchronize while doing DB stuff
    TARGET targetNew = targetBox.get(targetId);

    setResolvedTarget(targetNew, targetId);
    return targetNew;
}
 
开发者ID:objectbox,项目名称:objectbox-java,代码行数:17,代码来源:ToOne.java


示例5: beginTx

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
/**
 * Internal, low level method: use {@link #runInTx(Runnable)} instead.
 */
@Internal
public Transaction beginTx() {
    checkOpen();
    // Because write TXs are typically not cached, initialCommitCount is not as relevant than for read TXs.
    int initialCommitCount = commitCount;
    if (debugTxWrite) {
        System.out.println("Begin TX with commit count " + initialCommitCount);
    }
    long nativeTx = nativeBeginTx(handle);
    Transaction tx = new Transaction(this, nativeTx, initialCommitCount);
    synchronized (transactions) {
        transactions.add(tx);
    }
    return tx;
}
 
开发者ID:objectbox,项目名称:objectbox-java,代码行数:19,代码来源:BoxStore.java


示例6: beginReadTx

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
/**
 * Internal, low level method: use {@link #runInReadTx(Runnable)} instead.
 * Begins a transaction for read access only. Note: there may be only one read transaction per thread.
 */
@Internal
public Transaction beginReadTx() {
    checkOpen();
    // initialCommitCount should be acquired before starting the tx. In race conditions, there is a chance the
    // commitCount is already outdated. That's OK because it only gives a false positive for an TX being obsolete.
    // In contrast, a false negative would make a TX falsely not considered obsolete, and thus readers would not be
    // updated resulting in querying obsolete data until another commit is done.
    // TODO add multithreaded test for this
    int initialCommitCount = commitCount;
    if (debugTxRead) {
        System.out.println("Begin read TX with commit count " + initialCommitCount);
    }
    long nativeTx = nativeBeginReadTx(handle);
    Transaction tx = new Transaction(this, nativeTx, initialCommitCount);
    synchronized (transactions) {
        transactions.add(tx);
    }
    return tx;
}
 
开发者ID:objectbox,项目名称:objectbox-java,代码行数:24,代码来源:BoxStore.java


示例7: Order

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Generated(1765253492)
@Internal
/** This constructor was generated by ObjectBox and may change any time. */
public Order(Long id, String orderText, long customerId) {
    this.id = id;
    this.orderText = orderText;
    this.customer.setTargetId(customerId);
}
 
开发者ID:greenrobot-team,项目名称:greenrobot-examples,代码行数:9,代码来源:Order.java


示例8: Customer

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Generated(265665000)
@Internal
/** This constructor was generated by ObjectBox and may change any time. */
public Customer(Long id, String name) {
    this.id = id;
    this.name = name;
}
 
开发者ID:greenrobot-team,项目名称:greenrobot-examples,代码行数:8,代码来源:Customer.java


示例9: CustomTypes

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Generated(360754650)
@Internal
/** This constructor was generated by ObjectBox and may change any time. */
public CustomTypes(Long id, SimpleEnum customType, List<SimpleEnum> customTypes) {
    this.id = id;
    this.customType = customType;
    this.customTypes = customTypes;
}
 
开发者ID:greenrobot-team,项目名称:greenrobot-examples,代码行数:9,代码来源:CustomTypes.java


示例10: User

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Generated(265909364)
@Internal
/** This constructor was generated by ObjectBox and may change any time. */
public User(Long index, String id, String account, String password, String userToken) {
    this.index = index;
    this.id = id;
    this.account = account;
    this.password = password;
    this.userToken = userToken;
}
 
开发者ID:hushengjun,项目名称:FastAndroid,代码行数:11,代码来源:User.java


示例11: FavoriteRecord

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Generated(1556071527)
@Internal
/** This constructor was generated by ObjectBox and may change any time. */
public FavoriteRecord(long id, String animeUrl, int tagId, long animeId) {
    this.id = id;
    this.animeUrl = animeUrl;
    this.tagId = tagId;
    this.animeToOne.setTargetId(animeId);
}
 
开发者ID:SalmanTKhan,项目名称:MyAnimeViewer,代码行数:10,代码来源:FavoriteRecord.java


示例12: OfflineHistoryRecord

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Generated(1839023799)
@Internal
/** This constructor was generated by ObjectBox and may change any time. */
public OfflineHistoryRecord(long id, String name, String path, long timeStamp, int playPosition,
        boolean isViewed) {
    this.id = id;
    this.name = name;
    this.path = path;
    this.timeStamp = timeStamp;
    this.playPosition = playPosition;
    this.isViewed = isViewed;
}
 
开发者ID:SalmanTKhan,项目名称:MyAnimeViewer,代码行数:13,代码来源:OfflineHistoryRecord.java


示例13: HistoryRecord

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Generated(1745666619)
@Internal
/** This constructor was generated by ObjectBox and may change any time. */
public HistoryRecord(long id, String animeUrl, String episodeUrl, String videoUrl,
        long playPosition, long timeStamp, boolean isViewed) {
    this.id = id;
    this.animeUrl = animeUrl;
    this.episodeUrl = episodeUrl;
    this.videoUrl = videoUrl;
    this.playPosition = playPosition;
    this.timeStamp = timeStamp;
    this.isViewed = isViewed;
}
 
开发者ID:SalmanTKhan,项目名称:MyAnimeViewer,代码行数:14,代码来源:HistoryRecord.java


示例14: FavoriteTag

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Generated(30053616)
@Internal
/** This constructor was generated by ObjectBox and may change any time. */
public FavoriteTag(long id, int tagId, String title, int ribbonId) {
    this.id = id;
    this.tagId = tagId;
    this.title = title;
    this.ribbonId = ribbonId;
}
 
开发者ID:SalmanTKhan,项目名称:MyAnimeViewer,代码行数:10,代码来源:FavoriteTag.java


示例15: internalPutTarget

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Internal
public void internalPutTarget(Cursor<TARGET> targetCursor) {
    checkIdOfTargetForPut = false;
    long id = targetCursor.put(target);
    setTargetId(id);
    setResolvedTarget(target, id);
}
 
开发者ID:objectbox,项目名称:objectbox-java,代码行数:8,代码来源:ToOne.java


示例16: getId

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Internal
public int getId() {
    if (this.id <= 0) {
        throw new IllegalStateException("Illegal property ID " + id + " for " + toString());
    }
    return id;
}
 
开发者ID:objectbox,项目名称:objectbox-java,代码行数:8,代码来源:Property.java


示例17: internalGetBacklinkEntities

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Internal
public List<T> internalGetBacklinkEntities(int entityId, Property relationIdProperty, long key) {
    Cursor<T> reader = getReader();
    try {
        return reader.getBacklinkEntities(entityId, relationIdProperty, key);
    } finally {
        releaseReader(reader);
    }
}
 
开发者ID:objectbox,项目名称:objectbox-java,代码行数:10,代码来源:Box.java


示例18: internalGetRelationEntities

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Internal
public List<T> internalGetRelationEntities(int sourceEntityId, int relationId, long key) {
    Cursor<T> reader = getReader();
    try {
        return reader.getRelationEntities(sourceEntityId, relationId, key);
    } finally {
        releaseReader(reader);
    }
}
 
开发者ID:objectbox,项目名称:objectbox-java,代码行数:10,代码来源:Box.java


示例19: internalCallWithReaderHandle

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Internal
public <RESULT> RESULT internalCallWithReaderHandle(CallWithHandle<RESULT> task) {
    Cursor<T> reader = getReader();
    try {
        return task.call(reader.internalHandle());
    } finally {
        releaseReader(reader);
    }
}
 
开发者ID:objectbox,项目名称:objectbox-java,代码行数:10,代码来源:Box.java


示例20: internalCallWithWriterHandle

import io.objectbox.annotation.apihint.Internal; //导入依赖的package包/类
@Internal
public <RESULT> RESULT internalCallWithWriterHandle(CallWithHandle<RESULT> task) {
    Cursor<T> writer = getWriter();
    RESULT result;
    try {
        result = task.call(writer.internalHandle());
        commitWriter(writer);
    } finally {
        releaseWriter(writer);
    }
    return result;
}
 
开发者ID:objectbox,项目名称:objectbox-java,代码行数:13,代码来源:Box.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java QueuingRemovalListener类代码示例发布时间:2022-05-22
下一篇:
Java PduParser类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap