ORCentral

src/eu/coform/command/location/QueryAllLocationCommand.java

Go to the documentation of this file.
00001 package eu.coform.command.location;
00002 
00003 import eu.coform.Location;
00004 import eu.coform.ORException;
00005 import eu.coform.database.DBException;
00006 import eu.coform.database.command.AllLocationsFromDBCommand;
00007 
00011 public class QueryAllLocationCommand implements AbstractSectionLocation {
00012 
00021    @Override
00022    public Location[] execute() throws ORException {
00023       AllLocationsFromDBCommand dbCom = new AllLocationsFromDBCommand(); 
00024       try {
00025          dbCom.exec();
00026          return dbCom.getResult();
00027       } catch (DBException e) {
00028          // TODO check error handling
00029          e.printStackTrace();
00030          return null;
00031       } 
00032    }
00033 
00034 }
 All Classes Namespaces Files Functions Variables Enumerations