Class DefaultDestinationDao<T extends AbstractDestinationModel>
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.apiregistryservices.dao.impl.DefaultDestinationDao<T>
-
- Type Parameters:
T
- the type parameter which extends theAbstractDestinationModel
type
- All Implemented Interfaces:
DestinationDao
,Dao
public class DefaultDestinationDao<T extends AbstractDestinationModel> extends AbstractItemDao implements DestinationDao
Default implementation ofDestinationDao
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
ACTIVE_PARAMETER
protected static java.lang.String
AND
protected static java.lang.String
AND_ACTIVE_CLAUSE
protected static java.lang.String
AND_TEMPLATE_CLAUSE
protected static java.lang.String
CHANNEL_PARAMETER
protected static java.lang.String
GET_ACTIVE_EXPOSED_DESTINATIONS_BY_TARGET
protected static java.lang.String
GET_ALL_CONSUMED_D_QUERY
protected static java.lang.String
GET_ALL_D_BY_CHANNEL
protected static java.lang.String
GET_ALL_D_BY_TARGET
protected static java.lang.String
GET_ALL_D_QUERY
protected static java.lang.String
GET_ALL_EXPOSED_BY_CLIENT_QUERY
protected static java.lang.String
GET_ALL_NONTEMPLATE_D_QUERY
protected static java.lang.String
GET_DESTINATIONS_BY_ID_AND_TARGET
protected static java.lang.String
ID_CLAUSE
protected static java.lang.String
ID_PARAMETER
protected static java.lang.String
NON_TEMPLATE_DT_CLAUSE
protected static java.lang.String
SELECT_PK_FROM
protected static java.lang.String
TARGET_PARAMETER
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultDestinationDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<ExposedDestinationModel>
findActiveExposedDestinationsByChannel(DestinationChannel channel)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905.java.util.List<ExposedDestinationModel>
findActiveExposedDestinationsByClientId(java.lang.String clientId)
Find the list of active destinations for specific clientIdjava.util.List<ExposedDestinationModel>
findActiveExposedDestinationsByDestinationTargetId(java.lang.String destinationTargetId)
Find the list of active exposed destinations for a specific destination targetjava.util.List<ConsumedDestinationModel>
findAllConsumedDestinations()
Find all consumed destinationsjava.util.List<T>
findAllDestinations()
Find all destinationsT
findDestinationByIdAndByDestinationTargetId(java.lang.String destinationId, java.lang.String destinationTargetId)
Find the destination for a specific destination and a specific destination idT
getDestinationById(java.lang.String id)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905.java.util.List<T>
getDestinationsByChannel(DestinationChannel channel)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905.java.util.List<T>
getDestinationsByDestinationTargetId(java.lang.String destinationTargetId)
Find destinations for specific destinationTarget-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Field Detail
-
SELECT_PK_FROM
protected static final java.lang.String SELECT_PK_FROM
- See Also:
- Constant Field Values
-
ID_PARAMETER
protected static final java.lang.String ID_PARAMETER
- See Also:
- Constant Field Values
-
TARGET_PARAMETER
protected static final java.lang.String TARGET_PARAMETER
- See Also:
- Constant Field Values
-
CHANNEL_PARAMETER
protected static final java.lang.String CHANNEL_PARAMETER
- See Also:
- Constant Field Values
-
ACTIVE_PARAMETER
protected static final java.lang.String ACTIVE_PARAMETER
- See Also:
- Constant Field Values
-
AND
protected static final java.lang.String AND
- See Also:
- Constant Field Values
-
NON_TEMPLATE_DT_CLAUSE
protected static final java.lang.String NON_TEMPLATE_DT_CLAUSE
- See Also:
- Constant Field Values
-
GET_ALL_D_QUERY
protected static final java.lang.String GET_ALL_D_QUERY
- See Also:
- Constant Field Values
-
GET_ALL_NONTEMPLATE_D_QUERY
protected static final java.lang.String GET_ALL_NONTEMPLATE_D_QUERY
- See Also:
- Constant Field Values
-
GET_ALL_CONSUMED_D_QUERY
protected static final java.lang.String GET_ALL_CONSUMED_D_QUERY
- See Also:
- Constant Field Values
-
GET_ALL_D_BY_TARGET
protected static final java.lang.String GET_ALL_D_BY_TARGET
- See Also:
- Constant Field Values
-
ID_CLAUSE
protected static final java.lang.String ID_CLAUSE
- See Also:
- Constant Field Values
-
AND_ACTIVE_CLAUSE
protected static final java.lang.String AND_ACTIVE_CLAUSE
- See Also:
- Constant Field Values
-
GET_ALL_D_BY_CHANNEL
protected static final java.lang.String GET_ALL_D_BY_CHANNEL
- See Also:
- Constant Field Values
-
AND_TEMPLATE_CLAUSE
protected static final java.lang.String AND_TEMPLATE_CLAUSE
- See Also:
- Constant Field Values
-
GET_ALL_EXPOSED_BY_CLIENT_QUERY
protected static final java.lang.String GET_ALL_EXPOSED_BY_CLIENT_QUERY
- See Also:
- Constant Field Values
-
GET_ACTIVE_EXPOSED_DESTINATIONS_BY_TARGET
protected static final java.lang.String GET_ACTIVE_EXPOSED_DESTINATIONS_BY_TARGET
- See Also:
- Constant Field Values
-
GET_DESTINATIONS_BY_ID_AND_TARGET
protected static final java.lang.String GET_DESTINATIONS_BY_ID_AND_TARGET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDestinationsByChannel
@Deprecated(since="1905", forRemoval=true) public java.util.List<T> getDestinationsByChannel(DestinationChannel channel)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905. UseDestinationDao.getDestinationsByDestinationTargetId(String)
Description copied from interface:DestinationDao
Find destinations for specific channel- Specified by:
getDestinationsByChannel
in interfaceDestinationDao<T extends AbstractDestinationModel>
- Parameters:
channel
- the DestinationChannel- Returns:
- List of destinations for the given channel
-
getDestinationsByDestinationTargetId
public java.util.List<T> getDestinationsByDestinationTargetId(java.lang.String destinationTargetId)
Description copied from interface:DestinationDao
Find destinations for specific destinationTarget- Specified by:
getDestinationsByDestinationTargetId
in interfaceDestinationDao<T extends AbstractDestinationModel>
- Parameters:
destinationTargetId
- the id of the DestinationTarget- Returns:
- List of destinations for the given DestinationTarget
-
getDestinationById
@Deprecated(since="1905", forRemoval=true) public T getDestinationById(java.lang.String id)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DestinationDao
Get the destination for a specific id- Specified by:
getDestinationById
in interfaceDestinationDao<T extends AbstractDestinationModel>
- Parameters:
id
- The unique identifier of destination- Returns:
- AbstractDestinationModel
-
findAllDestinations
public java.util.List<T> findAllDestinations()
Description copied from interface:DestinationDao
Find all destinations- Specified by:
findAllDestinations
in interfaceDestinationDao<T extends AbstractDestinationModel>
- Returns:
- the list of destinations
-
findActiveExposedDestinationsByClientId
public java.util.List<ExposedDestinationModel> findActiveExposedDestinationsByClientId(java.lang.String clientId)
Description copied from interface:DestinationDao
Find the list of active destinations for specific clientId- Specified by:
findActiveExposedDestinationsByClientId
in interfaceDestinationDao<T extends AbstractDestinationModel>
- Parameters:
clientId
- The clientId of OAuthClientDetails- Returns:
- a List of Destinations by the ExposedOAuthCredential clientId
-
findActiveExposedDestinationsByChannel
@Deprecated(since="1905", forRemoval=true) public java.util.List<ExposedDestinationModel> findActiveExposedDestinationsByChannel(DestinationChannel channel)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DestinationDao
Find the list of active destinations for specific channel- Specified by:
findActiveExposedDestinationsByChannel
in interfaceDestinationDao<T extends AbstractDestinationModel>
- Parameters:
channel
- The channel assigned to Destinations- Returns:
- a List of Destinations by the credential
-
findActiveExposedDestinationsByDestinationTargetId
public java.util.List<ExposedDestinationModel> findActiveExposedDestinationsByDestinationTargetId(java.lang.String destinationTargetId)
Description copied from interface:DestinationDao
Find the list of active exposed destinations for a specific destination target- Specified by:
findActiveExposedDestinationsByDestinationTargetId
in interfaceDestinationDao<T extends AbstractDestinationModel>
- Parameters:
destinationTargetId
- id of the destination target- Returns:
- a list of exposed destinations
-
findDestinationByIdAndByDestinationTargetId
public T findDestinationByIdAndByDestinationTargetId(java.lang.String destinationId, java.lang.String destinationTargetId)
Description copied from interface:DestinationDao
Find the destination for a specific destination and a specific destination id- Specified by:
findDestinationByIdAndByDestinationTargetId
in interfaceDestinationDao<T extends AbstractDestinationModel>
- Parameters:
destinationId
- id of the destinationdestinationTargetId
- id of the destination target- Returns:
- the destination
-
findAllConsumedDestinations
public java.util.List<ConsumedDestinationModel> findAllConsumedDestinations()
Description copied from interface:DestinationDao
Find all consumed destinations- Specified by:
findAllConsumedDestinations
in interfaceDestinationDao<T extends AbstractDestinationModel>
- Returns:
- the list of consumed destinations
-
-