org.zodiac.fastorm.rdb.mapping.DSLDelete Maven / Gradle / Ivy
The newest version!
package org.zodiac.fastorm.rdb.mapping;
import java.util.function.Supplier;
import org.zodiac.fastorm.core.Conditional;
import org.zodiac.fastorm.core.param.QueryParam;
/**
* The dynamic DSL deletion interface is used to construct dynamic deletion conditions in DSL mode.
*
* @param The type that implements this interface.
* @see QueryParam
*/
public interface DSLDelete> extends Conditional {
/**
* Conversion of a deletion condition to a query condition is usually used to query data that may be deleted before deletion.
*
* @return Query condition.
*/
QueryParam toQueryParam();
/**
* Turning an update condition into a query condition is typically used to query the data that may be updated based on the update.
*
* @param The query condition type.
* @param template Supplier template for conversion.
* @return Dynamic query condition.
*/
T toQueryParam(Supplier template);
}