Package guru.mikelue.foxglove.functional
Interface ColumnMatchers
public interface ColumnMatchers
Built-in column matchers.
- See Also:
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ColumnMatcherforJdbcType(JDBCType targetType) Builds a matcher for matching a type of JDBC.static ColumnMatcherBuilds a matcher for matching name(case incensitive) of a column.static ColumnMatcherforTypeName(String typeName) Builds a matcher for matching type name(case incensitive) ofColumnMeta.static ColumnMatcherhasProperty(ColumnMeta.Property checkedProperty) Builds a matcher for a column that has a specific property.
-
Method Details
-
forName
Builds a matcher for matching name(case incensitive) of a column.- Parameters:
columnName- The column name to be checked- Returns:
- A matcher for that column name
-
hasProperty
Builds a matcher for a column that has a specific property.- Parameters:
checkedProperty- The property to be checked- Returns:
- A matcher for a column has that property
-
forJdbcType
Builds a matcher for matching a type of JDBC.- Parameters:
targetType- The target type of JDBC- Returns:
- A matcher for that JDBC type
-
forTypeName
Builds a matcher for matching type name(case incensitive) ofColumnMeta.- Parameters:
typeName- The type to be checked- Returns:
- A matcher for that type name
-