Package org.apache.ddlutils.model

Examples of org.apache.ddlutils.model.NonUniqueIndex


    for (Field field : info.updateFields) {
      Index index = field.getAnnotation(Index.class);
      if(index != null) {
        String[] names = index.value();
        for (String name : names) {
          NonUniqueIndex i = indexes.get(name);
          if(i == null) {
            i = new NonUniqueIndex();
            i.setName(name);
            indexes.put(name, i);
            table.addIndex(i);
          }
          fillIndex(i, field);
        }
      }
     
      Unique unique = field.getAnnotation(Unique.class);
      if(unique != null) {
        String[] names = unique.value();
        for (String name : names) {
          UniqueIndex i = uniques.get(name);
          if(i == null) {
            i = new UniqueIndex();
            i.setName(name);
            uniques.put(name, i);
            table.addIndex(i);
          }
          fillIndex(i, field);
        }
View Full Code Here


 
          if (index == null)
          {
              if (((Boolean)values.get("NON_UNIQUE")).booleanValue())
              {
                  index = new NonUniqueIndex();
              }
              else
              {
                  index = new UniqueIndex();
              }
View Full Code Here

TOP

Related Classes of org.apache.ddlutils.model.NonUniqueIndex

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.