All Implemented Interfaces:
Serializable

public class EncodedStringField extends StringField
Created by carl.gould on 8/27/2014.
See Also:
  • Constructor Details

  • Method Details

    • queryFieldValue

      public Object queryFieldValue(ResultSet rs, int sqlIndex) throws Exception
      Description copied from class: SFieldMeta
      Issues a JDBC get*() on the result set for the field and converts the database type to the appropriate internal type, eg, Double for a double field. The first column has sqlIndex==1.
      Overrides:
      queryFieldValue in class SFieldString
      Throws:
      Exception
    • writeFieldValue

      public Object writeFieldValue(Object value)
      Description copied from class: SFieldMeta
      Converts a single value from internal representation to database representation. Used primarily by the writeFieldValue above, but also used for converting optimistic lock values in SRecordInstance.flush.

      Overidden by SFieldBoolean. (not by SFieldString).

      NOTE: This does NOT need to handle NULL values (those are handled seperately by SRecordInstance)

      Overrides:
      writeFieldValue in class SFieldMeta
    • setDefault

      public EncodedStringField setDefault(String value)
      Overrides:
      setDefault in class StringField
    • setDefaultSupplier

      public EncodedStringField setDefaultSupplier(Supplier<String> supplier)
      Overrides:
      setDefaultSupplier in class StringField