Interface GenericPersistenceAccessor

    • Method Detail

      • findUsingNamedParameters

        <T> List<T> findUsingNamedParameters​(String query,
                                             String[] paramNames,
                                             Object[] values)
      • findAll

        <T> List<T> findAll​(Class<T> entityClass)
      • save

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

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

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

        <T> void deleteAll​(Class<T> clazz)
      • deleteAll

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

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

        <T> List<T> executeNativeQuery​(String sql,
                                       Map<String,​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.