Пример #1
0
 /** Munge the table for all the fields in the row. */
 protected AbstractRecord convertToFullyQualifiedRow(AbstractRecord row) {
   DatabaseRecord result = new DatabaseRecord(row.size());
   for (Enumeration stream = row.keys(); stream.hasMoreElements(); ) {
     DatabaseField key = (DatabaseField) stream.nextElement();
     result.put(new DatabaseField(key.getName(), this.getRootElement()), row.get(key));
   }
   return result;
 }
Пример #2
0
 /** Set the primary key element names. The order may be significant. */
 public void setPrimaryKeyElementNames(Vector primaryKeyElementNames) {
   this.clearPrimaryKeyElements();
   for (Enumeration stream = primaryKeyElementNames.elements(); stream.hasMoreElements(); ) {
     this.addPrimaryKeyElementName((String) stream.nextElement());
   }
 }