Class CallerCommenter

java.lang.Object
org.seasar.doma.jdbc.CallerCommenter
All Implemented Interfaces:
Commenter

public class CallerCommenter extends Object implements Commenter
A commenter that appends information about the caller class and the caller method.
  • Constructor Details

    • CallerCommenter

      public CallerCommenter()
  • Method Details

    • comment

      public String comment(String sql, CommentContext context)
      Description copied from interface: Commenter
      Adds the comment to the SQL string.
      Specified by:
      comment in interface Commenter
      Parameters:
      sql - the SQL string
      context - the context
      Returns:
      the SQL that the comment is added