java.lang.Object
org.litebridge.orm.api.select.impl.AbstractConditionBasedSpec
org.litebridge.orm.api.select.impl.AbstractJoinSpec
org.litebridge.orm.api.dto.DtoJoinSpec
- All Implemented Interfaces:
DtoDataSpec,JoinSpec
public final class DtoJoinSpec
extends org.litebridge.orm.api.select.impl.AbstractJoinSpec
implements DtoDataSpec
Specification for a JOIN clause in a DTO-based query.
-
Field Summary
Fields inherited from class org.litebridge.orm.api.select.impl.AbstractConditionBasedSpec
conditions, table -
Constructor Summary
ConstructorsConstructorDescriptionDtoJoinSpec(Class<?> dtoClass, OrmTable ormTable, Table table, SelectExpressionMapper selectExpressionMapper) Creates a new instance ofDtoJoinSpec. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> dtoClass()Returns the DTO class being joined.dtoTable()Returns the ORM table metadata for the DTO.Returns the list of field columns for this join.voidsetFieldColumns(@Nullable List<DtoSelectSpec.FieldColumn> fieldColumns) Sets the list of field columns for this join.Methods inherited from class org.litebridge.orm.api.select.impl.AbstractJoinSpec
toJoinMethods inherited from class org.litebridge.orm.api.select.impl.AbstractConditionBasedSpec
currentConditionGroupSpec, popConditionGroupSpec, pushConditionGroupSpec, table
-
Constructor Details
-
DtoJoinSpec
public DtoJoinSpec(Class<?> dtoClass, OrmTable ormTable, Table table, SelectExpressionMapper selectExpressionMapper) Creates a new instance ofDtoJoinSpec.- Parameters:
dtoClass- the class of the DTO being joinedormTable- the metadata of the table being joinedtable- the database table representationselectExpressionMapper- the mapper for select expressions
-
-
Method Details
-
dtoClass
Returns the DTO class being joined.- 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
-
getFieldColumns
Returns the list of field columns for this join.- Returns:
- the list of field columns
-
setFieldColumns
Sets the list of field columns for this join.- Parameters:
fieldColumns- the list of field columns
-