Examples of sqlType()


Examples of de.zalando.sprocwrapper.SProcParam.sqlType()

                        final String dbTypeName = sParam.type();

                        try {
                            storedProcedure.addParam(StoredProcedureParameter.createParameter(clazz, genericType,
                                    method, dbTypeName, sParam.sqlType(), pos, sParam.sensitive()));
                        } catch (final InstantiationException | IllegalAccessException e) {
                            LOG.error("Could not instantiate StoredProcedureParameter. ABORTING.", e);
                            return null;
                        }
                    }
View Full Code Here

Examples of jodd.db.oom.meta.DbColumn.sqlType()

      isId = true;
    } else {
      DbColumn dbColumn = field.getAnnotation(DbColumn.class);
      if (dbColumn != null) {
        columnName = dbColumn.value().trim();
        sqlTypeClass = dbColumn.sqlType();
      } else {
        if (isAnnotated == true) {
          return null;
        }
      }
View Full Code Here

Examples of jodd.db.oom.meta.DbColumn.sqlType()

        dbColumn = property.getWriteMethodDescriptor().getMethod().getAnnotation(DbColumn.class);
      }

      if (dbColumn != null) {
        columnName = dbColumn.value().trim();
        sqlTypeClass = dbColumn.sqlType();
      } else {
        if (isAnnotated == true) {
          return null;
        }
      }
View Full Code Here

Examples of jodd.db.oom.meta.DbId.sqlType()

    Class<? extends SqlType> sqlTypeClass = null;

    DbId dbId = field.getAnnotation(DbId.class);
    if (dbId != null) {
      columnName = dbId.value().trim();
      sqlTypeClass = dbId.sqlType();
      isId = true;
    } else {
      DbColumn dbColumn = field.getAnnotation(DbColumn.class);
      if (dbColumn != null) {
        columnName = dbColumn.value().trim();
View Full Code Here

Examples of jodd.db.oom.meta.DbId.sqlType()

      dbId = property.getWriteMethodDescriptor().getMethod().getAnnotation(DbId.class);
    }

    if (dbId != null) {
      columnName = dbId.value().trim();
      sqlTypeClass = dbId.sqlType();
      isId = true;
    } else {
      DbColumn dbColumn = null;

      if (property.getFieldDescriptor() != null) {
View Full Code Here

Examples of org.hibernate.type.descriptor.converter.AttributeConverterTypeAdapter.sqlType()

      final AttributeConverterTypeAdapter adapterType = (AttributeConverterTypeAdapter) expectedType;
      if ( getDataType().getReturnedClass().equals( adapterType.getModelType() ) ) {
        // apply the converter
        final AttributeConverter converter = ( (AttributeConverterTypeAdapter) expectedType ).getAttributeConverter();
        final Object converted = converter.convertToDatabaseColumn( getLiteralValue() );
        if ( isCharacterData( adapterType.sqlType() ) ) {
          setText( "'" + converted.toString() + "'" );
        }
        else {
          setText( converted.toString() );
        }
View Full Code Here

Examples of org.hibernate.type.descriptor.converter.AttributeConverterTypeAdapter.sqlType()

      final AttributeConverterTypeAdapter adapterType = (AttributeConverterTypeAdapter) expectedType;
      if ( getDataType().getReturnedClass().equals( adapterType.getModelType() ) ) {
        // apply the converter
        final AttributeConverter converter = ( (AttributeConverterTypeAdapter) expectedType ).getAttributeConverter();
        final Object converted = converter.convertToDatabaseColumn( getLiteralValue() );
        if ( isCharacterData( adapterType.sqlType() ) ) {
          setText( "'" + converted.toString() + "'" );
        }
        else {
          setText( converted.toString() );
        }
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.