Enum Class Adapter.Via

java.lang.Object
java.lang.Enum<Adapter.Via>
org.postgresql.pljava.Adapter.Via
All Implemented Interfaces:
Serializable, Comparable<Adapter.Via>, Constable
Enclosing class:
Adapter<T,U>

protected static enum Adapter.Via extends Enum<Adapter.Via>
Specifies, for a leaf adapter (one not composed over a lower adapter), the form in which the value fetched from PostgreSQL will be presented to it (or how it will produce a value to be stored to PostgreSQL).

At this level, an adapter is free to use Via.CHAR and treat char internally as a 16-bit unsigned integral type with no other special meaning. If an adapter will return an unsigned 16-bit type, it should extend either AsShort.Unsigned or AsChar, based on whether the value it returns represents UTF-16 character data.

  • Enum Constant Details

  • Method Details

    • values

      public static Adapter.Via[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Adapter.Via valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null