public abstract class AbstractMetadataResultSetBuilder extends Object
CassandraMetadataResultSet objects).| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMetadataResultSetBuilder(CassandraStatement statement)
Abstract constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matchesPattern(String pattern,
String testedValue)
Checks whether the specified pattern (potentially using SQL wildcard '%') matches the given string.
|
protected AbstractMetadataResultSetBuilder(CassandraStatement statement) throws SQLException
statement - The statement.SQLException - if a database access error occurs or this statement is closed.public boolean matchesPattern(String pattern, String testedValue)
For example, the pattern a%_table will be transformed to the regular expression ^a.*_table$
and will match any_table but not main_table.
pattern - The SQL pattern to check.testedValue - The tested string.true if the pattern matches the tested string, false otherwise.Copyright © 2020–2024 ING Bank. All rights reserved.