Why? 왜 필요한가?
특정 데이터베이스와의 연결(세션)
What?
데이터베이스의 역할
A Connection object's database is able to provide information describing its tables, its supported SQL grammar, its stored procedures, the capabilities of this connection, and so on. This information is obtained with the getMetaData method.
@CallerSensitive //getConnection 메소드 코드
public static Connection getConnection(String url,
String user, String password) throws SQLException {
java.util.Properties info = new java.util.Properties();
if (user != null) {
info.put("user", user);
}
if (password != null) {
info.put("password", password);
}
return (getConnection(url, info, Reflection.getCallerClass()));
} // 리턴값으로 SQL문을 Java 데이터로 변경하는 과정인듯?
풀어야할 숙제
Why? 왜 필요한가?
미리컴파일된 SQL문을 나타내기 위해
What?
Why? 왜 필요한가?
쿼리문의 실행결과로 인해 생성되는 데이터베이스 집합을 나타내기 위해
What?