I'm getting the following error:
C:\KA\ca\com\ka\MetaDataFactory.java:144: cannot resolve symbol
symbol : constructor FactorLME (java.sql.Date,java.sql.Date,java.lang.String,int,java.lang.String)
location: class com.ca.ka.FactorLME
FactorLME factorLME = new FactorLME(rs.getDate(1), rs.getDate(2), rs.getString(3), rs.getInt(4), rs.getString(5));
^
------
.
.
.
private static final
String getFactorLMEsSQL;
static
{
sqlBuffer = new StringBuffer();
sqlBuffer.append("SELECT trunc(start_date), trunc(end_date), org_unit, ulae_factor, user_id ");
sqlBuffer.append("FROM kai.factor_lae_monthly_expense a ");
sqlBuffer.append("ORDER BY start_date, end_date");
getFactorLMEsSQL = sqlBuffer.toString();
}
public FactorLMEList getFactorLMEs() throws DataAccessException
{
ArrayList factorLMEs = new ArrayList();
DataConnection dc = null;
PreparedStatement stmt = null;
try
{
dc = dcm.getConnection();
stmt = dc.prepareStatement(getFactorLMEsSQL);
ResultSet rs = stmt.executeQuery();
while (rs.next())
{
FactorLME factorLME = new FactorLME(rs.getDate(1), rs.getDate(2), rs.getString(3), rs.getInt(4), rs.getString(5));
factorLMEs.add(factorLME);
}
rs.close();
stmt.close();
}//~try...
catch (SQLException e)
{
Logger.getInstance().log(e);
//throw new DataAccessException("SQLException: " + e.getMessage() + ": " + e.getSQLState());
throw new DataAccessException("SQLException: " + getFactorLMEsSQL + e.getMessage() + ": " + e.getSQLState());
}
finally
{
dcm.close(stmt);
dcm.close(dc);
}
FactorLMEList factorLMEList = new FactorLMEList(factorLMEs);
return factorLMEList;
}//~..
//end - Factors_LAE_Monthly_Expense
.
.
.
--------------
This Class compliled fine until I added the getDate method in there. I can't seem to find the problem. Any help would be Great!
Thanks!