关于javabean编译老提示"找不到符号"的问题,我都快疯了
以下是原文件:
1、PigeonBean.java
package pigeon;
import java.sql.*;
import pigeon.pigeonInfos;
public class PigeonBean
{
private static String strDBDriver = "sun.jdbc.odbc.JdbcOdbcDriver ";
private static String strDBUrl = "jdbc:odbc:pigeon_db ";
private Connection conn =null;
private ResultSet rs = null;
public PigeonBean()
{
try
{
Class.forName(strDBDriver);
conn = DriverManager.getConnection(strDBUrl);
}
catch(Exception e)
{
System.err.println(e.getMessage());
}
}
public ResultSet getPigeonInfo()
{
String strSql = null;
try
{
Statement stmt = conn.createStatement();
strSql = "Select * from pigeon_info ";
rs = stmt.executeQuery(strSql);
}
catch(
SQLException e)
{
System.err.println(e.getMessage());
}
return rs;
}
public void addPigeonInfo(PigeonInfos pigeonInfos)
{
String strSql = null;
try
{
strSql = "insert into pigeon_info values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ";
PreparedStatement pstmt = conn.prepareStatment(strSql);
pstmt.setString (1,pigeonInfos.getXieHui());
pstmt.setString (2,pigeonInfos.getNianFen());
pstmt.setString (3,pigeonInfos.getDiQu());
pstmt.setString (4,pigeonInfos.getHuanHao());
pstmt.setString (5,pigeonInfos.getYuSe());
pstmt.setString (6,pigeonInfos.getYanSa());
pstmt.setString (7,pigeonInfos.getXingBie());
pstmt.setString (8,pigeonInfos.getChuShengRi());
pstmt.setString (9,pigeonInfos.getXueTong());
pstmt.setString (10,pigeonInfos.getZhuangTai());
pstmt.setString (11,pigeonInfos.getZuoYuZhe());
pstmt.setString (12,pigeonInfos.getDangQyZ());
pstmt.setString (13,pigeonInfos.getFuGexx());
pstmt.setString (14,pigeonInfos.getMuGexx());
pstmt.setString (15,pigeonInfos.getZhaoPian()