Class ForcedType

    • Constructor Detail

      • ForcedType

        public ForcedType()
    • Method Detail

      • getPriority

        public Integer getPriority()
        The priority among forced types in which to apply this one. Forced types of equal priority will be applied in the order in which they're added to the forced types list (e.g. the Maven lexical XML order)
      • setPriority

        public void setPriority​(Integer value)
        The priority among forced types in which to apply this one. Forced types of equal priority will be applied in the order in which they're added to the forced types list (e.g. the Maven lexical XML order)
      • getName

        public String getName()
        The name (in SQLDataType) to force any matches to
      • setName

        public void setName​(String value)
        The name (in SQLDataType) to force any matches to
      • setUserType

        public void setUserType​(String value)
        The type of the user type - e.g. java.time.LocalDateTime.

        If provided, getName() will be ignored, and either getConverter() or getBinding() is required

      • getConverter

        public String getConverter()
        A converter implementation for the getUserType().
      • setConverter

        public void setConverter​(String value)
        A converter implementation for the getUserType().
      • setEnumConverter

        public void setEnumConverter​(Boolean value)
        Sets the value of the enumConverter property.
        Parameters:
        value - allowed object is Boolean
      • getBinding

        public String getBinding()
        A Binding implementation for the custom type.
      • setBinding

        public void setBinding​(String value)
        A Binding implementation for the custom type.
      • getExcludeExpression

        public String getExcludeExpression()
        A Java regular expression matching columns, parameters, attributes, etc. which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
      • setExcludeExpression

        public void setExcludeExpression​(String value)
        A Java regular expression matching columns, parameters, attributes, etc. which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
      • getIncludeExpression

        public String getIncludeExpression()
        A Java regular expression matching columns, parameters, attributes, etc. to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
      • setIncludeExpression

        public void setIncludeExpression​(String value)
        A Java regular expression matching columns, parameters, attributes, etc. to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
      • setExpression

        public void setExpression​(String value)
        The same as getIncludeExpression(). This is kept for backwards compatibility reasons.
      • setExpressions

        public void setExpressions​(String value)
        The same as getIncludeExpression(). This is kept for backwards compatibility reasons.
      • getSql

        public String getSql()
        A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.
      • setSql

        public void setSql​(String value)
        A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.
      • getExcludeTypes

        public String getExcludeTypes()
        A Java regular expression matching data types which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
      • setExcludeTypes

        public void setExcludeTypes​(String value)
        A Java regular expression matching data types which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
      • getIncludeTypes

        public String getIncludeTypes()
        A Java regular expression matching data types to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
      • setIncludeTypes

        public void setIncludeTypes​(String value)
        A Java regular expression matching data types to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
      • getTypes

        public String getTypes()
        The same as getIncludeTypes(). This is kept for backwards compatibility reasons.
      • setTypes

        public void setTypes​(String value)
        The same as getIncludeTypes(). This is kept for backwards compatibility reasons.
      • getNullability

        public Nullability getNullability()
        Whether this forced type should apply to nullable / non-nullable / all columns
      • setNullability

        public void setNullability​(Nullability value)
        Whether this forced type should apply to nullable / non-nullable / all columns
      • getObjectType

        public ForcedTypeObjectType getObjectType()
        Whether this forced type should apply to all object types, or only to specific ones
      • setObjectType

        public void setObjectType​(ForcedTypeObjectType value)
        Whether this forced type should apply to all object types, or only to specific ones
      • withPriority

        public ForcedType withPriority​(Integer value)
        The priority among forced types in which to apply this one. Forced types of equal priority will be applied in the order in which they're added to the forced types list (e.g. the Maven lexical XML order)
      • withExcludeExpression

        public ForcedType withExcludeExpression​(String value)
        A Java regular expression matching columns, parameters, attributes, etc. which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
      • withIncludeExpression

        public ForcedType withIncludeExpression​(String value)
        A Java regular expression matching columns, parameters, attributes, etc. to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
      • withSql

        public ForcedType withSql​(String value)
        A SQL statement that produces a table with one column containing the matched qualified or unqualified column names.
      • withExcludeTypes

        public ForcedType withExcludeTypes​(String value)
        A Java regular expression matching data types which must not have this type. Excludes match before includes, i.e. excludes have a higher priority.
      • withIncludeTypes

        public ForcedType withIncludeTypes​(String value)
        A Java regular expression matching data types to be forced to have this type. If provided, both "includeExpression" and "includeTypes" must match.
      • withNullability

        public ForcedType withNullability​(Nullability value)
        Whether this forced type should apply to nullable / non-nullable / all columns
      • withObjectType

        public ForcedType withObjectType​(ForcedTypeObjectType value)
        Whether this forced type should apply to all object types, or only to specific ones
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object