Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/CurrentRssItemViewDao.java')
-rw-r--r--News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/CurrentRssItemViewDao.java78
1 files changed, 49 insertions, 29 deletions
diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/CurrentRssItemViewDao.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/CurrentRssItemViewDao.java
index 399bfbc0..1bd9c10f 100644
--- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/CurrentRssItemViewDao.java
+++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/CurrentRssItemViewDao.java
@@ -9,27 +9,26 @@ import de.greenrobot.dao.Property;
import de.greenrobot.dao.internal.DaoConfig;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
-/**
+/**
* DAO for table "CURRENT_RSS_ITEM_VIEW".
-*/
+ */
public class CurrentRssItemViewDao extends AbstractDao<CurrentRssItemView, Long> {
public static final String TABLENAME = "CURRENT_RSS_ITEM_VIEW";
- /**
- * Properties of entity CurrentRssItemView.<br/>
- * Can be used for QueryBuilder and for referencing column names.
- */
- public static class Properties {
- public final static Property Id = new Property(0, long.class, "id", true, "_id");
- public final static Property RssItemId = new Property(1, long.class, "rssItemId", false, "RSS_ITEM_ID");
- };
+ /** @inheritdoc */
+ @Override
+ protected void bindValues(SQLiteStatement stmt, CurrentRssItemView entity) {
+ stmt.clearBindings();
+ stmt.bindLong(1, entity.getId());
+ stmt.bindLong(2, entity.getRssItemId());
+ }
public CurrentRssItemViewDao(DaoConfig config) {
super(config);
}
-
+
public CurrentRssItemViewDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
}
@@ -48,50 +47,71 @@ public class CurrentRssItemViewDao extends AbstractDao<CurrentRssItemView, Long>
db.execSQL(sql);
}
- @Override
- protected void bindValues(SQLiteStatement stmt, CurrentRssItemView entity) {
- stmt.clearBindings();
- stmt.bindLong(1, entity.getId());
- stmt.bindLong(2, entity.getRssItemId());
- }
-
+ /**
+ * @inheritdoc
+ */
@Override
public Long readKey(Cursor cursor, int offset) {
- return cursor.getLong(offset);
- }
+ return cursor.getLong(offset + 0);
+ }
+ /**
+ * @inheritdoc
+ */
@Override
public CurrentRssItemView readEntity(Cursor cursor, int offset) {
- return new CurrentRssItemView( //
- cursor.getLong(offset), // id
- cursor.getLong(offset + 1) // rssItemId
+ CurrentRssItemView entity = new CurrentRssItemView( //
+ cursor.getLong(offset + 0), // id
+ cursor.getLong(offset + 1) // rssItemId
);
+ return entity;
}
-
+
+ /**
+ * @inheritdoc
+ */
@Override
public void readEntity(Cursor cursor, CurrentRssItemView entity, int offset) {
- entity.setId(cursor.getLong(offset));
+ entity.setId(cursor.getLong(offset + 0));
entity.setRssItemId(cursor.getLong(offset + 1));
- }
-
+ }
+
+ /**
+ * @inheritdoc
+ */
@Override
protected Long updateKeyAfterInsert(CurrentRssItemView entity, long rowId) {
entity.setId(rowId);
return rowId;
}
-
+
+ /**
+ * @inheritdoc
+ */
@Override
public Long getKey(CurrentRssItemView entity) {
- if(entity != null) {
+ if (entity != null) {
return entity.getId();
} else {
return null;
}
}
+ /**
+ * @inheritdoc
+ */
@Override
protected boolean isEntityUpdateable() {
return true;
}
+
+ /**
+ * Properties of entity CurrentRssItemView.<br/>
+ * Can be used for QueryBuilder and for referencing column names.
+ */
+ public static class Properties {
+ public final static Property Id = new Property(0, long.class, "id", true, "_id");
+ public final static Property RssItemId = new Property(1, long.class, "rssItemId", false, "RSS_ITEM_ID");
+ }
}