본문 바로가기
728x90

분류 전체보기984

SQL 에서 꼭 지켜야 할 사항 Connection con = null; Statement stmt = null; String query = "select * from tab where id = " + id; stmt = con.createStatement(stmt); ResultSet rs = stmt.executeQuery(); 이와같이 코딩하면 SQL문장이 DBMS에 개별적으로 들어갑니다. 즉, select * from tab where id = 1; select * from tab where id = 2; select * from tab where id = 3; select * from tab where id = 4.. 2018. 4. 7.
Scrolling Result Sets JDBC 2.0 이전에는, JDBC 드라이버는 앞 방향인 , 한 방향으로만 이동하는 커서를 가진, 읽기만 가능한 결과를 반환했다. 각 엘리먼트는 resultset에 next 메소드를 호출함으로써 추출된다. JDBC2.0은 스크롤할 수 있는 결과를 소개하고, 그 결과 값은 만약 데이터베이스에 의해 읽기와 수정이 지원.. 2018. 4. 7.
JDBC driver types JDBC driver typesJDBC driver는 크게 4가지 타입으로 나누어진다. 각각의 타입에 따라서, JDBC드라이버의 구현방법이 다르며, System independent, performance 등에 기본적으로 차이를 보인다. 일반적으로 상위 타입으로 갈수록 perfomance와 independent가 증가한다고 생각하면 된다. JDBC driver의 4가지 타입은 아.. 2018. 4. 7.
객체 저장 : Storing Classes, Images and Other Large Objects 만약 long raw, longvarbinary, 혹은 다른 유사한 타입이 데이터베이스에 제공된다면, 많은 데이터베이스는 바이너리 데이터를 열의 일부로 저장할 수 있다. 이들 필드는 2기가 바이트까지 수용할 수 있다. 이것은 여러분이 데이터를 바이너리 스트림이나 바이트 배열로 변환할 수 있다면, string.. 2018. 4. 7.
What is the way of Direct Memory Access in Java? Java was initially designed as a safe, managed environment. Nevertheless, Java HotSpot VM contains a “backdoor” that provides a number of low-level operations to manipulate memory and threads directly. This backdoor class – sun.misc.Unsafe – is widely used by JDK itself in packages like “java.nio” or “java.util.concurrent”. However, using this backdoor is certai.. 2018. 4. 7.
Easy java Persistence EJP(Easy Java Persistence)는 관계형 데이터베이스 사용을 쉽게해주는 강력한 Java API 입니다. EJP는 Mapping Annotation이나 XML Configuration이 필요 없으며, 특정 클래스를 상속 받거나 인터페이스를 구현할 필요가 없습니다. 하지만 “Automatic O-R Mapping” 이 부분을 생각 해보니 문제가 있을 수 있겠습니.. 2018. 4. 7.
728x90