java.lang.Object
org.seasar.doma.jdbc.criteria.WithQueryDsl
-
Constructor Summary
ConstructorsConstructorDescriptionWithQueryDsl(Config config, List<WithContext> withContexts) Creates an instance. -
Method Summary
Modifier and TypeMethodDescription<ENTITY> UnifiedSelectStarting<ENTITY>from(EntityMetamodel<ENTITY> entityMetamodel) Creates a select statement.<ENTITY> UnifiedSelectStarting<ENTITY>from(EntityMetamodel<ENTITY> entityMetamodel, Consumer<SelectSettings> settingsConsumer) Creates a select statement.<ENTITY> UnifiedSelectStarting<ENTITY>from(EntityMetamodel<ENTITY> entityMetamodel, SetOperand<?> setOperandForSubQuery) Creates a select statement.<ENTITY> UnifiedSelectStarting<ENTITY>from(EntityMetamodel<ENTITY> entityMetamodel, SetOperand<?> setOperandForSubQuery, Consumer<SelectSettings> settingsConsumer) Creates a select statement.with(List<WithContext> withContexts) Creates a WithQueryDsl.with(EntityMetamodel<?> entityMetamodel, SetOperand<?> subQuery) Creates a WithQueryDsl.
-
Constructor Details
-
WithQueryDsl
Creates an instance.- Parameters:
config- the configurationwithContexts- EntityMetamodel and SetOperationContext pair list
-
-
Method Details
-
with
Creates a WithQueryDsl.- Parameters:
entityMetamodel- the entity metamodel to use for the context of the common table expressionsubQuery- the sub-query to use in the common table expression- Returns:
- a new WithQueryDsl instance configured with the specified entity metamodel and sub-query
-
with
Creates a WithQueryDsl.- Parameters:
withContexts- the list of entity metamodel and sub-query pair in use for the context of the common table expression- Returns:
- a new WithQueryDsl instance configured with the specified entity metamodel and sub-query
-
from
Creates a select statement.- Type Parameters:
ENTITY- the entity type- Parameters:
entityMetamodel- the entity metamodel- Returns:
- the starting point of the select statement
-
from
public <ENTITY> UnifiedSelectStarting<ENTITY> from(EntityMetamodel<ENTITY> entityMetamodel, Consumer<SelectSettings> settingsConsumer) Creates a select statement.- Type Parameters:
ENTITY- the entity type- Parameters:
entityMetamodel- the entity metamodelsettingsConsumer- the consumer of the settings- Returns:
- the starting point of the select statement
-
from
public <ENTITY> UnifiedSelectStarting<ENTITY> from(EntityMetamodel<ENTITY> entityMetamodel, SetOperand<?> setOperandForSubQuery) Creates a select statement.- Type Parameters:
ENTITY- the entity type- Parameters:
entityMetamodel- the entity metamodelsetOperandForSubQuery- the set operand for the sub query- Returns:
- the starting point of the select statement
-
from
public <ENTITY> UnifiedSelectStarting<ENTITY> from(EntityMetamodel<ENTITY> entityMetamodel, SetOperand<?> setOperandForSubQuery, Consumer<SelectSettings> settingsConsumer) Creates a select statement.- Type Parameters:
ENTITY- the entity type- Parameters:
entityMetamodel- the entity metamodelsetOperandForSubQuery- the set operand for the sub querysettingsConsumer- the consumer of the settings- Returns:
- the starting point of the select statement
-