Class ExecStatement

  • All Implemented Interfaces:
    Executable
    Direct Known Subclasses:
    ExecBatchStatement

    public abstract class ExecStatement
    extends java.lang.Object
    implements Executable
    SQL executing statement that closes appropriate elements.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ExecStatement​(java.lang.String sql)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean callExecute​(java.sql.PreparedStatement statement)  
      boolean execute​(java.sql.Connection connection)  
      boolean execute​(java.sql.PreparedStatement statement)  
      java.lang.String getSql()  
      abstract void prepare​(java.sql.PreparedStatement statement)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExecStatement

        protected ExecStatement​(java.lang.String sql)
    • Method Detail

      • execute

        public boolean execute​(java.sql.Connection connection)
        Specified by:
        execute in interface Executable
      • execute

        public boolean execute​(java.sql.PreparedStatement statement)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • callExecute

        protected boolean callExecute​(java.sql.PreparedStatement statement)
                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • prepare

        public abstract void prepare​(java.sql.PreparedStatement statement)
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getSql

        public java.lang.String getSql()