Class ShippingMethodFactory
java.lang.Object
com.echothree.model.data.shipping.server.factory.ShippingMethodFactory
- All Implemented Interfaces:
BaseFactory<ShippingMethodPK,ShippingMethod>
@ApplicationScoped
public class ShippingMethodFactory
extends Object
implements BaseFactory<ShippingMethodPK,ShippingMethod>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of ShippingMethodFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate()create(ShippingMethodDetailPK activeDetailPK, ShippingMethodDetailPK lastDetailPK) create(ShippingMethodDetail activeDetail, ShippingMethodDetail lastDetail) voidcreate(Collection<ShippingMethodValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<ShippingMethodPK> pks) getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) getEntityFromPK(EntityPermission entityPermission, ShippingMethodPK pk) getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) getEntityFromValue(EntityPermission entityPermission, ShippingMethodValue value) static ShippingMethodFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidvoidremove(ShippingMethod entity) voidremove(Collection<ShippingMethodPK> pks) voidstore(ShippingMethod entity) voidstore(Collection<ShippingMethod> entities) boolean
-
Field Details
-
TABLE_NAME
- See Also:
-
SHM_SHIPPINGMETHODID
- See Also:
-
SHM_ACTIVEDETAILID
- See Also:
-
SHM_LASTDETAILID
- See Also:
-
-
Constructor Details
-
ShippingMethodFactory
protected ShippingMethodFactory()Creates a new instance of ShippingMethodFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<ShippingMethodPK,ShippingMethod>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<ShippingMethodPK,ShippingMethod>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<ShippingMethodPK,ShippingMethod>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<ShippingMethodPK,ShippingMethod>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<ShippingMethodPK,ShippingMethod>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<ShippingMethodPK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<ShippingMethodPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<ShippingMethodValue> getValuesFromPKs(Collection<ShippingMethodPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
- Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<ShippingMethodValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
- Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<ShippingMethod> getEntitiesFromPKs(EntityPermission entityPermission, Collection<ShippingMethodPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
public ShippingMethod getEntityFromValue(EntityPermission entityPermission, ShippingMethodValue value) -
getEntityFromCache
-
getEntityFromPK
public ShippingMethod getEntityFromPK(EntityPermission entityPermission, ShippingMethodPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<ShippingMethodPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<ShippingMethodPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public ShippingMethodPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<ShippingMethod> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<ShippingMethod> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<ShippingMethod> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public ShippingMethod getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public ShippingMethod getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public ShippingMethod getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<ShippingMethod> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public ShippingMethod getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
-
create
public ShippingMethod create(ShippingMethodDetail activeDetail, ShippingMethodDetail lastDetail) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public ShippingMethod create(ShippingMethodDetailPK activeDetailPK, ShippingMethodDetailPK lastDetailPK) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<ShippingMethodValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<ShippingMethodPK,ShippingMethod> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<ShippingMethodPK,ShippingMethod> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<ShippingMethodPK,ShippingMethod> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<ShippingMethodPK,ShippingMethod> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<ShippingMethodPK,ShippingMethod> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<ShippingMethodPK,ShippingMethod> - Throws:
PersistenceDatabaseException
-