|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.inventory.dao.FulfillmentLocationDaoImpl
@Repository(value="blFulfillmentLocationDao") public class FulfillmentLocationDaoImpl
| Field Summary | |
|---|---|
protected javax.persistence.EntityManager |
em
|
| Constructor Summary | |
|---|---|
FulfillmentLocationDaoImpl()
|
|
| Method Summary | |
|---|---|
void |
delete(FulfillmentLocation fulfillmentLocation)
Deletes the passed FulfillmentLocation |
List<FulfillmentLocation> |
readAll()
Retrieves all of the fulfillment locations |
List<FulfillmentLocation> |
readAllFulfillmentLocationsForSku(Long skuId)
Reads all fulfillment locations associated with a sku |
FulfillmentLocation |
readById(Long fulfillmentLocationId)
Retrieves a FulfillmentLocation from the given id |
FulfillmentLocation |
readDefaultFulfillmentLocation()
Reads the first fulfillment location that it finds that is flagged as default |
FulfillmentLocation |
save(FulfillmentLocation fulfillmentLocation)
Persists the FulfillmentLocation |
void |
updateOtherDefaultLocationToFalse(FulfillmentLocation fulfillmentLocation)
Sets the defaultLocation flag to false for all fulfillmentLocations |
| 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
| Constructor Detail |
|---|
public FulfillmentLocationDaoImpl()
| Method Detail |
|---|
public List<FulfillmentLocation> readAll()
FulfillmentLocationDao
readAll in interface FulfillmentLocationDaoList of FulfillmentLocationpublic FulfillmentLocation readById(Long fulfillmentLocationId)
FulfillmentLocationDaoFulfillmentLocation from the given id
readById in interface FulfillmentLocationDaoFulfillmentLocationpublic FulfillmentLocation save(FulfillmentLocation fulfillmentLocation)
FulfillmentLocationDaoFulfillmentLocation
save in interface FulfillmentLocationDaoFulfillmentLocationpublic void delete(FulfillmentLocation fulfillmentLocation)
FulfillmentLocationDaoFulfillmentLocation
delete in interface FulfillmentLocationDaopublic void updateOtherDefaultLocationToFalse(FulfillmentLocation fulfillmentLocation)
FulfillmentLocationDao
updateOtherDefaultLocationToFalse in interface FulfillmentLocationDaopublic FulfillmentLocation readDefaultFulfillmentLocation()
FulfillmentLocationDao
readDefaultFulfillmentLocation in interface FulfillmentLocationDaopublic List<FulfillmentLocation> readAllFulfillmentLocationsForSku(Long skuId)
FulfillmentLocationDao
readAllFulfillmentLocationsForSku in interface FulfillmentLocationDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||