Class TemporalMapping

Direct Known Subclasses:
DateMapping, SqlDateMapping, SqlTimeMapping, SqlTimestampMapping

public abstract class TemporalMapping extends SingleFieldMapping
Abstract base mapping for all temporal types.
  • Constructor Details

    • TemporalMapping

      public TemporalMapping()
  • Method Details

    • getDefaultLength

      public int getDefaultLength(int index)
      Description copied from class: SingleFieldMapping
      Accessor for the default length for this type in the datastore (if applicable).
      Overrides:
      getDefaultLength in class SingleFieldMapping
      Parameters:
      index - requested column index.
      Returns:
      Default length
    • getDefaultLengthAsString

      protected abstract int getDefaultLengthAsString()
    • getJavaTypeForColumnMapping

      public String getJavaTypeForColumnMapping(int index)
      Description copied from class: SingleFieldMapping
      Accessor for the name of the java-type actually used when mapping the particular datastore field. This java-type must have an entry in the datastore mappings.
      Overrides:
      getJavaTypeForColumnMapping in class SingleFieldMapping
      Parameters:
      index - requested column index.
      Returns:
      the name of java-type for the requested column.