Ejemplo n.º 1
0
 /**
  * Sets database accessed by this DAO. Used for dependency-injected initialization by child
  * classes and unit tests
  *
  * @param database
  */
 public void setDatabase(AbstractDatabase database) {
   if (database == this.database) return;
   this.database = database;
   table = database.getTable(modelClass);
 }