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 theAbstractDestinationModeltype
- 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.StringACTIVE_PARAMETERprotected static java.lang.StringANDprotected static java.lang.StringAND_ACTIVE_CLAUSEprotected static java.lang.StringAND_TEMPLATE_CLAUSEprotected static java.lang.StringCHANNEL_PARAMETERprotected static java.lang.StringGET_ACTIVE_EXPOSED_DESTINATIONS_BY_TARGETprotected static java.lang.StringGET_ALL_CONSUMED_D_QUERYprotected static java.lang.StringGET_ALL_D_BY_CHANNELprotected static java.lang.StringGET_ALL_D_BY_TARGETprotected static java.lang.StringGET_ALL_D_QUERYprotected static java.lang.StringGET_ALL_EXPOSED_BY_CLIENT_QUERYprotected static java.lang.StringGET_ALL_NONTEMPLATE_D_QUERYprotected static java.lang.StringGET_DESTINATIONS_BY_ID_AND_TARGETprotected static java.lang.StringID_CLAUSEprotected static java.lang.StringID_PARAMETERprotected static java.lang.StringNON_TEMPLATE_DT_CLAUSEprotected static java.lang.StringSELECT_PK_FROMprotected static java.lang.StringTARGET_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 destinationsTfindDestinationByIdAndByDestinationTargetId(java.lang.String destinationId, java.lang.String destinationTargetId)Find the destination for a specific destination and a specific destination idTgetDestinationById(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:DestinationDaoFind destinations for specific channel- Specified by:
getDestinationsByChannelin 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:DestinationDaoFind destinations for specific destinationTarget- Specified by:
getDestinationsByDestinationTargetIdin 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:DestinationDaoGet the destination for a specific id- Specified by:
getDestinationByIdin interfaceDestinationDao<T extends AbstractDestinationModel>- Parameters:
id- The unique identifier of destination- Returns:
- AbstractDestinationModel
-
findAllDestinations
public java.util.List<T> findAllDestinations()
Description copied from interface:DestinationDaoFind all destinations- Specified by:
findAllDestinationsin interfaceDestinationDao<T extends AbstractDestinationModel>- Returns:
- the list of destinations
-
findActiveExposedDestinationsByClientId
public java.util.List<ExposedDestinationModel> findActiveExposedDestinationsByClientId(java.lang.String clientId)
Description copied from interface:DestinationDaoFind the list of active destinations for specific clientId- Specified by:
findActiveExposedDestinationsByClientIdin 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:DestinationDaoFind the list of active destinations for specific channel- Specified by:
findActiveExposedDestinationsByChannelin 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:DestinationDaoFind the list of active exposed destinations for a specific destination target- Specified by:
findActiveExposedDestinationsByDestinationTargetIdin 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:DestinationDaoFind the destination for a specific destination and a specific destination id- Specified by:
findDestinationByIdAndByDestinationTargetIdin 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:DestinationDaoFind all consumed destinations- Specified by:
findAllConsumedDestinationsin interfaceDestinationDao<T extends AbstractDestinationModel>- Returns:
- the list of consumed destinations
-
-