Package com.landawn.abacus.jdbc.dao
Interface JoinEntityHelper<T,SB extends com.landawn.abacus.util.SQLBuilder,TD extends Dao<T,SB,TD>>
- Type Parameters:
T
-SB
-TD
-
- All Known Subinterfaces:
CrudJoinEntityHelper<T,
,ID, SB, TD> CrudJoinEntityHelperL<T,
,SB, TD> ReadOnlyCrudJoinEntityHelper<T,
,ID, SB, TD> ReadOnlyCrudJoinEntityHelperL<T,
,SB, TD> ReadOnlyJoinEntityHelper<T,
,SB, TD> UncheckedCrudJoinEntityHelper<T,
,ID, SB, TD> UncheckedCrudJoinEntityHelperL<T,
,SB, TD> UncheckedJoinEntityHelper<T,
,SB, TD> UncheckedReadOnlyCrudJoinEntityHelper<T,
,ID, SB, TD> UncheckedReadOnlyCrudJoinEntityHelperL<T,
,SB, TD> UncheckedReadOnlyJoinEntityHelper<T,
SB, TD>
public interface JoinEntityHelper<T,SB extends com.landawn.abacus.util.SQLBuilder,TD extends Dao<T,SB,TD>>
- Author:
- haiyangl
- See Also:
-
ConditionFactory
ConditionFactory.CF
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
deleteAllJoinEntities
(Collection<T> entities) default int
deleteAllJoinEntities
(Collection<T> entities, boolean inParallel) Deprecated.default int
deleteAllJoinEntities
(Collection<T> entities, Executor executor) Deprecated.the operation can't be finished in one transaction if it's executed in multiple threads.default int
deleteAllJoinEntities
(T entity) default int
deleteAllJoinEntities
(T entity, boolean inParallel) Deprecated.the operation maybe can't be finished in one transaction ifisParallel
is true.default int
deleteAllJoinEntities
(T entity, Executor executor) Deprecated.the operation can't be finished in one transaction if it's executed in multiple threads.default int
deleteJoinEntities
(Collection<T> entities, Class<?> joinEntityClass) int
deleteJoinEntities
(Collection<T> entities, String joinEntityPropName) default int
deleteJoinEntities
(Collection<T> entities, Collection<String> joinEntityPropNames) default int
deleteJoinEntities
(Collection<T> entities, Collection<String> joinEntityPropNames, boolean inParallel) Deprecated.the operation maybe can't be finished in one transaction ifisParallel
is true.default int
deleteJoinEntities
(Collection<T> entities, Collection<String> joinEntityPropNames, Executor executor) Deprecated.the operation can't be finished in one transaction if it's executed in multiple threads.default int
deleteJoinEntities
(T entity, Class<?> joinEntityClass) int
deleteJoinEntities
(T entity, String joinEntityPropName) default int
deleteJoinEntities
(T entity, Collection<String> joinEntityPropNames) default int
deleteJoinEntities
(T entity, Collection<String> joinEntityPropNames, boolean inParallel) Deprecated.the operation maybe can't be finished in one transaction ifisParallel
is true.default int
deleteJoinEntities
(T entity, Collection<String> joinEntityPropNames, Executor executor) Deprecated.the operation can't be finished in one transaction if it's executed in multiple threads.executor()
Deprecated.internal onlydefault com.landawn.abacus.util.u.Optional<T>
findFirst
(Collection<String> selectPropNames, boolean includeAllJoinEntities, com.landawn.abacus.condition.Condition cond) default com.landawn.abacus.util.u.Optional<T>
findFirst
(Collection<String> selectPropNames, Class<?> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) default com.landawn.abacus.util.u.Optional<T>
findFirst
(Collection<String> selectPropNames, Collection<Class<?>> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) default com.landawn.abacus.util.u.Optional<T>
findOnlyOne
(Collection<String> selectPropNames, boolean includeAllJoinEntities, com.landawn.abacus.condition.Condition cond) default com.landawn.abacus.util.u.Optional<T>
findOnlyOne
(Collection<String> selectPropNames, Class<?> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) default com.landawn.abacus.util.u.Optional<T>
findOnlyOne
(Collection<String> selectPropNames, Collection<Class<?>> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) list
(Collection<String> selectPropNames, boolean includeAllJoinEntities, com.landawn.abacus.condition.Condition cond) list
(Collection<String> selectPropNames, Class<?> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) list
(Collection<String> selectPropNames, Collection<Class<?>> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) default void
loadAllJoinEntities
(Collection<T> entities) default void
loadAllJoinEntities
(Collection<T> entities, boolean inParallel) default void
loadAllJoinEntities
(Collection<T> entities, Executor executor) default void
loadAllJoinEntities
(T entity) default void
loadAllJoinEntities
(T entity, boolean inParallel) default void
loadAllJoinEntities
(T entity, Executor executor) default void
loadJoinEntities
(Collection<T> entities, Class<?> joinEntityClass) default void
loadJoinEntities
(Collection<T> entities, Class<?> joinEntityClass, Collection<String> selectPropNames) default void
loadJoinEntities
(Collection<T> entities, String joinEntityPropName) void
loadJoinEntities
(Collection<T> entities, String joinEntityPropName, Collection<String> selectPropNames) default void
loadJoinEntities
(Collection<T> entities, Collection<String> joinEntityPropNames) default void
loadJoinEntities
(Collection<T> entities, Collection<String> joinEntityPropNames, boolean inParallel) default void
loadJoinEntities
(Collection<T> entities, Collection<String> joinEntityPropNames, Executor executor) default void
loadJoinEntities
(T entity, Class<?> joinEntityClass) default void
loadJoinEntities
(T entity, Class<?> joinEntityClass, Collection<String> selectPropNames) default void
loadJoinEntities
(T entity, String joinEntityPropName) void
loadJoinEntities
(T entity, String joinEntityPropName, Collection<String> selectPropNames) default void
loadJoinEntities
(T entity, Collection<String> joinEntityPropNames) default void
loadJoinEntities
(T entity, Collection<String> joinEntityPropNames, boolean inParallel) default void
loadJoinEntities
(T entity, Collection<String> joinEntityPropNames, Executor executor) default void
loadJoinEntitiesIfNull
(Collection<T> entities) default void
loadJoinEntitiesIfNull
(Collection<T> entities, boolean inParallel) default void
loadJoinEntitiesIfNull
(Collection<T> entities, Class<?> joinEntityClass) default void
loadJoinEntitiesIfNull
(Collection<T> entities, Class<?> joinEntityClass, Collection<String> selectPropNames) default void
loadJoinEntitiesIfNull
(Collection<T> entities, String joinEntityPropName) default void
loadJoinEntitiesIfNull
(Collection<T> entities, String joinEntityPropName, Collection<String> selectPropNames) default void
loadJoinEntitiesIfNull
(Collection<T> entities, Collection<String> joinEntityPropNames) default void
loadJoinEntitiesIfNull
(Collection<T> entities, Collection<String> joinEntityPropNames, boolean inParallel) default void
loadJoinEntitiesIfNull
(Collection<T> entities, Collection<String> joinEntityPropNames, Executor executor) default void
loadJoinEntitiesIfNull
(Collection<T> entities, Executor executor) default void
loadJoinEntitiesIfNull
(T entity) default void
loadJoinEntitiesIfNull
(T entity, boolean inParallel) default void
loadJoinEntitiesIfNull
(T entity, Class<?> joinEntityClass) default void
loadJoinEntitiesIfNull
(T entity, Class<?> joinEntityClass, Collection<String> selectPropNames) default void
loadJoinEntitiesIfNull
(T entity, String joinEntityPropName) default void
loadJoinEntitiesIfNull
(T entity, String joinEntityPropName, Collection<String> selectPropNames) default void
loadJoinEntitiesIfNull
(T entity, Collection<String> joinEntityPropNames) default void
loadJoinEntitiesIfNull
(T entity, Collection<String> joinEntityPropNames, boolean inParallel) default void
loadJoinEntitiesIfNull
(T entity, Collection<String> joinEntityPropNames, Executor executor) default void
loadJoinEntitiesIfNull
(T entity, Executor executor) default com.landawn.abacus.util.ExceptionalStream<T,
SQLException> stream
(Collection<String> selectPropNames, boolean includeAllJoinEntities, com.landawn.abacus.condition.Condition cond) default com.landawn.abacus.util.ExceptionalStream<T,
SQLException> stream
(Collection<String> selectPropNames, Class<?> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) default com.landawn.abacus.util.ExceptionalStream<T,
SQLException> stream
(Collection<String> selectPropNames, Collection<Class<?>> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) Deprecated.internal onlyDeprecated.internal only
-
Method Details
-
targetEntityClass
Deprecated.internal only- Returns:
-
targetDaoInterface
Deprecated.internal only- Returns:
-
executor
Deprecated.internal only- Returns:
-
findFirst
default com.landawn.abacus.util.u.Optional<T> findFirst(Collection<String> selectPropNames, Class<?> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) throws SQLException - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.joinEntitiesToLoad
-cond
-- Returns:
- Throws:
SQLException
-
findFirst
default com.landawn.abacus.util.u.Optional<T> findFirst(Collection<String> selectPropNames, Collection<Class<?>> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) throws SQLException - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.joinEntitiesToLoad
-cond
-- Returns:
- Throws:
SQLException
-
findFirst
default com.landawn.abacus.util.u.Optional<T> findFirst(Collection<String> selectPropNames, boolean includeAllJoinEntities, com.landawn.abacus.condition.Condition cond) throws SQLException - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.includeAllJoinEntities
-cond
-- Returns:
- Throws:
SQLException
-
findOnlyOne
default com.landawn.abacus.util.u.Optional<T> findOnlyOne(Collection<String> selectPropNames, Class<?> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) throws com.landawn.abacus.exception.DuplicatedResultException, SQLException - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.joinEntitiesToLoad
-cond
-- Returns:
- Throws:
com.landawn.abacus.exception.DuplicatedResultException
- if more than one record found by the specifiedid
(orcondition
).SQLException
-
findOnlyOne
default com.landawn.abacus.util.u.Optional<T> findOnlyOne(Collection<String> selectPropNames, Collection<Class<?>> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) throws com.landawn.abacus.exception.DuplicatedResultException, SQLException - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.joinEntitiesToLoad
-cond
-- Returns:
- Throws:
com.landawn.abacus.exception.DuplicatedResultException
- if more than one record found by the specifiedid
(orcondition
).SQLException
-
findOnlyOne
default com.landawn.abacus.util.u.Optional<T> findOnlyOne(Collection<String> selectPropNames, boolean includeAllJoinEntities, com.landawn.abacus.condition.Condition cond) throws com.landawn.abacus.exception.DuplicatedResultException, SQLException - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.includeAllJoinEntities
-cond
-- Returns:
- Throws:
com.landawn.abacus.exception.DuplicatedResultException
- if more than one record found by the specifiedid
(orcondition
).SQLException
-
list
@Beta default List<T> list(Collection<String> selectPropNames, Class<?> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) throws SQLException - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.joinEntitiesToLoad
-cond
-- Returns:
- Throws:
SQLException
-
list
@Beta default List<T> list(Collection<String> selectPropNames, Collection<Class<?>> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) throws SQLException - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.joinEntitiesToLoad
-cond
-- Returns:
- Throws:
SQLException
-
list
@Beta default List<T> list(Collection<String> selectPropNames, boolean includeAllJoinEntities, com.landawn.abacus.condition.Condition cond) throws SQLException - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.includeAllJoinEntities
-cond
-- Returns:
- Throws:
SQLException
-
stream
@Beta default com.landawn.abacus.util.ExceptionalStream<T,SQLException> stream(Collection<String> selectPropNames, Class<?> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.joinEntitiesToLoad
-cond
-- Returns:
-
stream
@Beta default com.landawn.abacus.util.ExceptionalStream<T,SQLException> stream(Collection<String> selectPropNames, Collection<Class<?>> joinEntitiesToLoad, com.landawn.abacus.condition.Condition cond) - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.joinEntitiesToLoad
-cond
-- Returns:
-
stream
@Beta default com.landawn.abacus.util.ExceptionalStream<T,SQLException> stream(Collection<String> selectPropNames, boolean includeAllJoinEntities, com.landawn.abacus.condition.Condition cond) - Parameters:
selectPropNames
- all properties(columns) will be selected, excluding the properties of joining entities, if the specifiedselectPropNames
isnull
.includeAllJoinEntities
-cond
-- Returns:
-
loadJoinEntities
- Parameters:
entity
-joinEntityClass
-- Throws:
SQLException
-
loadJoinEntities
default void loadJoinEntities(T entity, Class<?> joinEntityClass, Collection<String> selectPropNames) throws SQLException - Parameters:
entity
-joinEntityClass
-selectPropNames
- all properties(columns) will be selected from the joining entities if the specifiedselectPropNames
isnull
.- Throws:
SQLException
-
loadJoinEntities
- Parameters:
entities
-joinEntityClass
-- Throws:
SQLException
-
loadJoinEntities
default void loadJoinEntities(Collection<T> entities, Class<?> joinEntityClass, Collection<String> selectPropNames) throws SQLException - Parameters:
entities
-joinEntityClass
-selectPropNames
- all properties(columns) will be selected from the joining entities if the specifiedselectPropNames
isnull
.- Throws:
SQLException
-
loadJoinEntities
- Parameters:
entity
-joinEntityPropName
-- Throws:
SQLException
-
loadJoinEntities
void loadJoinEntities(T entity, String joinEntityPropName, Collection<String> selectPropNames) throws SQLException - Parameters:
entity
-joinEntityPropName
-selectPropNames
- all properties(columns) will be selected from the joining entities if the specifiedselectPropNames
isnull
.- Throws:
SQLException
-
loadJoinEntities
default void loadJoinEntities(Collection<T> entities, String joinEntityPropName) throws SQLException - Parameters:
entities
-joinEntityPropName
-- Throws:
SQLException
-
loadJoinEntities
void loadJoinEntities(Collection<T> entities, String joinEntityPropName, Collection<String> selectPropNames) throws SQLException - Parameters:
entities
-joinEntityPropName
-selectPropNames
- all properties(columns) will be selected from the joining entities if the specifiedselectPropNames
isnull
.- Throws:
SQLException
-
loadJoinEntities
- Parameters:
entity
-joinEntityPropNames
-- Throws:
SQLException
-
loadJoinEntities
@Beta default void loadJoinEntities(T entity, Collection<String> joinEntityPropNames, boolean inParallel) throws SQLException - Parameters:
entity
-joinEntityPropNames
-inParallel
-- Throws:
SQLException
-
loadJoinEntities
@Beta default void loadJoinEntities(T entity, Collection<String> joinEntityPropNames, Executor executor) throws SQLException - Parameters:
entity
-joinEntityPropNames
-executor
-- Throws:
SQLException
-
loadJoinEntities
default void loadJoinEntities(Collection<T> entities, Collection<String> joinEntityPropNames) throws SQLException - Parameters:
entities
-joinEntityPropNames
-- Throws:
SQLException
-
loadJoinEntities
@Beta default void loadJoinEntities(Collection<T> entities, Collection<String> joinEntityPropNames, boolean inParallel) throws SQLException - Parameters:
entities
-joinEntityPropNames
-inParallel
-- Throws:
SQLException
-
loadJoinEntities
@Beta default void loadJoinEntities(Collection<T> entities, Collection<String> joinEntityPropNames, Executor executor) throws SQLException - Parameters:
entities
-joinEntityPropNames
-executor
-- Throws:
SQLException
-
loadAllJoinEntities
- Parameters:
entity
-- Throws:
SQLException
-
loadAllJoinEntities
- Parameters:
entity
-inParallel
-- Throws:
SQLException
-
loadAllJoinEntities
- Parameters:
entity
-executor
-- Throws:
SQLException
-
loadAllJoinEntities
- Parameters:
entities
-- Throws:
SQLException
-
loadAllJoinEntities
@Beta default void loadAllJoinEntities(Collection<T> entities, boolean inParallel) throws SQLException - Parameters:
entities
-inParallel
-- Throws:
SQLException
-
loadAllJoinEntities
@Beta default void loadAllJoinEntities(Collection<T> entities, Executor executor) throws SQLException - Parameters:
entities
-executor
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
- Parameters:
entity
-joinEntityClass
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
default void loadJoinEntitiesIfNull(T entity, Class<?> joinEntityClass, Collection<String> selectPropNames) throws SQLException - Parameters:
entity
-joinEntityClass
-selectPropNames
- all properties(columns) will be selected from the joining entities if the specifiedselectPropNames
isnull
.- Throws:
SQLException
-
loadJoinEntitiesIfNull
default void loadJoinEntitiesIfNull(Collection<T> entities, Class<?> joinEntityClass) throws SQLException - Parameters:
entities
-joinEntityClass
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
default void loadJoinEntitiesIfNull(Collection<T> entities, Class<?> joinEntityClass, Collection<String> selectPropNames) throws SQLException - Parameters:
entities
-joinEntityClass
-selectPropNames
- all properties(columns) will be selected from the joining entities if the specifiedselectPropNames
isnull
.- Throws:
SQLException
-
loadJoinEntitiesIfNull
- Parameters:
entity
-joinEntityPropName
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
default void loadJoinEntitiesIfNull(T entity, String joinEntityPropName, Collection<String> selectPropNames) throws SQLException - Parameters:
entity
- ?joinEntityPropName
-selectPropNames
- all properties(columns) will be selected from the joining entities if the specifiedselectPropNames
isnull
.- Throws:
SQLException
-
loadJoinEntitiesIfNull
default void loadJoinEntitiesIfNull(Collection<T> entities, String joinEntityPropName) throws SQLException - Parameters:
entities
-joinEntityPropName
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
default void loadJoinEntitiesIfNull(Collection<T> entities, String joinEntityPropName, Collection<String> selectPropNames) throws SQLException - Parameters:
entities
-joinEntityPropName
-selectPropNames
- all properties(columns) will be selected from the joining entities if the specifiedselectPropNames
isnull
.- Throws:
SQLException
-
loadJoinEntitiesIfNull
default void loadJoinEntitiesIfNull(T entity, Collection<String> joinEntityPropNames) throws SQLException - Parameters:
entity
-joinEntityPropNames
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
@Beta default void loadJoinEntitiesIfNull(T entity, Collection<String> joinEntityPropNames, boolean inParallel) throws SQLException - Parameters:
entity
-joinEntityPropNames
-inParallel
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
@Beta default void loadJoinEntitiesIfNull(T entity, Collection<String> joinEntityPropNames, Executor executor) throws SQLException - Parameters:
entity
-joinEntityPropNames
-executor
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
default void loadJoinEntitiesIfNull(Collection<T> entities, Collection<String> joinEntityPropNames) throws SQLException - Parameters:
entities
-joinEntityPropNames
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
@Beta default void loadJoinEntitiesIfNull(Collection<T> entities, Collection<String> joinEntityPropNames, boolean inParallel) throws SQLException - Parameters:
entities
-joinEntityPropNames
-inParallel
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
@Beta default void loadJoinEntitiesIfNull(Collection<T> entities, Collection<String> joinEntityPropNames, Executor executor) throws SQLException - Parameters:
entities
-joinEntityPropNames
-executor
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
- Parameters:
entity
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
- Parameters:
entity
-inParallel
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
- Parameters:
entity
-executor
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
- Parameters:
entities
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
@Beta default void loadJoinEntitiesIfNull(Collection<T> entities, boolean inParallel) throws SQLException - Parameters:
entities
-inParallel
-- Throws:
SQLException
-
loadJoinEntitiesIfNull
@Beta default void loadJoinEntitiesIfNull(Collection<T> entities, Executor executor) throws SQLException - Parameters:
entities
-executor
-- Throws:
SQLException
-
deleteJoinEntities
- Parameters:
entity
-joinEntityClass
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteJoinEntities
default int deleteJoinEntities(Collection<T> entities, Class<?> joinEntityClass) throws SQLException - Parameters:
entities
-joinEntityClass
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteJoinEntities
- Parameters:
entity
-joinEntityPropName
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteJoinEntities
- Parameters:
entities
-joinEntityPropName
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteJoinEntities
default int deleteJoinEntities(T entity, Collection<String> joinEntityPropNames) throws SQLException - Parameters:
entity
-joinEntityPropNames
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteJoinEntities
@Deprecated @Beta default int deleteJoinEntities(T entity, Collection<String> joinEntityPropNames, boolean inParallel) throws SQLException Deprecated.the operation maybe can't be finished in one transaction ifisParallel
is true.- Parameters:
entity
-joinEntityPropNames
-inParallel
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteJoinEntities
@Deprecated @Beta default int deleteJoinEntities(T entity, Collection<String> joinEntityPropNames, Executor executor) throws SQLException Deprecated.the operation can't be finished in one transaction if it's executed in multiple threads.- Parameters:
entity
-joinEntityPropNames
-executor
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteJoinEntities
default int deleteJoinEntities(Collection<T> entities, Collection<String> joinEntityPropNames) throws SQLException - Parameters:
entities
-joinEntityPropNames
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteJoinEntities
@Deprecated @Beta default int deleteJoinEntities(Collection<T> entities, Collection<String> joinEntityPropNames, boolean inParallel) throws SQLException Deprecated.the operation maybe can't be finished in one transaction ifisParallel
is true.- Parameters:
entities
-joinEntityPropNames
-inParallel
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteJoinEntities
@Deprecated @Beta default int deleteJoinEntities(Collection<T> entities, Collection<String> joinEntityPropNames, Executor executor) throws SQLException Deprecated.the operation can't be finished in one transaction if it's executed in multiple threads.- Parameters:
entities
-joinEntityPropNames
-executor
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteAllJoinEntities
- Parameters:
entity
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteAllJoinEntities
@Deprecated @Beta default int deleteAllJoinEntities(T entity, boolean inParallel) throws SQLException Deprecated.the operation maybe can't be finished in one transaction ifisParallel
is true.- Parameters:
entity
-inParallel
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteAllJoinEntities
@Deprecated @Beta default int deleteAllJoinEntities(T entity, Executor executor) throws SQLException Deprecated.the operation can't be finished in one transaction if it's executed in multiple threads.- Parameters:
entity
-executor
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteAllJoinEntities
- Parameters:
entities
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteAllJoinEntities
@Deprecated @Beta default int deleteAllJoinEntities(Collection<T> entities, boolean inParallel) throws SQLException Deprecated.the operation maybe can't be finished in one transaction ifisParallel
is true.- Parameters:
entities
-inParallel
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
deleteAllJoinEntities
@Deprecated @Beta default int deleteAllJoinEntities(Collection<T> entities, Executor executor) throws SQLException Deprecated.the operation can't be finished in one transaction if it's executed in multiple threads.- Parameters:
entities
-executor
-- Returns:
- the total count of updated/deleted records.
- Throws:
SQLException
-
isParallel
is true.