Пример #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 JwSqlUpdate composeUpdate(AcMobileProfile e) {
   JwSqlUpdate st = createUpdate();
   st.setTable(TABLE);
   st.where().isEqual(NAME, e.getName());
   return st;
 }
Пример #3
0
 public void verifyNoName(AcMobileProfile e) {
   JwSqlSelect st = getSelect();
   st.where().isEqual(ALIAS, NAME, e.getName());
   AcMobileProfile o = composeFirst(st);
   if (o != null) JwErrorUtility.throwNewUniqueError("AcMobileProfile", "Name", e.getName());
 }