Created
November 23, 2015 23:46
-
-
Save jy2k/1057650728013a759063 to your computer and use it in GitHub Desktop.
Method get soldier by name
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
public SoldierDBItem getSoldierByName(String name) throws | |
SQLException { | |
QueryBuilder<SoldierDBItem, Integer> qb = getSoldierDao().queryBuilder(); | |
Where where = qb.where(); | |
where.eq(SoldierDBItem.COLUMN_NAME, name); | |
SoldierDBItem soldierDBItem = qb.queryForFirst(); | |
return soldierDBItem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment