Class PDSDAOBase
java.lang.Object
ecmwf.ecpds.master.plugin.http.dao.PDSDAOBase
- Direct Known Subclasses:
CategoryDAOHandler,CountryDAOHandler,DataFileDAOHandler,DataTransferDAOHandler,DestinationDAOHandler,EcTransModuleDAOHandler,EcUserDAOHandler,HostDAOHandler,IncomingPolicyDAOHandler,IncomingUserDAOHandler,MetaDataDAOHandler,OperationDAOHandler,RatesDAOHandler,ResourceDAOHandler,StatusDAOHandler,TransferGroupDAOHandler,TransferHistoryDAOHandler,TransferMethodDAOHandler,TransferServerDAOHandler,UserDAOHandler
The Class PDSDAOBase.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Collection<ecmwf.web.util.bean.Pair> Get a collection of collections and convert it to collection of pairs, easier to handle.voiddelete(ecmwf.web.model.ModelBean bean) Delete.voidDelete.static final DategetBaseDate(Date d, int offsetDays) Gets the base date.getEqualityClauseLeavesFromExpression(ecmwf.web.model.ModelSearch search) Gets the equality clause leaves from expression.voidinsert(ecmwf.web.model.ModelBean bean) Insert.voidInsert.voidsave(ecmwf.web.model.ModelBean bean) Save.voidSave.
-
Constructor Details
-
PDSDAOBase
public PDSDAOBase()
-
-
Method Details
-
insert
public void insert(ecmwf.web.model.ModelBean bean) throws ecmwf.web.services.persistence.DAOException Insert.- Parameters:
bean- the bean- Throws:
ecmwf.web.services.persistence.DAOException- the DAO exception
-
save
public void save(ecmwf.web.model.ModelBean bean) throws ecmwf.web.services.persistence.DAOException Save.- Parameters:
bean- the bean- Throws:
ecmwf.web.services.persistence.DAOException- the DAO exception
-
delete
public void delete(ecmwf.web.model.ModelBean bean) throws ecmwf.web.services.persistence.DAOException Delete.- Parameters:
bean- the bean- Throws:
ecmwf.web.services.persistence.DAOException- the DAO exception
-
save
public void save(ecmwf.web.model.ModelBean bean, Object context) throws ecmwf.web.services.persistence.DAOException Save.- Parameters:
bean- the beancontext- the context- Throws:
ecmwf.web.services.persistence.DAOException- the DAO exception
-
insert
public void insert(ecmwf.web.model.ModelBean bean, Object context) throws ecmwf.web.services.persistence.DAOException Insert.- Parameters:
bean- the beancontext- the context- Throws:
ecmwf.web.services.persistence.DAOException- the DAO exception
-
delete
public void delete(ecmwf.web.model.ModelBean bean, Object context) throws ecmwf.web.services.persistence.DAOException Delete.- Parameters:
bean- the beancontext- the context- Throws:
ecmwf.web.services.persistence.DAOException- the DAO exception
-
getEqualityClauseLeavesFromExpression
public static final Map<String,String> getEqualityClauseLeavesFromExpression(ecmwf.web.model.ModelSearch search) throws ecmwf.web.util.search.BooleanExpressionException, ClassCastException Gets the equality clause leaves from expression.- Parameters:
search- the search- Returns:
- the equality clause leaves from expression
- Throws:
ecmwf.web.util.search.BooleanExpressionException- the boolean expression exceptionClassCastException- the class cast exception
-
convertCollectionsToObjectPairs
public static final Collection<ecmwf.web.util.bean.Pair> convertCollectionsToObjectPairs(Collection<?> c) Get a collection of collections and convert it to collection of pairs, easier to handle.- Parameters:
c- the c- Returns:
- the collection
-
getBaseDate
-