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/FolderDao.java')
-rw-r--r--News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/FolderDao.java63
1 files changed, 35 insertions, 28 deletions
diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/FolderDao.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/FolderDao.java
index f43b942d..b17151d0 100644
--- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/FolderDao.java
+++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/database/model/FolderDao.java
@@ -9,21 +9,18 @@ import de.greenrobot.dao.Property;
import de.greenrobot.dao.internal.DaoConfig;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
-/**
+/**
* DAO for table "FOLDER".
-*/
+ */
public class FolderDao extends AbstractDao<Folder, Long> {
public static final String TABLENAME = "FOLDER";
- /**
- * Properties of entity Folder.<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 Label = new Property(1, String.class, "label", false, "LABEL");
- };
+ /** @inheritdoc */
+ @Override
+ public Long readKey(Cursor cursor, int offset) {
+ return cursor.getLong(offset + 0);
+ }
private DaoSession daoSession;
@@ -31,7 +28,7 @@ public class FolderDao extends AbstractDao<Folder, Long> {
public FolderDao(DaoConfig config) {
super(config);
}
-
+
public FolderDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
this.daoSession = daoSession;
@@ -67,34 +64,44 @@ public class FolderDao extends AbstractDao<Folder, Long> {
/** @inheritdoc */
@Override
- public Long readKey(Cursor cursor, int offset) {
- return cursor.getLong(offset);
- }
-
- /** @inheritdoc */
- @Override
public Folder readEntity(Cursor cursor, int offset) {
- return new Folder( //
- cursor.getLong(offset), // id
- cursor.getString(offset + 1) // label
+ Folder entity = new Folder( //
+ cursor.getLong(offset + 0), // id
+ cursor.getString(offset + 1) // label
);
+ return entity;
}
-
- /** @inheritdoc */
+
+ /**
+ * @inheritdoc
+ */
@Override
public void readEntity(Cursor cursor, Folder entity, int offset) {
- entity.setId(cursor.getLong(offset));
+ entity.setId(cursor.getLong(offset + 0));
entity.setLabel(cursor.getString(offset + 1));
- }
-
- /** @inheritdoc */
+ }
+
+ /**
+ * Properties of entity Folder.<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 Label = new Property(1, String.class, "label", false, "LABEL");
+ }
+
+ /**
+ * @inheritdoc
+ */
@Override
protected Long updateKeyAfterInsert(Folder entity, long rowId) {
entity.setId(rowId);
return rowId;
}
-
- /** @inheritdoc */
+
+ /**
+ * @inheritdoc
+ */
@Override
public Long getKey(Folder entity) {
if(entity != null) {