예제 #1
0
  public JwSqlInsert _checkAndComposeInsert(JwList<AcMobileProfile> v) {
    for (AcMobileProfile e : v) {
      defaultUpdateCount(e);
      e.validate();
      verifyNoMatching(e);
    }

    JwSqlInsert st = createInsert();
    st.setTable(TABLE);
    populateInsertColumns(st);

    for (AcMobileProfile e : v) {
      st.startNewRow();
      st.addStringValue(e.getName());
    }
    return st;
  }
예제 #2
0
 public void update(AcMobileProfile e) {
   e.validate();
   JwSqlUpdate st = composeUpdate(e);
   int i = execute(st);
   if (i != 1) error("Unable to update AcMobileProfile.  Rows updated: %s.", i);
 }