public class AnchorOrderDAO
extends java.lang.Object
AnchorOrder
objects.Constructor and Description |
---|
AnchorOrderDAO() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteAnchorOrder(java.lang.String anchor)
deletes a
AnchorOrder from the database by the anchor of
the collection. |
static AnchorOrder |
getAnchorOrder(java.lang.String anchor,
javax.persistence.EntityManager em)
retrieves a
AnchorOrder from the database by the anchor of
the collection. |
static java.util.List<AnchorOrder> |
getAnchorOrders()
retrieves all
AnchorOrder objects from the database. |
static void |
persistAnchorOrder(AnchorOrder anchorOrder,
javax.persistence.EntityManager em)
persists a
AnchorOrder object to the database |
static void |
persistAnchorOrders(java.util.List<AnchorOrder> anchorOrders)
persists a list of
AnchorOrder objects to the database |
public static AnchorOrder getAnchorOrder(java.lang.String anchor, javax.persistence.EntityManager em)
AnchorOrder
from the database by the anchor of
the collection.anchor
- the name of the collectionem
- the entity managerCollection
objectpublic static java.util.List<AnchorOrder> getAnchorOrders()
AnchorOrder
objects from the database.Collection
objectspublic static void deleteAnchorOrder(java.lang.String anchor)
AnchorOrder
from the database by the anchor of
the collection.anchor
- the name of the collectionpublic static void persistAnchorOrder(AnchorOrder anchorOrder, javax.persistence.EntityManager em)
AnchorOrder
object to the databaseanchorOrder
- the object to be persistedem
- the entity managerpublic static void persistAnchorOrders(java.util.List<AnchorOrder> anchorOrders)
AnchorOrder
objects to the databaseanchorOrders
- the objects to be persisted