Package org.pjdbc.drivers
Class SchemaValidationDriver.SchemaConfig
java.lang.Object
org.pjdbc.drivers.SchemaValidationDriver.SchemaConfig
- Enclosing class:
SchemaValidationDriver
Configuration holder for schema validation parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllowedTable(String table) Add a table to the allowed list programmatically.voidaddBlockedColumn(String column) Add a column to the blocked list programmatically.voidaddBlockedTable(String table) Add a table to the blocked list programmatically.voidcheckStatement(String sql) Check if a SQL statement is allowed to execute.getMode()booleanvoidloadFromMetadata(Connection conn) Load allowed tables from database metadata.
-
Constructor Details
-
SchemaConfig
-
-
Method Details
-
loadFromMetadata
Load allowed tables from database metadata.- Throws:
SQLException
-
getAllowedTables
-
getBlockedTables
-
getAllowedColumns
-
getBlockedColumns
-
getMode
-
isCaseSensitive
public boolean isCaseSensitive() -
getMessage
-
addAllowedTable
Add a table to the allowed list programmatically. -
addBlockedTable
Add a table to the blocked list programmatically. -
addBlockedColumn
Add a column to the blocked list programmatically. -
checkStatement
Check if a SQL statement is allowed to execute.- Throws:
SQLException- if the statement references blocked tables or columns
-