Changes between Version 7 and Version 8 of UTGBCore/SQLite
- Timestamp:
- 10/12/07 21:25:03 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UTGBCore/SQLite
v7 v8 17 17 Prepare a bean class with appropriate getter/setters; 18 18 {{{ 19 public class A19 public class Person 20 20 { 21 21 int id; 22 22 String name; 23 23 24 public A() {}24 public Person() {} 25 25 26 26 public int getId() { return id; } … … 32 32 }}} 33 33 34 Sample Table data :35 || id||name||34 Sample Table data (person table): 35 ||person_id||name|| 36 36 ||1||leo|| 37 37 ||2||yui|| 38 38 39 Table data retrieval: 40 {{{ 41 SQLiteAccess sqlite = UTGB.getSQLiteAccess("sqlite3databasefile.db"); 42 List<Person> personList = sqlite.query("select person_id as id, name from person", Person.class); 43 // personList contains Person(1, leo), Person(2, yui) 44 }}} 39 45 40