Class SqlFile

java.lang.Object
org.seasar.doma.jdbc.SqlFile

public class SqlFile extends Object
Represents a SQL file that contains SQL statements for database operations.

This class encapsulates the path to the SQL file, the raw SQL content, and the parsed SQL node structure that can be used for execution.

See Also:
  • Field Details

    • path

      protected final String path
      the SQL file path
    • sql

      protected final String sql
      the SQL string
    • sqlNode

      protected final SqlNode sqlNode
      the SQL node
  • Constructor Details

    • SqlFile

      public SqlFile(String path, String sql, SqlNode sqlNode)
      Creates an instance.
      Parameters:
      path - the SQL file path
      sql - the SQL string
      sqlNode - the SQL node
  • Method Details

    • getPath

      public String getPath()
      Returns the SQL file path.
      Returns:
      the SQL file path
    • getSql

      public String getSql()
      Returns the SQL string.
      Returns:
      the SQL string
    • getSqlNode

      public SqlNode getSqlNode()
      Returns the SQL node.

      Do not modify the SQL node in the client.

      Returns:
      the SQL node
    • toString

      public String toString()
      Overrides:
      toString in class Object