Package org.postgresql.core.v3

# Interface SqlSerializationContext

public interface SqlSerializationContext
Specifies the properties required to convert SQL to String.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `getIdempotent()`
  Returns true if the SQL to String conversion should be idempotent.
  `boolean`
  `getStandardConformingStrings()`
  Returns true if strings literals should use `standard_conforming_strings=on` encoding.
  `static SqlSerializationContext`
  `of(boolean standardConformingStrings, boolean idempotent)`
  Returns SqlSerializationContext instance with the given parameters

- ## Method Details

  - ### of

    static SqlSerializationContext of(boolean standardConformingStrings, boolean idempotent)
    Returns SqlSerializationContext instance with the given parameters
    Parameters:
      `standardConformingStrings` - true when string literals should be standard conforming
      `idempotent` - true when idempotent conversion is needed
    Returns:
      Returns SqlSerializationContext instance with the given parameters

  - ### getStandardConformingStrings

    boolean getStandardConformingStrings()
    Returns true if strings literals should use `standard_conforming_strings=on` encoding.
    Returns:
      true if strings literals should use `standard_conforming_strings=on` encoding.

  - ### getIdempotent

    boolean getIdempotent()
    Returns true if the SQL to String conversion should be idempotent. For instance, if a query parameter comes from an `InputStream`, then the stream could be skipped when writing SQL with idempotent mode.
    Returns:
      true if the SQL to String conversion should be idempotent