本文整理汇总了Java中de.greenrobot.dao.DaoException类的典型用法代码示例。如果您正苦于以下问题:Java DaoException类的具体用法?Java DaoException怎么用?Java DaoException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DaoException类属于de.greenrobot.dao包,在下文中一共展示了DaoException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCreator
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
public BUser getCreator() {
Long __key = this.creator_ID;
if (creator__resolvedKey == null || !creator__resolvedKey.equals(__key)) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
BUserDao targetDao = daoSession.getBUserDao();
BUser creatorNew = targetDao.load(__key);
synchronized (this) {
creator = creatorNew;
creator__resolvedKey = __key;
}
}
return creator;
}
示例2: getUserThreadLinks
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-many relationship, resolved on first access (and after reset). Changes to to-many relations are not persisted, make changes to the target entity. */
public List<UserThreadLink> getUserThreadLinks() {
if (userThreadLinks == null) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
UserThreadLinkDao targetDao = daoSession.getUserThreadLinkDao();
List<UserThreadLink> userThreadLinksNew = targetDao._queryBThread_UserThreadLinks(id);
synchronized (this) {
if(userThreadLinks == null) {
userThreadLinks = userThreadLinksNew;
}
}
}
return userThreadLinks;
}
示例3: getMessages
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-many relationship, resolved on first access (and after reset). Changes to to-many relations are not persisted, make changes to the target entity. */
public List<BMessage> getMessages() {
if (messages == null) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
BMessageDao targetDao = daoSession.getBMessageDao();
List<BMessage> messagesNew = targetDao._queryBThread_Messages(id);
synchronized (this) {
if(messages == null) {
messages = messagesNew;
}
}
}
return messages;
}
示例4: getBUserSender
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
public BUser getBUserSender() {
Long __key = this.Sender;
if (BUserSender__resolvedKey == null || !BUserSender__resolvedKey.equals(__key)) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
BUserDao targetDao = daoSession.getBUserDao();
BUser BUserSenderNew = targetDao.load(__key);
synchronized (this) {
BUserSender = BUserSenderNew;
BUserSender__resolvedKey = __key;
}
}
return BUserSender;
}
示例5: getThread
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
public BThread getThread() {
Long __key = this.threadDaoId;
if (thread__resolvedKey == null || !thread__resolvedKey.equals(__key)) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
BThreadDao targetDao = daoSession.getBThreadDao();
BThread threadNew = targetDao.load(__key);
synchronized (this) {
thread = threadNew;
thread__resolvedKey = __key;
}
}
return thread;
}
示例6: getBUser
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
public BUser getBUser() {
Long __key = this.BUserDaoId;
if (BUser__resolvedKey == null || !BUser__resolvedKey.equals(__key)) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
BUserDao targetDao = daoSession.getBUserDao();
BUser BUserNew = targetDao.load(__key);
synchronized (this) {
BUser = BUserNew;
BUser__resolvedKey = __key;
}
}
return BUser;
}
示例7: getLinkOwnerBUser
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
public BUser getLinkOwnerBUser() {
Long __key = this.linkOwnerBUserDaoId;
if (linkOwnerBUser__resolvedKey == null || !linkOwnerBUser__resolvedKey.equals(__key)) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
BUserDao targetDao = daoSession.getBUserDao();
BUser linkOwnerBUserNew = targetDao.load(__key);
synchronized (this) {
linkOwnerBUser = linkOwnerBUserNew;
linkOwnerBUser__resolvedKey = __key;
}
}
return linkOwnerBUser;
}
示例8: getBUser
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
public BUser getBUser() {
Long __key = this.BUserDaoId;
if (bUser__resolvedKey == null || !bUser__resolvedKey.equals(__key)) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
BUserDao targetDao = daoSession.getBUserDao();
BUser bUserNew = targetDao.load(__key);
synchronized (this) {
bUser = bUserNew;
bUser__resolvedKey = __key;
}
}
return bUser;
}
示例9: getBThread
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
public BThread getBThread() {
Long __key = this.BThreadDaoId;
if (BThread__resolvedKey == null || !BThread__resolvedKey.equals(__key)) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
BThreadDao targetDao = daoSession.getBThreadDao();
BThread BThreadNew = targetDao.load(__key);
synchronized (this) {
BThread = BThreadNew;
BThread__resolvedKey = __key;
}
}
return BThread;
}
示例10: getContactLinks
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-many relationship, resolved on first access (and after reset). Changes to to-many relations are not persisted, make changes to the target entity. */
public List<ContactLink> getContactLinks() {
if (contactLinks == null) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
ContactLinkDao targetDao = daoSession.getContactLinkDao();
List<ContactLink> contactLinksNew = targetDao._queryBUser_ContactLinks(id);
synchronized (this) {
if(contactLinks == null) {
contactLinks = contactLinksNew;
}
}
}
return contactLinks;
}
示例11: getUserThreadLinks
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-many relationship, resolved on first access (and after reset). Changes to to-many relations are not persisted, make changes to the target entity. */
public List<UserThreadLink> getUserThreadLinks() {
if (userThreadLinks == null) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
UserThreadLinkDao targetDao = daoSession.getUserThreadLinkDao();
List<UserThreadLink> userThreadLinksNew = targetDao._queryBUser_UserThreadLinks(id);
synchronized (this) {
if(userThreadLinks == null) {
userThreadLinks = userThreadLinksNew;
}
}
}
return userThreadLinks;
}
示例12: getFollowerLinks
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-many relationship, resolved on first access (and after reset). Changes to to-many relations are not persisted, make changes to the target entity. */
public List<FollowerLink> getFollowerLinks() {
if (followerLinks == null) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
FollowerLinkDao targetDao = daoSession.getFollowerLinkDao();
List<FollowerLink> followerLinksNew = targetDao._queryBUser_FollowerLinks(id);
synchronized (this) {
if(followerLinks == null) {
followerLinks = followerLinksNew;
}
}
}
return followerLinks;
}
示例13: getBLinkedAccounts
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-many relationship, resolved on first access (and after reset). Changes to to-many relations are not persisted, make changes to the target entity. */
public List<BLinkedAccount> getBLinkedAccounts() {
if (BLinkedAccounts == null) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
BLinkedAccountDao targetDao = daoSession.getBLinkedAccountDao();
List<BLinkedAccount> BLinkedAccountsNew = targetDao._queryBUser_BLinkedAccounts(id);
synchronized (this) {
if(BLinkedAccounts == null) {
BLinkedAccounts = BLinkedAccountsNew;
}
}
}
return BLinkedAccounts;
}
示例14: getAlloperators
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
public alloperators getAlloperators() {
Long __key = this.outer_id;
if (alloperators__resolvedKey == null || !alloperators__resolvedKey.equals(__key)) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
alloperatorsDao targetDao = daoSession.getAlloperatorsDao();
alloperators alloperatorsNew = targetDao.load(__key);
synchronized (this) {
alloperators = alloperatorsNew;
alloperators__resolvedKey = __key;
}
}
return alloperators;
}
示例15: getOperators
import de.greenrobot.dao.DaoException; //导入依赖的package包/类
/** To-one relationship, resolved on first access. */
public operators getOperators() {
Long __key = this.operators_id;
if (operators__resolvedKey == null || !operators__resolvedKey.equals(__key)) {
if (daoSession == null) {
throw new DaoException("Entity is detached from DAO context");
}
operatorsDao targetDao = daoSession.getOperatorsDao();
operators operatorsNew = targetDao.load(__key);
synchronized (this) {
operators = operatorsNew;
operators__resolvedKey = __key;
}
}
return operators;
}