Class QueryMapper.Field

java.lang.Object
org.springframework.data.r2dbc.query.QueryMapper.Field
Direct Known Subclasses:
QueryMapper.MetadataBackedField
Enclosing class:
QueryMapper

protected static class QueryMapper.Field extends Object
Value object to represent a field and its meta-information.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.springframework.data.relational.core.sql.SqlIdentifier
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Field(org.springframework.data.relational.core.sql.SqlIdentifier name)
    Creates a new QueryMapper.Field without meta-information but the given name.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.relational.core.sql.SqlIdentifier
    Returns the key to be used in the mapped document eventually.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      protected final org.springframework.data.relational.core.sql.SqlIdentifier name
  • Constructor Details

    • Field

      public Field(org.springframework.data.relational.core.sql.SqlIdentifier name)
      Creates a new QueryMapper.Field without meta-information but the given name.
      Parameters:
      name - must not be null or empty.
  • Method Details

    • getMappedColumnName

      public org.springframework.data.relational.core.sql.SqlIdentifier getMappedColumnName()
      Returns the key to be used in the mapped document eventually.
      Returns:
    • getTypeHint

      public TypeInformation<?> getTypeHint()