Exemplo n.º 1
0
 void addIndexes(IndexType type, String[] indexes) {
   for (String index : indexes) {
     List<String> validatedColumns = getColumns(index);
     if (validatedColumns == null) {
       return;
     }
     addIndex(type, validatedColumns);
   }
 }
Exemplo n.º 2
0
 /**
  * Defines an index with the specified model fields.
  *
  * @param type the index type (STANDARD, HASH, UNIQUE, UNIQUE_HASH)
  * @param modelFields the ordered list of model fields
  */
 void addIndex(IndexType type, Object[] modelFields) {
   List<String> columnNames = mapColumnNames(modelFields);
   addIndex(type, columnNames);
 }