Class PartyEmployeeFactory
java.lang.Object
com.echothree.model.data.employee.server.factory.PartyEmployeeFactory
- All Implemented Interfaces:
BaseFactory<PartyEmployeePK,PartyEmployee>
@ApplicationScoped
public class PartyEmployeeFactory
extends Object
implements BaseFactory<PartyEmployeePK,PartyEmployee>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of PartyEmployeeFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(PartyPK partyPK, String partyEmployeeName, EmployeeTypePK employeeTypePK, Long fromTime, Long thruTime) create(Party party, String partyEmployeeName, EmployeeType employeeType, Long fromTime, Long thruTime) voidcreate(Collection<PartyEmployeeValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<PartyEmployeePK> 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, PartyEmployeePK 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, PartyEmployeeValue value) static PartyEmployeeFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidvoidremove(PartyEmployee entity) voidremove(Collection<PartyEmployeePK> pks) voidstore(PartyEmployee entity) voidstore(Collection<PartyEmployee> entities) boolean
-
Field Details
-
TABLE_NAME
- See Also:
-
PEMP_PARTYEMPLOYEEID
- See Also:
-
PEMP_PAR_PARTYID
- See Also:
-
PEMP_PARTYEMPLOYEENAME
- See Also:
-
PEMP_EMPTY_EMPLOYEETYPEID
- See Also:
-
PEMP_FROMTIME
- See Also:
-
PEMP_THRUTIME
- See Also:
-
-
Constructor Details
-
PartyEmployeeFactory
protected PartyEmployeeFactory()Creates a new instance of PartyEmployeeFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<PartyEmployeePK,PartyEmployee>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<PartyEmployeePK,PartyEmployee>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<PartyEmployeePK,PartyEmployee>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<PartyEmployeePK,PartyEmployee>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<PartyEmployeePK,PartyEmployee>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<PartyEmployeePK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<PartyEmployeePK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<PartyEmployeeValue> getValuesFromPKs(Collection<PartyEmployeePK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
- Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<PartyEmployeeValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
- Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<PartyEmployee> getEntitiesFromPKs(EntityPermission entityPermission, Collection<PartyEmployeePK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
public PartyEmployee getEntityFromValue(EntityPermission entityPermission, PartyEmployeeValue value) -
getEntityFromCache
-
getEntityFromPK
public PartyEmployee getEntityFromPK(EntityPermission entityPermission, PartyEmployeePK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<PartyEmployeePK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<PartyEmployeePK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public PartyEmployeePK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PartyEmployee> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PartyEmployee> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PartyEmployee> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PartyEmployee getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PartyEmployee getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PartyEmployee getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<PartyEmployee> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public PartyEmployee getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public PartyEmployee create(Party party, String partyEmployeeName, EmployeeType employeeType, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public PartyEmployee create(PartyPK partyPK, String partyEmployeeName, EmployeeTypePK employeeTypePK, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<PartyEmployeeValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<PartyEmployeePK,PartyEmployee> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<PartyEmployeePK,PartyEmployee> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PartyEmployeePK,PartyEmployee> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PartyEmployeePK,PartyEmployee> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PartyEmployeePK,PartyEmployee> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<PartyEmployeePK,PartyEmployee> - Throws:
PersistenceDatabaseException
-