java.lang.Object
org.litebridge.orm.api.select.model.SelectSpec
org.litebridge.orm.api.dto.DtoSelectSpec
- All Implemented Interfaces:
DtoDataSpec
Specification for a DTO select query.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pair of a field accessor and its corresponding database column. -
Field Summary
Fields inherited from class org.litebridge.orm.api.select.model.SelectSpec
expressionSpecs, groupBy, havingConditions, joins, limit, litebridgeContext, orderBys, selectExpressionMapper, table, whereConditions -
Constructor Summary
ConstructorsConstructorDescriptionDtoSelectSpec(Class<?> dtoClass, OrmTable dtoTable, AliasGenerator aliasGenerator, LitebridgeContext litebridgeContext) Creates a new DtoSelectSpec. -
Method Summary
Modifier and TypeMethodDescriptioncreateSelectFieldSpecs(String[] fields) Deprecated, for removal: This API element is subject to removal in a future version.Class<?> dtoClass()Returns the DTO class.dtoTable()Returns the ORM table metadata for the DTO.Returns the list of field columns for this select.newJoinSpec(Class<?> dtoClass, OrmTable ormTable, Table table) Creates a new join specification.newJoinSpecBefore(DtoJoinSpec other, Class<?> dtoClass, OrmTable ormTable, Table table) Creates a new join specification before another join specification.Methods inherited from class org.litebridge.orm.api.select.model.SelectSpec
addExpressions, addHavingCondition, addJoin, addOrderBy, addWhereCondition, convertToSelectExpressionStream, currentHavingConditionGroupSpec, currentWhereConditionGroupSpec, ensureLimit, getExpressions, getGroupBy, getJoins, getLimit, getLitebridgeContext, getOrderBys, getSelectExpressionMapper, getTable, newOrderBy, newOrderBy, popHavingConditionGroup, popWhereConditionGroup, pushHavingConditionGroup, pushWhereConditionGroup, selectExpressionMapper, setExpressions, setGroupBy, setGroupBy, setProtoExpressionResolver, setTable, toSelect
-
Constructor Details
-
DtoSelectSpec
public DtoSelectSpec(Class<?> dtoClass, OrmTable dtoTable, AliasGenerator aliasGenerator, LitebridgeContext litebridgeContext) Creates a new DtoSelectSpec.- Parameters:
dtoClass- the DTO classdtoTable- the DTO tablealiasGenerator- the alias generatorlitebridgeContext- the litebridge context
-
-
Method Details
-
dtoClass
Returns the DTO class.- Returns:
- the DTO class
-
dtoTable
Description copied from interface:DtoDataSpecReturns the ORM table metadata for the DTO.- Specified by:
dtoTablein interfaceDtoDataSpec- Returns:
- the ORM table metadata
-
newJoinSpec
Creates a new join specification.- Parameters:
dtoClass- the DTO class to joinormTable- the ORM table to jointable- the database table to join- Returns:
- the new join specification
-
newJoinSpecBefore
public DtoJoinSpec newJoinSpecBefore(DtoJoinSpec other, Class<?> dtoClass, OrmTable ormTable, Table table) Creates a new join specification before another join specification.- Parameters:
other- the join specification to insert beforedtoClass- the DTO class to joinormTable- the ORM table to jointable- the database table to join- Returns:
- the new join specification
-
createSelectFieldSpecs
Deprecated, for removal: This API element is subject to removal in a future version.Creates select field specifications for the given fields.- Parameters:
fields- the field names- Returns:
- the list of expression specifications
-
getFieldColumns
Returns the list of field columns for this select.- Returns:
- the list of field columns
-