Code example for SQLiteDatabase

Methods: getPath

0
		super(Beans.getBean(Context.class), DATABASE_NAME, null, VERSION);
	} 
	 
	@Override 
	public void onOpen(SQLiteDatabase db) {
		Ln.d("Opening database named [" + db.getPath() + "]");
		super.onOpen(db);
	} 
 
	@Override 
	public void onCreate(final SQLiteDatabase db) {
		Ln.d("Firing DatabaseCreation Event."); 
		eventManager.fire(new DatabaseCreation(db));
 
		Ln.d("Creating Tables."); 
		List<Class<?>> tables = Dex.getModels(Beans.getBean(Context.class));
		for (Class<?> table : tables) {
			db.execSQL(Model.getSQLCreateTable(table));
			Ln.d("Table for class " + table.toString() + " created.");
		}