Groovy Documentation

groovy.org.codenarc.rule.jdbc
[Groovy] Class JdbcStatementReferenceRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.jdbc.JdbcStatementReferenceRule

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() { .. }

Authors:
Chris Mair


Property Summary
String name

int priority

 
Method Summary
AstVisitor getAstVisitor()

 

Property Detail

name

String name


priority

int priority


 
Method Detail

getAstVisitor

@Override
AstVisitor getAstVisitor()


 

Groovy Documentation