Class LocaleType

java.lang.Object
com.querydsl.sql.types.AbstractType<Locale>
com.querydsl.sql.types.LocaleType
All Implemented Interfaces:
Type<Locale>

public class LocaleType extends AbstractType<Locale>
LocaleType maps Locale to String on the JDBC level
Author:
tiwe
  • Constructor Details

    • LocaleType

      public LocaleType()
    • LocaleType

      public LocaleType(int type)
  • Method Details

    • getReturnedClass

      public Class<Locale> getReturnedClass()
      Description copied from interface: Type
      Get the returned type
      Returns:
      returned class
    • getValue

      @Nullable public @Nullable Locale getValue(ResultSet rs, int startIndex) throws SQLException
      Description copied from interface: Type
      Get the object from the result set
      Parameters:
      rs - result set
      startIndex - column index in result set
      Returns:
      value
      Throws:
      SQLException
    • toLocale

      public static Locale toLocale(String val)
    • setValue

      public void setValue(PreparedStatement st, int startIndex, Locale value) throws SQLException
      Description copied from interface: Type
      Set the object to the statement
      Parameters:
      st - statement
      startIndex - column index in statement
      value - value to be set
      Throws:
      SQLException