Database
-
NewsDaoDatabase/Oracle 2016. 9. 8. 14:32
import java.util.List; import com.maetamong.vo.CategoryVO;import com.maetamong.vo.JournalistVO;import com.maetamong.vo.NewsVO; public interface NewsDao { /** * 카테고리 가져오기 * @param parentCategoryId * @return */public List getCategoriesOf(int parentCategoryId);/** * 선택한 카테고리가 리프노드인지 확인하기 * @param categoryqId * @return */public boolean isCategoryLeafNode(int categoryqId); /** * 모든 기자 가져오기 * @return ..
-
ApplicationDatabase/Oracle 2016. 9. 8. 14:08
import java.util.List;import java.util.Scanner; import javax.swing.plaf.synth.SynthSeparatorUI; import com.maetamong.dao.NewsDao;import com.maetamong.dao.NewsDaoImpl;import com.maetamong.vo.CategoryVO;import com.maetamong.vo.JournalistVO;import com.maetamong.vo.NewsVO; public class Application { /** * Oracle Database에 접근할 수 있는 NewsDao를 선언한다. */private NewsDao newsDao;private Scanner input;/** * ..
-
NewsDaoImplDatabase/Oracle 2016. 9. 8. 14:07
import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.util.ArrayList;import java.util.List; import com.maetamong.vo.CategoryVO;import com.maetamong.vo.JournalistVO;import com.maetamong.vo.NewsVO; public class NewsDaoImpl implements NewsDao { @Overridepublic List getCategoriesOf(int parentCateg..