Package org.firebirdsql.jdbc.metadata
Class Clause
java.lang.Object
org.firebirdsql.jdbc.metadata.Clause
Condition clause for constructing metadata query conditions.
- Since:
- 4.0
- Author:
- Mark Rotteveel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleananyCondition(Clause... clauses) static booleananyCondition(Clause clause1, Clause clause2) getCondition(boolean includeAnd) getCondition(String prefix, String suffix) Condition rendered with prefix and suffix.getValue()booleanparameters(Clause clause1) parameters(Clause... clauses) parameters(Clause clause1, Clause clause2)
-
Constructor Details
-
Clause
Creates a metadata conditional clause.- Parameters:
columnName- Column name or expression resulting in a string valuepattern- Metadata pattern
-
-
Method Details
-
getCondition
- Returns:
- The condition for this clause suffixed with
" and ", or empty string if the condition is empty
-
getCondition
- Returns:
- The condition for this clause suffixed with
" and "whenincludeAndistrue, or empty string if the condition is empty
-
getCondition
Condition rendered with prefix and suffix.- Parameters:
prefix- Prefixsuffix- Suffix- Returns:
- The condition for this clause prefixed with
prefixand suffixed withsuffix, or empty string if the condition is empty
-
getValue
-
hasCondition
public boolean hasCondition() -
anyCondition
-
anyCondition
-
parameters
-
parameters
-
parameters
-