Examples of convertJavaFieldToSqlArgValue()


Examples of com.j256.ormlite.field.FieldType.convertJavaFieldToSqlArgValue()

      // implement {@link DatabaseField#version()}
      if (versionFieldTypeIndex >= 0 && args[versionFieldTypeIndex] == null) {
        // if the version is null then we need to initialize it before create
        FieldType versionFieldType = argFieldTypes[versionFieldTypeIndex];
        versionDefaultValue = versionFieldType.moveToNextValue(null);
        args[versionFieldTypeIndex] = versionFieldType.convertJavaFieldToSqlArgValue(versionDefaultValue);
      }

      int rowC;
      try {
        rowC = databaseConnection.insert(statement, args, argFieldTypes, keyHolder);
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.