class JdbcStatementReferenceRule extends AbstractAstVisitorRule
Check for direct use of java.sql.Statement, PreparedStatement, or CallableStatement, which is not necessary if using the Groovy Sql facility or an ORM framework such as Hibernate. Known limitation: Does not catch references as Anonymous Inner class: def x = new java.sql.Statement() { .. }
Fields inherited from class | Fields |
---|---|
class AbstractAstVisitorRule |
CLOSURE_TEXT, DEFAULT_CONST_NAME, DEFAULT_FIELD_NAME, DEFAULT_TEST_CLASS_NAMES, DEFAULT_TEST_FILES, DEFAULT_VAR_NAME |
Constructor and description |
---|
JdbcStatementReferenceRule
() |
Type Params | Return Type | Name and description |
---|---|---|
|
AstVisitor |
getAstVisitor() |
Groovy Documentation