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