Class GeometryLiteralFormatter<T>

java.lang.Object
org.hibernate.spatial.GeometryLiteralFormatter<T>
All Implemented Interfaces:
Serializable, JdbcLiteralFormatter<T>

public class GeometryLiteralFormatter<T> extends Object implements JdbcLiteralFormatter<T>
See Also:
  • Field Details

    • javaType

      protected final JavaType<T> javaType
    • wktDialect

      protected final org.geolatte.geom.codec.Wkt.Dialect wktDialect
    • geomFromTextName

      protected final String geomFromTextName
  • Constructor Details

    • GeometryLiteralFormatter

      public GeometryLiteralFormatter(JavaType<T> javaType, org.geolatte.geom.codec.Wkt.Dialect wktDialect, String geomFromTextName)
  • Method Details

    • appendJdbcLiteral

      public void appendJdbcLiteral(SqlAppender appender, T value, Dialect dialect, WrapperOptions wrapperOptions)
      Description copied from interface: JdbcLiteralFormatter
      Append a SQL literal representing the given Java value to a fragment of SQL which is being built.
      Specified by:
      appendJdbcLiteral in interface JdbcLiteralFormatter<T>
      Parameters:
      appender - an operation that appends to the SQL fragment
      value - a Java object whose value can be represented as a SQL literal
      dialect - the SQL dialect