Package com.databend.jdbc
Class ConnectionProperties.Debug
- java.lang.Object
-
- com.databend.jdbc.ConnectionProperties.Debug
-
- Enclosing class:
- ConnectionProperties
public static class ConnectionProperties.Debug extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static Predicate<Properties>ALLOWEDprotected static com.databend.jdbc.AbstractConnectionProperty.Converter<Boolean>BOOLEAN_CONVERTERprotected static com.databend.jdbc.AbstractConnectionProperty.Converter<File>FILE_CONVERTERprotected static com.databend.jdbc.AbstractConnectionProperty.Converter<Integer>INTEGER_CONVERTERprotected static com.databend.jdbc.AbstractConnectionProperty.Converter<String>NON_EMPTY_STRING_CONVERTERprotected static Predicate<Properties>NOT_REQUIREDprotected static com.databend.jdbc.AbstractConnectionProperty.Converter<String>STRING_CONVERTER
-
Constructor Summary
Constructors Constructor Description Debug()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description protected static <T> Predicate<T>checkedPredicate(com.databend.jdbc.AbstractConnectionProperty.CheckedPredicate<T> predicate)Optional<String>getDefault()DriverPropertyInfogetDriverPropertyInfo(Properties mergedProperties)StringgetKey()default TgetRequiredValue(Properties properties)Optional<T>getValue(Properties properties)booleanisAllowed(Properties properties)booleanisRequired(Properties properties)voidvalidate(Properties properties)
-
-
-
Field Detail
-
NOT_REQUIRED
protected static final Predicate<Properties> NOT_REQUIRED
-
ALLOWED
protected static final Predicate<Properties> ALLOWED
-
STRING_CONVERTER
protected static final com.databend.jdbc.AbstractConnectionProperty.Converter<String> STRING_CONVERTER
-
NON_EMPTY_STRING_CONVERTER
protected static final com.databend.jdbc.AbstractConnectionProperty.Converter<String> NON_EMPTY_STRING_CONVERTER
-
FILE_CONVERTER
protected static final com.databend.jdbc.AbstractConnectionProperty.Converter<File> FILE_CONVERTER
-
BOOLEAN_CONVERTER
protected static final com.databend.jdbc.AbstractConnectionProperty.Converter<Boolean> BOOLEAN_CONVERTER
-
INTEGER_CONVERTER
protected static final com.databend.jdbc.AbstractConnectionProperty.Converter<Integer> INTEGER_CONVERTER
-
-
Method Detail
-
checkedPredicate
protected static <T> Predicate<T> checkedPredicate(com.databend.jdbc.AbstractConnectionProperty.CheckedPredicate<T> predicate)
-
getKey
public String getKey()
-
isRequired
public boolean isRequired(Properties properties)
-
isAllowed
public boolean isAllowed(Properties properties)
-
getValue
public Optional<T> getValue(Properties properties) throws SQLException
- Throws:
SQLException
-
getDriverPropertyInfo
public DriverPropertyInfo getDriverPropertyInfo(Properties mergedProperties)
-
validate
public void validate(Properties properties) throws SQLException
- Throws:
SQLException
-
getRequiredValue
public default T getRequiredValue(Properties properties) throws SQLException
- Throws:
SQLException
-
-