com.wavemaker.runtime.data.dao.WMGenericDao Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright (C) 2022-2023 WaveMaker, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package com.wavemaker.runtime.data.dao;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.orm.hibernate5.HibernateCallback;
import com.wavemaker.runtime.commons.file.model.Downloadable;
import com.wavemaker.runtime.data.export.DataExportOptions;
import com.wavemaker.runtime.data.export.ExportType;
import com.wavemaker.runtime.data.expression.QueryFilter;
import com.wavemaker.runtime.data.model.AggregationInfo;
public interface WMGenericDao {
E create(E entity);
void update(E entity);
void delete(E entity);
E findById(I entityId);
default List findByMultipleIds(List ids) {
return findByMultipleIds(ids, true);
}
List findByMultipleIds(List ids, boolean orderedReturn);
E findByUniqueKey(final Map fieldValueMap);
Page list(Pageable pageable);
@Deprecated
Page getAssociatedObjects(Object value, String entityName, String key, Pageable pageable);
Page search(QueryFilter[] queryFilters, Pageable pageable);
Page searchByQuery(String query, Pageable pageable);
long count();
long count(String query);
Page
© 2015 - 2025 Weber Informatics LLC | Privacy Policy