Class InvoiceDetailFactory
java.lang.Object
com.echothree.model.data.invoice.server.factory.InvoiceDetailFactory
- All Implemented Interfaces:
BaseFactory<InvoiceDetailPK,InvoiceDetail>
@ApplicationScoped
public class InvoiceDetailFactory
extends Object
implements BaseFactory<InvoiceDetailPK,InvoiceDetail>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of InvoiceDetailFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(InvoicePK invoicePK, InvoiceTypePK invoiceTypePK, String invoiceName, BillingAccountPK billingAccountPK, GlAccountPK glAccountPK, TermPK termPK, FreeOnBoardPK freeOnBoardPK, String reference, String description, Long fromTime, Long thruTime) create(Invoice invoice, InvoiceType invoiceType, String invoiceName, BillingAccount billingAccount, GlAccount glAccount, Term term, FreeOnBoard freeOnBoard, String reference, String description, Long fromTime, Long thruTime) voidcreate(Collection<InvoiceDetailValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<InvoiceDetailPK> 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, InvoiceDetailPK 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, InvoiceDetailValue value) static InvoiceDetailFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidvoidremove(InvoiceDetail entity) voidremove(Collection<InvoiceDetailPK> pks) voidstore(InvoiceDetail entity) voidstore(Collection<InvoiceDetail> entities) boolean
-
Field Details
-
TABLE_NAME
- See Also:
-
INVCDT_INVOICEDETAILID
- See Also:
-
INVCDT_INVC_INVOICEID
- See Also:
-
INVCDT_INVCTYP_INVOICETYPEID
- See Also:
-
INVCDT_INVOICENAME
- See Also:
-
INVCDT_BLLACT_BILLINGACCOUNTID
- See Also:
-
INVCDT_GLA_GLACCOUNTID
- See Also:
-
INVCDT_TRM_TERMID
- See Also:
-
INVCDT_FOB_FREEONBOARDID
- See Also:
-
INVCDT_REFERENCE
- See Also:
-
INVCDT_DESCRIPTION
- See Also:
-
INVCDT_FROMTIME
- See Also:
-
INVCDT_THRUTIME
- See Also:
-
-
Constructor Details
-
InvoiceDetailFactory
protected InvoiceDetailFactory()Creates a new instance of InvoiceDetailFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<InvoiceDetailPK,InvoiceDetail>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<InvoiceDetailPK,InvoiceDetail>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<InvoiceDetailPK,InvoiceDetail>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<InvoiceDetailPK,InvoiceDetail>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<InvoiceDetailPK,InvoiceDetail>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<InvoiceDetailPK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<InvoiceDetailPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<InvoiceDetailValue> getValuesFromPKs(Collection<InvoiceDetailPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
- Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<InvoiceDetailValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
- Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<InvoiceDetail> getEntitiesFromPKs(EntityPermission entityPermission, Collection<InvoiceDetailPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
public InvoiceDetail getEntityFromValue(EntityPermission entityPermission, InvoiceDetailValue value) -
getEntityFromCache
-
getEntityFromPK
public InvoiceDetail getEntityFromPK(EntityPermission entityPermission, InvoiceDetailPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<InvoiceDetailPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<InvoiceDetailPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public InvoiceDetailPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<InvoiceDetail> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<InvoiceDetail> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<InvoiceDetail> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public InvoiceDetail getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public InvoiceDetail getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public InvoiceDetail getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<InvoiceDetail> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public InvoiceDetail getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public InvoiceDetail create(Invoice invoice, InvoiceType invoiceType, String invoiceName, BillingAccount billingAccount, GlAccount glAccount, Term term, FreeOnBoard freeOnBoard, String reference, String description, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public InvoiceDetail create(InvoicePK invoicePK, InvoiceTypePK invoiceTypePK, String invoiceName, BillingAccountPK billingAccountPK, GlAccountPK glAccountPK, TermPK termPK, FreeOnBoardPK freeOnBoardPK, String reference, String description, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<InvoiceDetailValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<InvoiceDetailPK,InvoiceDetail> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<InvoiceDetailPK,InvoiceDetail> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<InvoiceDetailPK,InvoiceDetail> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<InvoiceDetailPK,InvoiceDetail> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<InvoiceDetailPK,InvoiceDetail> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<InvoiceDetailPK,InvoiceDetail> - Throws:
PersistenceDatabaseException
-