Package org.cruxframework.crux.core.client.db.annotation.Store

Examples of org.cruxframework.crux.core.client.db.annotation.Store.Key.autoIncrement()


    for (JMethod method : getterMethods)
        {
          Key key = method.getAnnotation(Key.class);
      if (key != null)
          {
        if (result && !key.autoIncrement())
        {
          throw new CruxGeneratorException("Invalid composite key declaration on objectStore ["+targetObject.getQualifiedSourceName()+"]. Can not use autoIncrement only on subset on keyPath set.");
        }
        if (key.autoIncrement() && !method.getReturnType().getQualifiedSourceName().equals("int") &&
          !method.getReturnType().getQualifiedSourceName().equals(Integer.class.getCanonicalName()))
View Full Code Here


          {
        if (result && !key.autoIncrement())
        {
          throw new CruxGeneratorException("Invalid composite key declaration on objectStore ["+targetObject.getQualifiedSourceName()+"]. Can not use autoIncrement only on subset on keyPath set.");
        }
        if (key.autoIncrement() && !method.getReturnType().getQualifiedSourceName().equals("int") &&
          !method.getReturnType().getQualifiedSourceName().equals(Integer.class.getCanonicalName()))
        {
          throw new CruxGeneratorException("Invalid key declaration on objectStore ["+targetObject.getQualifiedSourceName()+"]. Can not use autoIncrement on a non int key.");
        }
            result = key.autoIncrement();
View Full Code Here

        if (key.autoIncrement() && !method.getReturnType().getQualifiedSourceName().equals("int") &&
          !method.getReturnType().getQualifiedSourceName().equals(Integer.class.getCanonicalName()))
        {
          throw new CruxGeneratorException("Invalid key declaration on objectStore ["+targetObject.getQualifiedSourceName()+"]. Can not use autoIncrement on a non int key.");
        }
            result = key.autoIncrement();
          }
        }
    return result;
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.