Class IdempotentResponseFactory
java.lang.Object
com.echothree.model.data.graphql.server.factory.IdempotentResponseFactory
- All Implemented Interfaces:
BaseFactory<IdempotentResponsePK,IdempotentResponse>
@ApplicationScoped
public class IdempotentResponseFactory
extends Object
implements BaseFactory<IdempotentResponsePK,IdempotentResponse>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of IdempotentResponseFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(UserVisitPK userVisitPK, String idempotencyKeyHash, String queryHash, String variablesHash, String operationNameHash, Long startTime, Long completedTime, String response, Long retainUntilTime, String initializationVector) create(UserVisit userVisit, String idempotencyKeyHash, String queryHash, String variablesHash, String operationNameHash, Long startTime, Long completedTime, String response, Long retainUntilTime, String initializationVector) voidcreate(Collection<IdempotentResponseValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<IdempotentResponsePK> pks) getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntitiesFromQuery(EntityPermission entityPermission, org.jooq.ResultQuery<?> query) getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) getEntityFromPK(EntityPermission entityPermission, IdempotentResponsePK pk) getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntityFromQuery(EntityPermission entityPermission, org.jooq.ResultQuery<?> query) getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) getEntityFromValue(EntityPermission entityPermission, IdempotentResponseValue value) static IdempotentResponseFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidvoidremove(IdempotentResponse entity) voidvoidstore(IdempotentResponse entity) voidstore(Collection<IdempotentResponse> entities) boolean
-
Field Details
-
IDMPRSP_IDEMPOTENTRESPONSEID
- See Also:
-
IDMPRSP_UVIS_USERVISITID
- See Also:
-
IDMPRSP_IDEMPOTENCYKEYHASH
- See Also:
-
IDMPRSP_QUERYHASH
- See Also:
-
IDMPRSP_VARIABLESHASH
- See Also:
-
IDMPRSP_OPERATIONNAMEHASH
- See Also:
-
IDMPRSP_STARTTIME
- See Also:
-
IDMPRSP_COMPLETEDTIME
- See Also:
-
IDMPRSP_RESPONSE
- See Also:
-
IDMPRSP_RETAINUNTILTIME
- See Also:
-
IDMPRSP_INITIALIZATIONVECTOR
- See Also:
-
-
Constructor Details
-
IdempotentResponseFactory
protected IdempotentResponseFactory()Creates a new instance of IdempotentResponseFactory
-
-
Method Details
-
getInstance
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<IdempotentResponsePK,IdempotentResponse>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<IdempotentResponsePK,IdempotentResponse>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<IdempotentResponsePK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<IdempotentResponsePK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<IdempotentResponseValue> getValuesFromPKs(Collection<IdempotentResponsePK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
public IdempotentResponseValue getValueFromPK(IdempotentResponsePK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<IdempotentResponseValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
public IdempotentResponseValue getValueFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<IdempotentResponse> getEntitiesFromPKs(EntityPermission entityPermission, Collection<IdempotentResponsePK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
public IdempotentResponse getEntityFromValue(EntityPermission entityPermission, IdempotentResponseValue value) -
getEntityFromCache
-
getEntityFromPK
public IdempotentResponse getEntityFromPK(EntityPermission entityPermission, IdempotentResponsePK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<IdempotentResponsePK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<IdempotentResponsePK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public IdempotentResponsePK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<IdempotentResponse> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<IdempotentResponse> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<IdempotentResponse> getEntitiesFromQuery(EntityPermission entityPermission, org.jooq.ResultQuery<?> query) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<IdempotentResponse> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public IdempotentResponse getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public IdempotentResponse getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public IdempotentResponse getEntityFromQuery(EntityPermission entityPermission, org.jooq.ResultQuery<?> query) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public IdempotentResponse getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<IdempotentResponse> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public IdempotentResponse getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public IdempotentResponse create(UserVisit userVisit, String idempotencyKeyHash, String queryHash, String variablesHash, String operationNameHash, Long startTime, Long completedTime, String response, Long retainUntilTime, String initializationVector) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public IdempotentResponse create(UserVisitPK userVisitPK, String idempotencyKeyHash, String queryHash, String variablesHash, String operationNameHash, Long startTime, Long completedTime, String response, Long retainUntilTime, String initializationVector) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<IdempotentResponseValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<IdempotentResponsePK,IdempotentResponse> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<IdempotentResponsePK,IdempotentResponse> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<IdempotentResponsePK,IdempotentResponse> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<IdempotentResponsePK,IdempotentResponse> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<IdempotentResponsePK,IdempotentResponse> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<IdempotentResponsePK,IdempotentResponse> - Throws:
PersistenceDatabaseException
-