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 TypeMethodDescription@Nullable FieldAccessorReturns the collection field for this join.Class<?> 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.@Nullable FieldAccessorReturns the reverse collection field for this join.voidsetCollectionField(@Nullable FieldAccessor collectionField) Sets the collection field for this join.voidsetFieldColumns(@Nullable List<DtoSelectSpec.FieldColumn> fieldColumns) Sets the list of field columns for this join.voidsetReverseCollectionField(@Nullable FieldAccessor reverseCollectionField) Sets the reverse collection field for this join.voidsetSourceDtoClass(@Nullable Class<?> sourceDtoClass) Sets the source DTO class for this join.@Nullable Class<?> Returns the source DTO class for this join.Methods inherited from class org.litebridge.orm.api.select.impl.AbstractJoinSpec
toJoin, usingMethods inherited from class org.litebridge.orm.api.select.impl.AbstractConditionBasedSpec
currentConditionGroupSpec, popConditionGroupSpec, pushConditionGroupSpec, tableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.litebridge.orm.api.select.model.JoinSpec
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
-
sourceDtoClass
Returns the source DTO class for this join.- Returns:
- the source DTO class
-
setSourceDtoClass
Sets the source DTO class for this join.- Parameters:
sourceDtoClass- the source DTO class
-
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
-
collectionField
Returns the collection field for this join.- Returns:
- the collection field, or null if not a collection join
-
setCollectionField
Sets the collection field for this join.- Parameters:
collectionField- the collection field
-
reverseCollectionField
Returns the reverse collection field for this join.- Returns:
- the reverse collection field, or null if none
-
setReverseCollectionField
Sets the reverse collection field for this join.- Parameters:
reverseCollectionField- the reverse collection field
-