aboutsummaryrefslogtreecommitdiff
path: root/src/net/cbaines/suma/DatabaseHelper.java
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2012-01-29 23:46:01 +0000
committerChristopher Baines <cbaines8@gmail.com>2012-01-29 23:46:01 +0000
commite78d1fa40d32a97018e2831fd0592d6b6c1b3d7e (patch)
treee8cd9065c2dc756a7357ebb8ee49cb21fbe41287 /src/net/cbaines/suma/DatabaseHelper.java
parent75207a422e195ad26584d6a5d186dfd3e20f38f9 (diff)
downloadsouthamptonuniversitymap-e78d1fa40d32a97018e2831fd0592d6b6c1b3d7e.tar
southamptonuniversitymap-e78d1fa40d32a97018e2831fd0592d6b6c1b3d7e.tar.gz
Changed the icons, updated the database, and implemented more of the next/previous stop movement stuff, needs more work though.
Diffstat (limited to 'src/net/cbaines/suma/DatabaseHelper.java')
-rw-r--r--src/net/cbaines/suma/DatabaseHelper.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/net/cbaines/suma/DatabaseHelper.java b/src/net/cbaines/suma/DatabaseHelper.java
index d5790a3..37ed06e 100644
--- a/src/net/cbaines/suma/DatabaseHelper.java
+++ b/src/net/cbaines/suma/DatabaseHelper.java
@@ -51,7 +51,6 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
private Dao<RouteStops, Integer> routeStopsDao = null;
private Dao<Site, String> siteDao = null;
private Dao<Bus, Integer> busDao = null;
- private Dao<Direction, Integer> directionDao = null;
private Context context;
@@ -71,7 +70,6 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
TableUtils.createTable(connectionSource, RouteStops.class);
TableUtils.createTable(connectionSource, Site.class);
TableUtils.createTable(connectionSource, Bus.class);
- TableUtils.createTable(connectionSource, Direction.class);
} catch (SQLException e) {
Log.e(DatabaseHelper.class.getName(), "Can't create database", e);
throw new RuntimeException(e);
@@ -143,16 +141,6 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
/**
* Returns the Database Access Object (DAO) for our SimpleData class. It will create it or just give the cached value.
*/
- public Dao<Direction, Integer> getDirectionDao() throws SQLException {
- if (directionDao == null) {
- directionDao = getDao(Direction.class);
- }
- return directionDao;
- }
-
- /**
- * Returns the Database Access Object (DAO) for our SimpleData class. It will create it or just give the cached value.
- */
public Dao<Bus, Integer> getBusDao() throws SQLException {
if (busDao == null) {
busDao = getDao(Bus.class);
@@ -267,6 +255,5 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
routeStopsDao = null;
siteDao = null;
busDao = null;
- directionDao = null;
}
} \ No newline at end of file