|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.catalog.dao.SkuDaoImpl
@Repository(value="blSkuDao") public class SkuDaoImpl
| Field Summary | |
|---|---|
protected javax.persistence.EntityManager |
em
|
protected EntityConfiguration |
entityConfiguration
|
| Constructor Summary | |
|---|---|
SkuDaoImpl()
|
|
| Method Summary | |
|---|---|
Sku |
create()
Create a new Sku instance. |
void |
delete(Sku sku)
Remove the Sku instance from the datastore |
List<Sku> |
readAllSkus()
Retrieve all Sku instances from the datastore |
Sku |
readFirstSku()
Retrieve the Sku instance whose primary key is the smallest
of all skus in the datastore |
Sku |
readSkuById(Long skuId)
Retrieve a Sku instance by its primary key |
List<Sku> |
readSkusById(List<Long> ids)
Find all the Sku instances whose primary key matches
one of the values from the passed in list |
Sku |
save(Sku sku)
Persist a Sku instance to the datastore |
SkuFee |
saveSkuFee(SkuFee fee)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
| Constructor Detail |
|---|
public SkuDaoImpl()
| Method Detail |
|---|
public Sku save(Sku sku)
SkuDaoSku instance to the datastore
save in interface SkuDaosku - the sku to persist
public SkuFee saveSkuFee(SkuFee fee)
saveSkuFee in interface SkuDaopublic Sku readSkuById(Long skuId)
SkuDaoSku instance by its primary key
readSkuById in interface SkuDaoskuId - the primary key of the sku
public Sku readFirstSku()
SkuDaoSku instance whose primary key is the smallest
of all skus in the datastore
readFirstSku in interface SkuDaopublic List<Sku> readAllSkus()
SkuDaoSku instances from the datastore
readAllSkus in interface SkuDaopublic List<Sku> readSkusById(List<Long> ids)
SkuDaoSku instances whose primary key matches
one of the values from the passed in list
readSkusById in interface SkuDaoids - the list of primary key values
public void delete(Sku sku)
SkuDaoSku instance from the datastore
delete in interface SkuDaosku - the sku to removepublic Sku create()
SkuDaoSku instance. The system will use the configuration in
/BroadleafCommerce/core/BroadleafCommerceFramework/src/main/resources/bl-framework-applicationContext-entity.xml
to determine which polymorphic version of Sku to instantiate. To make Broadleaf instantiate your
extension of Sku by default, include an entity configuration bean in your application context xml similar to:
<bean id="blEntityConfiguration" class="org.broadleafcommerce.common.persistence.EntityConfiguration">
<property name="entityContexts">
<list>
<value>classpath:myCompany-applicationContext-entity.xml</value>
</list>
</property>
</bean>
create in interface SkuDaoSku instance based on the Broadleaf entity configuration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||