Package org.pjdbc.drivers
Class ReadonlyDriver.ReadonlyConfig
java.lang.Object
org.pjdbc.drivers.ReadonlyDriver.ReadonlyConfig
- Enclosing class:
ReadonlyDriver
Configuration holder for readonly parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckStatement(String sql) Check if a SQL statement is allowed to execute.booleanboolean
-
Constructor Details
-
ReadonlyConfig
-
-
Method Details
-
isAllowDDL
public boolean isAllowDDL() -
isAllowDML
public boolean isAllowDML() -
getMessage
-
checkStatement
Check if a SQL statement is allowed to execute.- Throws:
SQLException- if the statement is blocked
-