Examples of autoIncrement()


Examples of net.canarymod.database.Column.autoIncrement()

            it = columns.keySet().iterator();

            int index = 1;
            while (it.hasNext()) {
                column = it.next();
                if (!column.autoIncrement()) {
                    ps.setObject(index, convert(columns.get(column)));
                    index++;
                }
            }
            rs = ps.executeQuery();
View Full Code Here

Examples of net.canarymod.database.Column.autoIncrement()

            Iterator<Column> it = columns.keySet().iterator();

            Column column;
            while (it.hasNext()) {
                column = it.next();
                if (!column.autoIncrement()) {
                    fields.append("`").append(column.columnName()).append("`").append(",");
                    values.append("?").append(",");
                }
            }
            if (fields.length() > 0) {
View Full Code Here

Examples of net.canarymod.database.Column.autoIncrement()

            Column column;
            while (it.hasNext()) {
                column = it.next();
                fields.append("`").append(column.columnName()).append("` ");
                fields.append(this.getDataTypeSyntax(column.dataType()));
                if (column.autoIncrement()) {
                    fields.append(" AUTO_INCREMENT");
                }
                if (column.columnType().equals(Column.ColumnType.PRIMARY)) {
                    primary = column.columnName();
                }
View Full Code Here

Examples of net.canarymod.database.Column.autoIncrement()

            Iterator<Column> it = columns.keySet().iterator();

            Column column;
            while (it.hasNext()) {
                column = it.next();
                if (!column.autoIncrement()) {
                    if (sb.length() > 0) {
                        sb.append(" AND '").append(column.columnName());
                    }
                    else {
                        sb.append("'").append(column.columnName());
View Full Code Here

Examples of net.canarymod.database.Column.autoIncrement()

            it = columns.keySet().iterator();

            int index = 1;
            while (it.hasNext()) {
                column = it.next();
                if (!column.autoIncrement()) {
                    ps.setObject(index, this.convert(columns.get(column)));
                    index++;
                }
            }
            rs = ps.executeQuery();
View Full Code Here

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

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

          {
        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

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

        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

Examples of org.h2.jaqu.Table.JQColumn.autoIncrement()

            if (hasAnnotation) {
                JQColumn col = f.getAnnotation(JQColumn.class);
                if (!StringUtils.isNullOrEmpty(col.name())) {
                    columnName = col.name();
                }
                isAutoIncrement = col.autoIncrement();
                isPrimaryKey = col.primaryKey();
                maxLength = col.maxLength();
                trimString = col.trimString();
                allowNull = col.allowNull();
                defaultValue = col.defaultValue();
View Full Code Here

Examples of org.qdao.annotation.Column.autoIncrement()

        cd.length = co.length();
        cd.nullable = co.nullable();
        cd.type = co.type();
        cd.javaField = fields[i].getName();
        cd.primaryKey = null != pk;
        cd.autoIncrement = co.autoIncrement();
        cd.defaultValue = co.defaultValue();
        columnDescriptors.add(cd);
       
        if (cd.primaryKey) {
          pks.add(cd);
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.