public enum ChildSelectStrategy extends Enum<ChildSelectStrategy>
Enum Constant and Description |
---|
ByKeysInClause
When reading a collection of entity records, for each child table,
issue a select statement with an in-clause containing the IDs of the
parent records.
|
Standard
The default strategy.
|
SubSelectInClause
When reading a collection of entity records, for each child table,
issue a select statement with an in-clause containing a sub-select
for the primary keys of the records originally searched for.
|
Modifier and Type | Method and Description |
---|---|
static ChildSelectStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChildSelectStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChildSelectStrategy Standard
public static final ChildSelectStrategy ByKeysInClause
SELECT * FROM CHILD WHERE PARENT_ID IN ( ?, ?, ?, ... )
public static final ChildSelectStrategy SubSelectInClause
SELECT * FROM CHILD WHERE PARENT_ID IN (SELECT ID FROM PARENT WHERE ...)
public static ChildSelectStrategy[] values()
for (ChildSelectStrategy c : ChildSelectStrategy.values()) System.out.println(c);
public static ChildSelectStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019. All rights reserved.