Bài tập nhóm Thẩm định tín dụng Thẩm định tín dụng công ty cổ phần thép Mê Lin gồm các nội dung chính sau: Giới thiệu công ty thẩm định; Thẩm định năng lực pháp lý và tình hình hoạt động của doanh nghiệp; Thẩm định năng lực tài chính của doanh nghiệp. Mời các bạn cùng tham khảo
MỘT SỐ VẤN ĐỀ CHUNG
Phương pháp trò chuyện
Phương pháp này sử dụng hệ thống câu hỏi có mục đích để thu thập thông tin và tìm hiểu nguyên nhân, lý do của các sự kiện xảy ra.
- Xác định mục đích, đối tượng cụ thể
- Xây dựng hệ thống câu hỏi phù hợp với mục đích
- Chuẩn bị các phương tiện, đồ dùng cần thiết: Đồ chơi, tranh ảnh, …
- Tạo tình huống thuận lợi - tạo cảm giác an toàn
- Quan sát phản ứng, thái độ của trẻ
Bước 3: Phân tích kết quả
- Đối chiếu kết quả mong đợi
- Đề xuất kế hoạch giáo dục tiếp theo
Trò chuyện với trẻ và trò chuyện với phụ huynh
- Thời điểm trò chuyện như thế nào
- Ưu và nhược điểm của phương pháp trò chuyện
* Khi trò chuyện với trẻ
- Thời điểm trò chuyện: Đón trẻ, dạo chơi hoặc hoạt động chiều trả trẻ
- Nội dung: Phù hợp với từng thời điểm
+ Khuyến khích trẻ tham gia: Ngữ điệu cởi mở, giọng nói nhẹ nhàng, thân
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The method getInstance() returns the singleton instance of the ConnectDB class, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
2 mật, được hỗ trợ bằng ngôn ngữ cơ thể
+ Buổi trò chuyện phải tự nhiên không gò bó Giáo viên có thể cho trẻ ngồi xung quanh cô
+ Thể hiện thái độ đồng tình, ngạc nhiên
+ Sử dụng những câu hỏi mở, dành thời gian cho trẻ suy nghĩ
+ Trẻ có thể biểu đạt ý nghĩ bằng điệu bộ, hình vẽ
* Khi trò chuyện với phụ huynh
- Thời điểm trò chuyện: Đón và trả trẻ
- Nội dung trò chuyện: tìm hiểu thêm thông tin về sức khỏe, ngôn ngữ, khả năng giao tiếp của trẻ
+ Nhẹ nhàng, ngắn ngọn, thân mật, mạnh dạn…
+ Tránh đặt câu hỏi dài, không cần thiết, trừu tượng.
Phương pháp bài tập do giáo viên thiết kế
Giáo viên tự thiết kế bài tập đánh giá trẻ nhằm thu thập thông tin về nhu cầu, hiểu biết và khả năng của các em Qua đó, giáo viên có thể đưa ra quyết định và phương pháp hướng dẫn phù hợp với từng trẻ.
2 Mục đích của bài tập đánh giá do giáo viên thiết kế
- Thu thập thông tin cần thiết mức độ về kiến thức, kĩ năng ở trẻ
- Xác định điểm mạnh, điểm yếu của trẻ
Việc đánh giá sự tiến bộ của trẻ có thể được thực hiện thường xuyên trong năm học, nhằm chuẩn bị cho việc lập kế hoạch giáo dục ở giai đoạn tiếp theo.
3 Các loại bài tập do giáo viên thiết kế
* Phân chia theo cách thực hiện
- Trong khi dạy giáo viên hay trò chuyện với trẻ, giáo viên có thể giao nhiệm vụ hoặc trả lời câu hỏi
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list, which includes attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB To access the instance, the getInstance() method is provided, ensuring a single instance of the ConnectDB class for managing database connections.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
- Hình ảnh có thể được sử dụng để đánh giá
- Giáo viên có thể sữ dụng các item (câu hỏi) trong những test chuẩn hóa để đánh giá
4 Các bước để thiết kế bài tập đánh giá trẻ
- Bước 1 Xác định nhiệm vụ đánh giá (Giáo viên cần xác định vấn đề định đánh giá là gì và đánh giá theo cách nào)
- Bước 2 Xác định nội dung kiến thức, kĩ năng, nhu cầu cần đánh giá
- Bước 3 Xác định mức độ chất lượng của những nội dung trên
- Bước 4 Xây dựng các bài tập đánh giá
NỘI DUNG
Thông tin về trẻ đánh giá
I.1 Tên trẻ: Nguyễn Đặng Khả Vy
- Sở thích: Thích các hoạt động tạo hình, ăn gà gán
- Năng khiếu nổi bật: Tạo hình (Nặn)
I.2 Tên trẻ: Nguyễn Thiên Phú
- Sở thích: Đi du lịch cùng gia đình
- Năng khiếu nổi bật: Chơi lắp ghép
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The getInstance method returns the singleton instance of the ConnectDB class, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
I.3 Tên trẻ: Nguyễn Ngọc Minh
- Sở thích: Ăn kem, uống sữa,đi chơi khu vui chơi
- Năng khiếu nổi bật: Múa
I.4 Tên trẻ: Phạm Yến Như
- Sở thích: Uống trà sữa, bánh kem, đi khu vui chơi
- Năng khiếu nổi bật: Đá bóng
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It includes a static Connection object and implements the Singleton design pattern through a private instance The getInstance method provides access to this single instance, ensuring that only one connection is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
I.5 Tên trẻ: Trần Hà Khuê
- Sở thích: Ăn kem, đi khu vui chơi
- Năng khiếu nổi bật: Ca hát
I.6 Tên trẻ: Nguyễn Mỹ Duy
- Sở thích: Chơi búp bê, ăn bánh trứng
- Năng khiếu nổi bật: Vẽ
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB To access the instance, the getInstance() method is provided, ensuring a single instance of the ConnectDB class for managing database connections.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
Phương pháp trò chuyện
II.1 Thiết kế công cụ đánh giá Độ tuổi: 5-6 tuổi
Thời gian trò chuyện: 5-10 phút
Mục đích: Đánh giá sự hiểu biết và khả năng mặc quần áo của trè
- Trẻ kể được một số trang phục, màu sắc
- Trẻ phân biệt được mặt trái và mặt phải của quần áo
- Trẻ lựa chọn được trang phục theo mùa
- Trẻ biết phân biệt quần áo sạch, bẩn và không mặc quần áo ướt, bẩn
Tạo tình huống: Trong giờ thay đồ, cô quan sát trẻ, và trò chuyện với một số trẻ đang chuẩn bị thay quần áo
Câu hỏi Trả lời Ghi chú
1 Đồ của con hôm nay màu gì?
2 Đồ của con là đồ dài hay đồ cộc?
3 Áo của con là áo trơn hay có nút gài?
4 Ở nhà con có tự mặc quần áo không?
5 Trước khi mặc quần áo con nên chú ý những gì?
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement using a database connection and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to a list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The method getInstance() returns the singleton instance of the ConnectDB class, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
6 Con đã mặc quần áo đúng chưa? Vì sao con biết?
7 Vì sao con trai lại không mặc đầm?
8 Vì sao không nên mặc quần áo ẩm ướt và bẩn?
9 Nếu thời tiết lạnh thì con sẽ mặc quần áo như thế nào?
10 Còn thời tiết nắng nóng thì chúng ta cần mặc quần áo gì?
II.2 Tiến hành đánh giá trẻ
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement using a database connection and execute a SQL query to retrieve data It iterates through the result set, adding new employee objects to a list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The method getInstance() returns the singleton instance of the ConnectDB class, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The method getInstance() returns the singleton instance of the ConnectDB class, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement using a database connection and execute a SQL query to retrieve data It iterates through the result set, adding new employee records to a list by extracting various attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The method getInstance() returns the singleton instance of the ConnectDB class, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The method getInstance() returns the singleton instance of ConnectDB, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The method getInstance() returns the singleton instance of the ConnectDB class, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The method getInstance() returns the singleton instance of the ConnectDB class, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
Phương pháp bài tập do giáo viên thiết kế
III.1 Thiết kế công cụ đánh giá
Chỉ số 107: Trẻ chỉ ra được khối cầu, khối vuông, khối chữ nhật và khối trụ theo yêu cầu Độ tuổi: 5-6 tuổi
1 Mục đích: Đánh giá sự hiểu biết của trẻ về khối cầu, khối vuông, khối chữ nhật và khối trụ
- Nhận biết và gọi đúng tên các khối cầu, khối vuông, khối chữ nhật và khối trụ
- Phân biệt được sự giống và khác nhau của các khối cầu, khối vuông, khối chữ nhật và khối trụ
- Thiết lập tương ứng các đồ vật phù hợp với các khối cầu, khối vuông, khối chữ nhật và khối trụ
3 Các mức độ đánh giá
STT Nội dung đánh giá Đạt Không đạt
1 Nhận biết và gọi đúng tên các khối cầu, khối vuông, khối chữ nhật và khối trụ
Phân biệt được sự giống và khác nhau của các khối cầu, khối vuông, khối chữ nhật và khối trụ
Thiết lập tương ứng các đồ vật phù hợp với các khối cầu, khối vuông, khối chữ nhật và khối trụ
Phân tích, nhận xét đánh giá Đề xuất kế hoạch giáo dục
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The method getInstance() returns the singleton instance of the ConnectDB class, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
Bài tập 1 yêu cầu trẻ nhận biết và gọi đúng tên các hình khối như khối cầu, khối vuông, khối chữ nhật và khối trụ Mục tiêu của bài tập là kiểm tra khả năng nhận diện và gọi tên chính xác các khối này Để thực hiện, cần chuẩn bị các khối cầu, khối vuông, khối chữ nhật và khối trụ Trẻ sẽ chọn một khối bất kỳ và gọi tên khối đó, sau đó thực hiện lần lượt với các khối còn lại.
Bài tập 2 yêu cầu phân biệt sự giống và khác nhau giữa các hình khối: khối cầu, khối vuông, khối chữ nhật và khối trụ Mục tiêu của bài tập là kiểm tra kỹ năng phân biệt của trẻ đối với các khối hình này Phương tiện thực hiện bao gồm bài tập do giáo viên thiết kế và hình ảnh minh họa Trẻ sẽ thực hiện bài tập này một cách cá nhân.
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB To access the instance, the getInstance() method is provided, ensuring a single instance of the ConnectDB class for managing database connections.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
Bài tập 3: Thiết lập tương ứng các đồ vật phù hợp với các khối cầu, khối vuông, khối chữ nhật và khối trụ
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It utilizes the singleton design pattern, ensuring that only one instance of the ConnectDB class exists The static method getInstance() provides access to this instance, facilitating database connectivity throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
Mục tiêu của hoạt động là giúp trẻ nhận diện và thiết lập sự tương ứng giữa các đồ vật với các hình khối như khối cầu, khối vuông, khối chữ nhật và khối trụ Để thực hiện, cần chuẩn bị các đồ dùng có hình dạng tương ứng với các khối này Trong quá trình hoạt động, trẻ sẽ được khuyến khích gọi tên các đồ vật theo hình dạng của chúng.
III.2 Tiến hành đánh giá trẻ
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The method getInstance() returns the singleton instance of the ConnectDB class, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement using a database connection and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to a list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It imports necessary classes such as Connection, DriverManager, and SQLException The class contains a static Connection object and a private static instance of ConnectDB The method getInstance() returns the singleton instance of the ConnectDB class, ensuring that only one connection instance is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";
The code snippet demonstrates how to create a statement and execute a SQL query to retrieve employee data It iterates through the result set, adding new employee objects to the list with attributes such as employee ID, first name, last name, age, gender, department, and salary.
The ConnectDB class establishes a connection to a database using Java's SQL package It includes a static Connection object and implements the Singleton design pattern by providing a private instance of itself The method getInstance() returns the single instance of the ConnectDB class, ensuring that only one connection is created throughout the application.
} public void connect() throws SQLException {
String url = "jdbc:sqlserver://localhost:1433;database name=QLNVIEN";
String pw = "123"; con = DriverManager.getConnection(url, user, pw); if(con != null) {
System.out.println("thanh cong");
} } public void disconnect() { if(con != null) { try { con.close();
} public static Connection getConnection() { return con;
} finally { try { pstm.close(); } catch (SQLException e2) { e2.printStackTrace();
} public ArrayList getTimKiem(String ma){
ArrayList dsnv = new ArrayList(); ConnectDB.getInstance();
Connection con = ConnectDB.getConnection(); try {
String sql = "select * from NhanVien where maNV like N'%" +ma+"%'";