Version 7 (modified by 18 years ago) (diff) | ,
---|
Using SQLite database
UTGB Core supports SQLite3 database access. In the default setting, the database files within utgb-core/resource folder can be accessed from UTGB core.
After launching the GWTShell, try the following URL:
The source code of this servlet is here: source:trunk/utgb/utgb-core/src/main/java/org/utgenome/gwt/utgb/server/app/SQLiteAccessSample.java
Simple SQL query processing with BeanUtil?
Prepare a bean class with appropriate getter/setters;
public class A { int id; String name; public A() {} public int getId() { return id; } public String getName() { return name; } public void setId(int id) { return id; } public void setName(String name) { return name; } }
Sample Table data:
id | name |
1 | leo |
2 | yui |