Android Open Source - FastBudget3 Fast Budget Migration

From Project

Back to project page FastBudget3.


The source code is released under:

GNU General Public License

If you think the Android project FastBudget3 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.splitstudio.fastbudget3.db;
/*from ww  w.j  a v  a2 m*/
import android.content.Context;

import com.db4o.ObjectContainer;

import de.splitstudio.utils.db.DatabaseMigration;

public class FastBudgetMigration extends DatabaseMigration {

  public FastBudgetMigration(Context context) {

  protected void migrate(int lastVersion, int currentVersion, ObjectContainer db) {
    if (lastVersion == 0) {

  private void deleteNullExpenses(ObjectContainer db) {
    for (Category category : db.query(Category.class)) {
      while (category.getExpenses().remove(null)) {};


Java Source Code List