Class PartyRelationshipFactory
java.lang.Object
com.echothree.model.data.party.server.factory.PartyRelationshipFactory
- All Implemented Interfaces:
BaseFactory<PartyRelationshipPK,PartyRelationship>
@ApplicationScoped
public class PartyRelationshipFactory
extends Object
implements BaseFactory<PartyRelationshipPK,PartyRelationship>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of PartyRelationshipFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(PartyRelationshipTypePK partyRelationshipTypePK, PartyPK fromPartyPK, RoleTypePK fromRoleTypePK, PartyPK toPartyPK, RoleTypePK toRoleTypePK, Long fromTime, Long thruTime) create(PartyRelationshipType partyRelationshipType, Party fromParty, RoleType fromRoleType, Party toParty, RoleType toRoleType, Long fromTime, Long thruTime) voidcreate(Collection<PartyRelationshipValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<PartyRelationshipPK> 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, PartyRelationshipPK 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, PartyRelationshipValue value) static PartyRelationshipFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidvoidremove(PartyRelationship entity) voidvoidstore(PartyRelationship entity) voidstore(Collection<PartyRelationship> entities) boolean
-
Field Details
-
TABLE_NAME
- See Also:
-
PREL_PARTYRELATIONSHIPID
- See Also:
-
PREL_PRT_PARTYRELATIONSHIPTYPEID
- See Also:
-
PREL_FROMPARTYID
- See Also:
-
PREL_FROMROLETYPEID
- See Also:
-
PREL_TOPARTYID
- See Also:
-
PREL_TOROLETYPEID
- See Also:
-
PREL_FROMTIME
- See Also:
-
PREL_THRUTIME
- See Also:
-
-
Constructor Details
-
PartyRelationshipFactory
protected PartyRelationshipFactory()Creates a new instance of PartyRelationshipFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<PartyRelationshipPK,PartyRelationship>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<PartyRelationshipPK,PartyRelationship>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<PartyRelationshipPK,PartyRelationship>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<PartyRelationshipPK,PartyRelationship>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<PartyRelationshipPK,PartyRelationship>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<PartyRelationshipPK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<PartyRelationshipPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<PartyRelationshipValue> getValuesFromPKs(Collection<PartyRelationshipPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
public PartyRelationshipValue getValueFromPK(PartyRelationshipPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<PartyRelationshipValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
public PartyRelationshipValue getValueFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<PartyRelationship> getEntitiesFromPKs(EntityPermission entityPermission, Collection<PartyRelationshipPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
public PartyRelationship getEntityFromValue(EntityPermission entityPermission, PartyRelationshipValue value) -
getEntityFromCache
-
getEntityFromPK
public PartyRelationship getEntityFromPK(EntityPermission entityPermission, PartyRelationshipPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<PartyRelationshipPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<PartyRelationshipPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public PartyRelationshipPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PartyRelationship> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PartyRelationship> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<PartyRelationship> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PartyRelationship getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PartyRelationship getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public PartyRelationship getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<PartyRelationship> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public PartyRelationship getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public PartyRelationship create(PartyRelationshipType partyRelationshipType, Party fromParty, RoleType fromRoleType, Party toParty, RoleType toRoleType, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public PartyRelationship create(PartyRelationshipTypePK partyRelationshipTypePK, PartyPK fromPartyPK, RoleTypePK fromRoleTypePK, PartyPK toPartyPK, RoleTypePK toRoleTypePK, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<PartyRelationshipValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<PartyRelationshipPK,PartyRelationship> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<PartyRelationshipPK,PartyRelationship> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PartyRelationshipPK,PartyRelationship> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PartyRelationshipPK,PartyRelationship> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<PartyRelationshipPK,PartyRelationship> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<PartyRelationshipPK,PartyRelationship> - Throws:
PersistenceDatabaseException
-