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