-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query with custom bean as result does not manage custom type fields
- Loading branch information
Showing
39 changed files
with
1,761 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
kripton-android-library/src/test/java/sqlite/git104/AbstractBean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package sqlite.git104; | ||
|
||
import java.time.ZonedDateTime; | ||
|
||
import com.abubusoft.kripton.android.annotation.BindSqlColumn; | ||
|
||
public abstract class AbstractBean { | ||
protected final long id; | ||
|
||
@BindSqlColumn(nullable = false) | ||
protected ZonedDateTime updateTime; | ||
|
||
public AbstractBean(long id, ZonedDateTime updateTime) { | ||
this.id = id; | ||
this.updateTime = updateTime; | ||
} | ||
|
||
public long getId() { | ||
return id; | ||
} | ||
|
||
public ZonedDateTime getUpdateTime() { | ||
return updateTime; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
kripton-android-library/src/test/java/sqlite/git104/AbstractDao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package sqlite.git104; | ||
|
||
import java.util.List; | ||
|
||
import com.abubusoft.kripton.android.annotation.BindSqlDelete; | ||
import com.abubusoft.kripton.android.annotation.BindSqlInsert; | ||
import com.abubusoft.kripton.android.annotation.BindSqlSelect; | ||
|
||
public interface AbstractDao<E> { | ||
// @BindSqlSelect(where = "id=:id") | ||
// E selectById(long id); | ||
// | ||
// @BindSqlSelect | ||
// List<E> selectAll(); | ||
// | ||
// @BindSqlInsert | ||
// long insert(E bean); | ||
// | ||
// @BindSqlDelete(where = "id=:id") | ||
// void deleteById(long id); | ||
} |
8 changes: 8 additions & 0 deletions
8
kripton-android-library/src/test/java/sqlite/git104/AppDataSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package sqlite.git104; | ||
|
||
import com.abubusoft.kripton.android.annotation.BindDataSource; | ||
|
||
@BindDataSource(daoSet = { DocumentDao.class, }, fileName = "fasa.db", version = 3, schema = true) | ||
public interface AppDataSource { | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
kripton-android-library/src/test/java/sqlite/git104/BindAppDaoFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package sqlite.git104; | ||
|
||
import com.abubusoft.kripton.android.sqlite.BindDaoFactory; | ||
|
||
/** | ||
* <p> | ||
* Represents dao factory interface for AppDataSource. | ||
* This class expose database interface through Dao attribute. | ||
* </p> | ||
* | ||
* @see AppDataSource | ||
* @see DocumentDao | ||
* @see DocumentDaoImpl | ||
* @see Document | ||
*/ | ||
public interface BindAppDaoFactory extends BindDaoFactory { | ||
/** | ||
* Retrieve dao DocumentDao. | ||
* | ||
* @return dao implementation | ||
*/ | ||
DocumentDaoImpl getDocumentDao(); | ||
} |
Oops, something went wrong.