@Repository public class OnDemandPriceDaoImpl extends AbstractHerdDao implements OnDemandPriceDao
AbstractHerdDao.AggregateFunctionBUSINESS_OBJECT_DATA_PARTITIONS, BUSINESS_OBJECT_DATA_SUBPARTITIONS, configurationHelper, DEFAULT_SINGLE_DAY_DATE_MASK, MAX_PARTITION_FILTERS_PER_REQUESTentityManager| Constructor and Description |
|---|
OnDemandPriceDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
OnDemandPriceEntity |
getOnDemandPrice(String region,
String instanceType)
Returns the on-demand price with the specified region and instance type.
|
getMaximumBusinessObjectDataVersionSubQuery, getQueryRestriction, getQueryRestriction, getQueryRestrictionOnBusinessObjectDataVersionAndStatus, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnStorage, savedelete, detach, executeSingleResultQuery, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, getPredicateForInClause, query, queryByNamedParams, saveAndRefreshclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, detach, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, query, queryByNamedParams, save, saveAndRefreshpublic OnDemandPriceEntity getOnDemandPrice(String region, String instanceType)
null if no on-demand price is found. Throws an exception when
more than 1 on-demand price is found.
This implementation uses JPA criteria, and throws exception when more than 1 on-demand price is found for the specified parameters.getOnDemandPrice in interface OnDemandPriceDaoregion - The on-demand price's region.instanceType - The on-demand price's instance type.Copyright © 2017. All rights reserved.