sql = "INSERT INTO " + TABLE_ACTIVITIES + " (actid, actdescription, actdefaultgrant, actenabled) " +
"VALUES ('" + DataAgent.sqlFormatTextValue(activity.getId()) + "', " +
"'" + DataAgent.sqlFormatTextValue(activity.getDescription()) + "', " +
(activity.isGrantedByDefault() ? "true" : "false") + ", " +
(activity.isEnabled() ? "true" : "false") + ")";
conn.execute(sql);
}
catch (Exception ex)
{
throw new AuthorizationException(ex.getMessage(), ex);
}