Ignore:
Timestamp:
2012-05-22T13:01:04+12:00 (12 years ago)
Author:
sjm84
Message:

Fixing Greenstone 3's use (or lack thereof) of generics, this was done automatically so we may want to change it over time. This change will also auto-format any files that have not already been formatted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/sql/derby/DerbyDBWrapper.java

    r21321 r25635  
    3030    if(sqlState == null) return null;
    3131        String dbInfoState = sqlState.getDBInfoStatement(id);
    32         ArrayList result = executeQuery(dbInfoState);
     32        ArrayList<HashMap<String, Object>> result = executeQuery(dbInfoState);
    3333    if (result.size() == 0) return null;
    3434    DBInfo info = new DBInfo();
    3535    for(int i=0;  i<result.size();i++){
    36         HashMap arow = (HashMap)result.get(i);
     36        HashMap arow = result.get(i);
    3737        Iterator ite = arow.keySet().iterator();
    3838        while(ite.hasNext()){
     
    9090    }
    9191
    92     public synchronized ArrayList executeQuery(String query_statement){
     92    public synchronized ArrayList<HashMap<String, Object>> executeQuery(String query_statement){
    9393    //the database hasn't been correct yet
    94         ArrayList results = new ArrayList();
     94        ArrayList<HashMap<String, Object>> results = new ArrayList<HashMap<String, Object>>();
    9595    ResultSet rs = null;
    9696    try{   
     
    101101        int numOfColumns = rsmd.getColumnCount();
    102102        while(rs.next()){
    103         HashMap arow = new HashMap();
     103        HashMap<String, Object> arow = new HashMap<String, Object>();
    104104        for(int i = 1; i <= numOfColumns ; i++){
    105105            arow.put(rsmd.getColumnName(i).toLowerCase(), rs.getObject(i));
Note: See TracChangeset for help on using the changeset viewer.