java.lang.Object
org.seasar.doma.jdbc.criteria.QueryDsl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<ENTITY> UnifiedDeleteStarting<ENTITY>delete(EntityMetamodel<ENTITY> entityMetamodel) Creates a delete statement.<ENTITY> UnifiedDeleteStarting<ENTITY>delete(EntityMetamodel<ENTITY> entityMetamodel, Consumer<DeleteSettings> settingsConsumer) Creates a delete statement.<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.<ENTITY> UnifiedInsertStarting<ENTITY>insert(EntityMetamodel<ENTITY> entityMetamodel) Creates an insert statement.<ENTITY> UnifiedInsertStarting<ENTITY>insert(EntityMetamodel<ENTITY> entityMetamodel, Consumer<InsertSettings> settingsConsumer) Creates an insert statement.static QueryDslCreates an instance.<ENTITY> UnifiedUpdateStarting<ENTITY>update(EntityMetamodel<ENTITY> entityMetamodel) Creates an update statement.<ENTITY> UnifiedUpdateStarting<ENTITY>update(EntityMetamodel<ENTITY> entityMetamodel, Consumer<UpdateSettings> settingsConsumer) Creates an update statement.with(List<WithContext> withContexts) Creates a WithQueryDsl.with(EntityMetamodel<?> entityMetamodel, SetOperand<?> subQuery) Creates a WithQueryDsl.
-
Constructor Details
-
QueryDsl
Creates an instance.- Parameters:
config- the configuration
-
-
Method Details
-
of
Creates an instance.- Parameters:
provider- the instance ofConfigProvider- Returns:
- a new QueryDsl instance
- Throws:
DomaIllegalArgumentException- ifprovideris notConfigProvider
-
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
-
update
Creates an update statement.- Type Parameters:
ENTITY- the entity type- Parameters:
entityMetamodel- the entity metamodel- Returns:
- the starting point of the update statement
-
update
public <ENTITY> UnifiedUpdateStarting<ENTITY> update(EntityMetamodel<ENTITY> entityMetamodel, Consumer<UpdateSettings> settingsConsumer) Creates an update statement.- Type Parameters:
ENTITY- the entity type- Parameters:
entityMetamodel- the entity metamodelsettingsConsumer- the consumer of the settings- Returns:
- the starting point of the update statement
-
delete
Creates a delete statement.- Type Parameters:
ENTITY- the entity type- Parameters:
entityMetamodel- the entity metamodel- Returns:
- the starting point of the delete statement
-
delete
public <ENTITY> UnifiedDeleteStarting<ENTITY> delete(EntityMetamodel<ENTITY> entityMetamodel, Consumer<DeleteSettings> settingsConsumer) Creates a delete statement.- Type Parameters:
ENTITY- the entity type- Parameters:
entityMetamodel- the entity metamodelsettingsConsumer- the consumer of the settings- Returns:
- the starting point of the delete statement
-
insert
Creates an insert statement.- Type Parameters:
ENTITY- the entity type- Parameters:
entityMetamodel- the entity metamodel- Returns:
- the starting point of the insert statement
-
insert
public <ENTITY> UnifiedInsertStarting<ENTITY> insert(EntityMetamodel<ENTITY> entityMetamodel, Consumer<InsertSettings> settingsConsumer) Creates an insert statement.- Type Parameters:
ENTITY- the entity type- Parameters:
entityMetamodel- the entity metamodelsettingsConsumer- the consumer of the settings- Returns:
- the starting point of the insert statement
-