code: protected void setStatusInDB(final boolean _status)
          throws EFapsException
      {
          Connection con = null;
          try {
              con = Context.getConnection();
  
              PreparedStatement stmt = null;
              final StringBuilder cmd = new StringBuilder();
              try {
                  cmd.append(" update T_USERABSTRACT set STATUS=? where ID=").append(getId());
                  stmt = con.prepareStatement(cmd.toString());
                  stmt.setBoolean(1, _status);
                  final int rows = stmt.executeUpdate();
                  if (rows == 0) {
                      AbstractUserObject.LOG.error("could not execute '" + cmd.toString()
                              + "' to update status information for person '" + toString() + "'");
                      throw new EFapsException(getClass(), "setStatusInDB.NotUpdated", cmd.toString(), getName());
                  }
              } catch (final SQLException e) {
                  AbstractUserObject.LOG.error("could not execute '" + cmd.toString()
                          + "' to update status information for person '" + toString() + "'", e);
                  throw new EFapsException(getClass(), "setStatusInDB.SQLException", e, cmd.toString(), getName());
              } finally {
                  try {
                      if (stmt != null) {
                          stmt.close();
                      }
                      con.commit();
                  } catch (final SQLException e) {
                      throw new EFapsException(getClass(), "setStatusInDB.SQLException", e, cmd.toString(), getName());
                  }
              }
          } finally {
              try {
                  if (con != null && !con.isClosed()) {
                      con.close();
                  }
              } catch (final SQLException e) {
                  throw new CacheReloadException("Cannot read a type for an attribute.", e);
              }
          }
      }
docs: Method to set the status of a UserObject in the eFaps Database.
  
  @param _status status to set
  @throws EFapsException on error