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