Class AbstractSqlDao

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.sql.Connection connection  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractSqlDao​(java.sql.Connection connection)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.sql.Connection getConnection()  
      protected java.sql.PreparedStatement getStatement​(java.lang.String resourceId)  
      protected java.sql.PreparedStatement getStatement​(java.sql.Connection overrideConnection, java.lang.String resourceId)  
      protected void runScript​(java.lang.String resourceId)  
      • Methods inherited from class java.lang.Object

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

      • connection

        protected java.sql.Connection connection
    • Constructor Detail

      • AbstractSqlDao

        public AbstractSqlDao​(java.sql.Connection connection)
    • Method Detail

      • getStatement

        protected java.sql.PreparedStatement getStatement​(java.lang.String resourceId)
                                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getStatement

        protected java.sql.PreparedStatement getStatement​(java.sql.Connection overrideConnection,
                                                          java.lang.String resourceId)
                                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • runScript

        protected void runScript​(java.lang.String resourceId)
                          throws java.sql.SQLException,
                                 java.io.IOException
        Throws:
        java.sql.SQLException
        java.io.IOException