Exemplo n.º 1
0
 @Override
 public int store() throws MiapeDatabaseException, MiapeSecurityException {
   if (this.dbManager != null) {
     id = dbManager.saveProject(this);
   }
   throw new MiapeDatabaseException("The persistance method is not defined.");
 }
Exemplo n.º 2
0
 @Override
 public void delete(String userName, String password)
     throws MiapeDatabaseException, MiapeSecurityException {
   if (this.dbManager != null) {
     dbManager.deleteProjectById(this.getId(), userName, password);
   }
   throw new MiapeDatabaseException("The persistance method is not defined.");
 }