Examples of objectToSQLString()


Examples of org.hibernate.type.DiscriminatorType.objectToSQLString()

        discriminatorInsertable = entityBinding.getHierarchyDetails().getEntityDiscriminator().isInserted()
            && ! DerivedValue.class.isInstance( discriminatorRelationalValue );
        try {
          DiscriminatorType dtype = ( DiscriminatorType ) discriminatorType;
          discriminatorValue = dtype.stringToObject( entityBinding.getDiscriminatorMatchValue() );
          discriminatorSQLValue = dtype.objectToSQLString( discriminatorValue, factory.getDialect() );
        }
        catch (ClassCastException cce) {
          throw new MappingException("Illegal discriminator type: " + discriminatorType.getName() );
        }
        catch (Exception e) {
View Full Code Here

Examples of org.hibernate.type.LiteralType.objectToSQLString()

      throw new QueryException( QueryTranslator.ERROR_CANNOT_DETERMINE_TYPE + node.getText() );
    }
    try {
      LiteralType literalType = ( LiteralType ) type;
      Dialect dialect = walker.getSessionFactoryHelper().getFactory().getDialect();
      node.setText( literalType.objectToSQLString( value, dialect ) );
    }
    catch ( Exception e ) {
      throw new QueryException( QueryTranslator.ERROR_CANNOT_FORMAT_LITERAL + node.getText(), e );
    }
    node.setDataType( type );
View Full Code Here

Examples of org.hibernate.type.LiteralType.objectToSQLString()

  private String resolveToLiteralString(Type type) {
    try {
      LiteralType literalType = ( LiteralType ) type;
      Dialect dialect = factory.getDialect();
      return literalType.objectToSQLString( constantValue, dialect );
    }
    catch ( Throwable t ) {
      throw new QueryException( QueryTranslator.ERROR_CANNOT_FORMAT_LITERAL + constantExpression, t );
    }
  }
View Full Code Here

Examples of org.hibernate.type.LiteralType.objectToSQLString()

        ? heuristicType
        : expectedType;
    try {
      final LiteralType literalType = (LiteralType) type;
      final Dialect dialect = factory.getDialect();
      return literalType.objectToSQLString( constantValue, dialect );
    }
    catch (Exception t) {
      throw new QueryException( QueryTranslator.ERROR_CANNOT_FORMAT_LITERAL + constantExpression, t );
    }
  }
View Full Code Here

Examples of org.hibernate.type.LiteralType.objectToSQLString()

    }
    try {
      LiteralType literalType = (LiteralType) type;
      Dialect dialect = walker.getSessionFactoryHelper().getFactory().getDialect();
      //noinspection unchecked
      node.setText( literalType.objectToSQLString( value, dialect ) );
    }
    catch (Exception e) {
      throw new QueryException( QueryTranslator.ERROR_CANNOT_FORMAT_LITERAL + node.getText(), e );
    }
    node.setDataType( type );
View Full Code Here

Examples of org.hibernate.type.LiteralType.objectToSQLString()

      throw new QueryException( QueryTranslator.ERROR_CANNOT_DETERMINE_TYPE + node.getText() );
    }
    try {
      LiteralType literalType = ( LiteralType ) type;
      Dialect dialect = walker.getSessionFactoryHelper().getFactory().getDialect();
      node.setText( literalType.objectToSQLString( value, dialect ) );
    }
    catch ( Exception e ) {
      throw new QueryException( QueryTranslator.ERROR_CANNOT_FORMAT_LITERAL + node.getText(), e );
    }
    node.setDataType( type );
View Full Code Here

Examples of org.hibernate.type.LiteralType.objectToSQLString()

  private String resolveToLiteralString(Type type) {
    try {
      LiteralType literalType = ( LiteralType ) type;
      Dialect dialect = factory.getDialect();
      return literalType.objectToSQLString( constantValue, dialect );
    }
    catch ( Throwable t ) {
      throw new QueryException( QueryTranslator.ERROR_CANNOT_FORMAT_LITERAL + constantExpression, t );
    }
  }
View Full Code Here

Examples of org.hibernate.type.LiteralType.objectToSQLString()

      throw new QueryException( QueryTranslator.ERROR_CANNOT_DETERMINE_TYPE + node.getText() );
    }
    try {
      LiteralType literalType = ( LiteralType ) type;
      Dialect dialect = walker.getSessionFactoryHelper().getFactory().getDialect();
      node.setText( literalType.objectToSQLString( value, dialect ) );
    }
    catch ( Exception e ) {
      throw new QueryException( QueryTranslator.ERROR_CANNOT_FORMAT_LITERAL + node.getText(), e );
    }
    node.setDataType( type );
View Full Code Here

Examples of org.hibernate.type.LiteralType.objectToSQLString()

  private String resolveToLiteralString(Type type) {
    try {
      LiteralType literalType = ( LiteralType ) type;
      Dialect dialect = factory.getDialect();
      return literalType.objectToSQLString( constantValue, dialect );
    }
    catch ( Throwable t ) {
      throw new QueryException( QueryTranslator.ERROR_CANNOT_FORMAT_LITERAL + constantExpression, t );
    }
  }
View Full Code Here

Examples of org.hibernate.type.LiteralType.objectToSQLString()

      throw new QueryException( QueryTranslator.ERROR_CANNOT_DETERMINE_TYPE + node.getText() );
    }
    try {
      LiteralType literalType = ( LiteralType ) type;
      Dialect dialect = walker.getSessionFactoryHelper().getFactory().getDialect();
      node.setText( literalType.objectToSQLString( value, dialect ) );
    }
    catch ( Exception e ) {
      throw new QueryException( QueryTranslator.ERROR_CANNOT_FORMAT_LITERAL + node.getText(), e );
    }
    node.setDataType( type );
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.