Interface GenericPersistenceAccessor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> void delete​(T entity)  
      <T> void deleteAll​(java.lang.Class<T> clazz)  
      <T> void deleteAll​(java.util.Collection<T> entities)  
      <T> java.util.List<T> executeNativeQuery​(java.lang.String sql, java.util.Map<java.lang.String,​java.lang.Object> parameterMap)
      Executes a native SQL query.
      <T> java.util.List<T> find​(java.lang.String query)  
      <T> java.util.List<T> find​(java.lang.String query, java.lang.Object... values)  
      <T> java.util.List<T> findAll​(java.lang.Class<T> entityClass)  
      java.util.List findMatching​(Criteria criteria)  
      <T> java.util.List<T> findUsingNamedParameters​(java.lang.String query, java.lang.String[] paramNames, java.lang.Object[] values)  
      <T> java.util.List<T> findUsingNamedParameters​(java.lang.String query, java.lang.String[] paramNames, java.lang.Object[] values, java.lang.Integer offset, java.lang.Integer limit)  
      <T> T get​(java.lang.Class<T> entityType, java.io.Serializable entityId)  
      <T> T save​(T entity)  
      <T> void saveAll​(java.util.Collection<T> entities)  
      <T> void update​(T entity)  
    • Method Detail

      • find

        <T> java.util.List<T> find​(java.lang.String query)
      • find

        <T> java.util.List<T> find​(java.lang.String query,
                                   java.lang.Object... values)
      • findUsingNamedParameters

        <T> java.util.List<T> findUsingNamedParameters​(java.lang.String query,
                                                       java.lang.String[] paramNames,
                                                       java.lang.Object[] values)
      • findUsingNamedParameters

        <T> java.util.List<T> findUsingNamedParameters​(java.lang.String query,
                                                       java.lang.String[] paramNames,
                                                       java.lang.Object[] values,
                                                       java.lang.Integer offset,
                                                       java.lang.Integer limit)
      • get

        <T> T get​(java.lang.Class<T> entityType,
                  java.io.Serializable entityId)
      • findAll

        <T> java.util.List<T> findAll​(java.lang.Class<T> entityClass)
      • findMatching

        java.util.List findMatching​(Criteria criteria)
      • save

        <T> T save​(T entity)
      • update

        <T> void update​(T entity)
      • saveAll

        <T> void saveAll​(java.util.Collection<T> entities)
      • deleteAll

        <T> void deleteAll​(java.lang.Class<T> clazz)
      • deleteAll

        <T> void deleteAll​(java.util.Collection<T> entities)
      • delete

        <T> void delete​(T entity)
      • executeNativeQuery

        <T> java.util.List<T> executeNativeQuery​(java.lang.String sql,
                                                 java.util.Map<java.lang.String,​java.lang.Object> parameterMap)
        Executes a native SQL query. Use with care.
        Type Parameters:
        T -
        Parameters:
        sql - The SQL query to execute
        parameterMap - An optional parameters map to apply to the query.
        Returns:
        The result.