Class PDSDAOBase

java.lang.Object
ecmwf.ecpds.master.plugin.http.dao.PDSDAOBase
  • 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 bean
      context - 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 bean
      context - 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 bean
      context - 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 exception
      ClassCastException - 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

      public static final Date getBaseDate(Date d, int offsetDays)
      Gets the base date.
      Parameters:
      d - the d
      offsetDays - the offset days
      Returns:
      the base date