Package myhome.domain

Class BoardDao

java.lang.Object
myhome.domain.BoardDao
All Implemented Interfaces:
Dao<BoardDto>

public class BoardDao
extends java.lang.Object
implements Dao<BoardDto>
Author:
miri 게시글 DAO
  • Field Summary

    Fields
    Modifier and Type Field Description
    private java.sql.Connection conn  
    private static BoardDao instance  
    private java.sql.PreparedStatement ps  
    private java.sql.ResultSet rs  
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private BoardDao()  
  • Method Summary

    Modifier and Type Method Description
    boolean delete​(int no)  
    static BoardDao getInstance()  
    boolean insert​(BoardDto t)  
    BoardDto select​(int no)  
    java.util.List<BoardDto> selectAll()  
    java.util.List<BoardDto> selectAll​(int beginRownum)  
    int selectTotalCount()  
    boolean update​(BoardDto t)  
    void updateHit​(int no)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface myhome.domain.Dao

    close, close, getConnection
  • Field Details

    • conn

      private java.sql.Connection conn
    • ps

      private java.sql.PreparedStatement ps
    • rs

      private java.sql.ResultSet rs
    • instance

      private static BoardDao instance
  • Constructor Details

    • BoardDao

      private BoardDao()
  • Method Details

    • getInstance

      public static BoardDao getInstance()
    • selectTotalCount

      public int selectTotalCount()
    • updateHit

      public void updateHit​(int no)
    • select

      public BoardDto select​(int no)
      Specified by:
      select in interface Dao<BoardDto>
    • selectAll

      public java.util.List<BoardDto> selectAll()
      Specified by:
      selectAll in interface Dao<BoardDto>
    • selectAll

      public java.util.List<BoardDto> selectAll​(int beginRownum)
    • update

      public boolean update​(BoardDto t)
      Specified by:
      update in interface Dao<BoardDto>
    • insert

      public boolean insert​(BoardDto t)
      Specified by:
      insert in interface Dao<BoardDto>
    • delete

      public boolean delete​(int no)
      Specified by:
      delete in interface Dao<BoardDto>