Class PartyGroupFactory
java.lang.Object
com.echothree.model.data.party.server.factory.PartyGroupFactory
- All Implemented Interfaces:
BaseFactory<PartyGroupPK,PartyGroup>
@ApplicationScoped
public class PartyGroupFactory
extends Object
implements BaseFactory<PartyGroupPK,PartyGroup>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of PartyGroupFactory -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(Collection<PartyGroupValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<PartyGroupPK> 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, PartyGroupPK 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, PartyGroupValue value) static PartyGroupFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidremove(PartyGroupPK pk) voidremove(PartyGroup entity) voidremove(Collection<PartyGroupPK> pks) voidstore(PartyGroup entity) voidstore(Collection<PartyGroup> entities) booleanvalidPK(PartyGroupPK pk)
-
Field Details
-
TABLE_NAME
- See Also:
-
PGP_PARTYGROUPID
- See Also:
-
PGP_PAR_PARTYID
- See Also:
-
PGP_NAME
- See Also:
-
PGP_FROMTIME
- See Also:
-
PGP_THRUTIME
- See Also:
-
-
Constructor Details
-
PartyGroupFactory
protected PartyGroupFactory()Creates a new instance of PartyGroupFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<PartyGroupPK,PartyGroup>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<PartyGroupPK,PartyGroup>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<PartyGroupPK,PartyGroup>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<PartyGroupPK,PartyGroup>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<PartyGroupPK,PartyGroup>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
- Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<PartyGroupPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<PartyGroupValue> getValuesFromPKs(Collection<PartyGroupPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
- Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<PartyGroupValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
- Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<PartyGroup> getEntitiesFromPKs(EntityPermission entityPermission, Collection<PartyGroupPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
-
getEntityFromCache
-
getEntityFromPK
public PartyGroup getEntityFromPK(EntityPermission entityPermission, PartyGroupPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<PartyGroupPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<PartyGroupPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public PartyGroupPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PartyGroup> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PartyGroup> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PartyGroup> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PartyGroup getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PartyGroup getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PartyGroup getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<PartyGroup> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public PartyGroup getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public PartyGroup create(Party party, String name, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public PartyGroup create(PartyPK partyPK, String name, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<PartyGroupValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<PartyGroupPK,PartyGroup> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<PartyGroupPK,PartyGroup> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PartyGroupPK,PartyGroup> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PartyGroupPK,PartyGroup> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PartyGroupPK,PartyGroup> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<PartyGroupPK,PartyGroup> - Throws:
PersistenceDatabaseException
-