java로 짠 애견호텔 관리프로그램
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
해당 자료는 10페이지 까지만 미리보기를 제공합니다.
10페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

java로 짠 애견호텔 관리프로그램에 대한 보고서 자료입니다.

목차

없음

본문내용

import java.sql.*;
import java.io.*;
import java.lang.*;

class PetHotel {
public String driver, user, password, url;
public Connection con;
public Statement stmt;
public Statement stmt1;
public ResultSet result;
public ResultSet result1;
public ResultSet result2;

public PetHotel(String driver, String user, String password, String url) {
this.driver = driver;
this.user = user;
this.password = password;
this.url = url;
}

public void connect() {
try {
Class.forName(driver);
con = DriverManager.getConnection(url, user, password);
stmt = con.createStatement();
} //20
catch(ClassNotFoundException e1) {
System.err.println(e1.getMessage());
}
catch(SQLException e2) {
System.err.println(e2.getMessage());

}
}

public PreparedStatement getPreparedStatementQuery (String query) {
PreparedStatement pstmt;
try {
pstmt = con.prepareStatement(query);
}
catch (SQLException e) {
System.out.println(e);
pstmt = null;
}
return pstmt;
} //40

public void remove(String query) throws IOException, SQLException, NullPointerException{
try {
stmt.executeUpdate(query);
}
catch (SQLException e) {
System.out.println(e);
}
}

키워드

  • 가격4,500
  • 페이지수30페이지
  • 등록일2004.05.31
  • 저작시기2004.05
  • 파일형식압축파일(zip)
  • 자료번호#253657
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니