Uses of Class
com.ibm.fhir.persistence.exception.FHIRPersistenceException
-
-
Uses of FHIRPersistenceException in com.ibm.fhir.persistence
Methods in com.ibm.fhir.persistence that throw FHIRPersistenceException Modifier and Type Method Description void
FHIRPersistenceTransaction. begin()
Begin a new transaction on the current thread if a transaction is not started yet.<T extends Resource>
SingleResourceResult<T>FHIRPersistence. create(FHIRPersistenceContext context, T resource)
Stores a new FHIR Resource in the datastore.default <T extends Resource>
SingleResourceResult<T>FHIRPersistence. delete(FHIRPersistenceContext context, Class<T> resourceType, String logicalId)
Deletes the specified FHIR Resource from the datastore.void
FHIRPersistenceTransaction. end()
End the current thread's transaction.OperationOutcome
FHIRPersistence. getHealth()
Returns an OperationOutcome indicating the current status of the persistence store / backendFHIRPersistence
FHIRPersistenceFactory. getInstance()
Returns an instance of a concrete implementation of the FHIRPersistence interface.FHIRPersistence
PropertyBasedFHIRPersistenceFactory. getInstance(Properties properties)
<T extends Resource>
MultiResourceResult<T>FHIRPersistence. history(FHIRPersistenceContext context, Class<T> resourceType, String logicalId)
Retrieves all of the versions of the specified FHIR Resource.<T extends Resource>
SingleResourceResult<T>FHIRPersistence. read(FHIRPersistenceContext context, Class<T> resourceType, String logicalId)
Retrieves the most recent version of a FHIR Resource from the datastore.MultiResourceResult<Resource>
FHIRPersistence. search(FHIRPersistenceContext context, Class<? extends Resource> resourceType)
Performs a search on the specified target resource type using the specified search parameters.void
FHIRPersistenceTransaction. setRollbackOnly()
Modify the transaction associated with the current thread such that the only possible outcome of the transaction is to roll back the transaction.<T extends Resource>
SingleResourceResult<T>FHIRPersistence. update(FHIRPersistenceContext context, String logicalId, T resource)
Updates an existing FHIR Resource by storing a new version in the datastore.<T extends Resource>
SingleResourceResult<T>FHIRPersistence. vread(FHIRPersistenceContext context, Class<T> resourceType, String logicalId, String versionId)
Retrieves a specific version of a FHIR Resource from the datastore. -
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.exception
Subclasses of FHIRPersistenceException in com.ibm.fhir.persistence.exception Modifier and Type Class Description class
FHIRPersistenceNotSupportedException
Thrown for methods or features not yet fully implemented.class
FHIRPersistenceProcessorException
Thrown when a failure is found processing search parameters.class
FHIRPersistenceResourceDeletedException
class
FHIRPersistenceResourceNotFoundException
class
FHIRPersistenceVersionIdMismatchException
This exception class represents an occurrence of a mismatch between the version id in the resource json vs.Methods in com.ibm.fhir.persistence.exception that return FHIRPersistenceException Modifier and Type Method Description FHIRPersistenceException
FHIRPersistenceException. withIssue(OperationOutcome.Issue... issues)
FHIRPersistenceException
FHIRPersistenceException. withIssue(Collection<OperationOutcome.Issue> issues)
FHIRPersistenceException
FHIRPersistenceProcessorException. withIssue(OperationOutcome.Issue... issues)
FHIRPersistenceException
FHIRPersistenceProcessorException. withIssue(Collection<OperationOutcome.Issue> issues)
-
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.helper
Methods in com.ibm.fhir.persistence.helper that throw FHIRPersistenceException Modifier and Type Method Description void
FHIRTransactionHelper. begin()
If a transaction has not yet been started on this thread, then start one.void
FHIRTransactionHelper. commit()
If we previously started a transaction on this thread using this helper instance, then commit it now.void
FHIRTransactionHelper. end()
Same as commit, but is preferred for readability becauseFHIRTransactionHelper.commit()
will actually do a rollback if setRollbackOnly is called on the underlying transactionFHIRPersistence
FHIRPersistenceHelper. getFHIRPersistenceImplementation()
FHIRPersistence
FHIRPersistenceHelper. getFHIRPersistenceImplementation(String factoryPropertyName)
FHIRPersistence
PersistenceHelper. getFHIRPersistenceImplementation()
Returns an appropriate FHIRPersistance implementation according to the current configuration.FHIRPersistence
PersistenceHelper. getFHIRPersistenceImplementation(String factoryPropertyName)
Returns an appropriate FHIRPersistance implementation according to the current configuration.default boolean
PersistenceHelper. isValidFHIRPersistenceImplementation(String identifier)
Identifies if a FHIRPersistence implementation can be found by using the given identifier.protected String
FHIRPersistenceHelper. retrieveFactoryClassName(String factoryPropertyName)
Retrieves the name of the factory class that should be instantiated for use by the server.void
FHIRTransactionHelper. rollback()
If we previously started a transaction on this thread using this helper instance, then perform a rollback now; otherwise, set the transaction as 'rollback only' to prevent it from being committed later.void
FHIRTransactionHelper. setRollbackOnly()
Mark the current transaction for rollback. -
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.interceptor
Subclasses of FHIRPersistenceException in com.ibm.fhir.persistence.interceptor Modifier and Type Class Description class
FHIRPersistenceInterceptorException
-
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc
Methods in com.ibm.fhir.persistence.jdbc that throw FHIRPersistenceException Modifier and Type Method Description FHIRPersistence
FHIRPersistenceJDBCFactory. getInstance()
static ResourceDAO
FHIRResourceDAOFactory. getResourceDAO(Connection connection, String schemaName, FHIRDbFlavor flavor)
Construct a new ResourceDAO implementation matching the database typestatic ResourceDAO
FHIRResourceDAOFactory. getResourceDAO(Connection connection, String schemaName, FHIRDbFlavor flavor, TransactionSynchronizationRegistry trxSynchRegistry)
Construct a new ResourceDAO implementation matching the database type -
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc.connection
Methods in com.ibm.fhir.persistence.jdbc.connection with type parameters of type FHIRPersistenceException Modifier and Type Method Description static <XT extends FHIRPersistenceException>
XTFHIRDbHelper. severe(Logger logger, XT fx, String errorMessage, Throwable cause)
Log the exception message here along with the cause stack.static <XT extends FHIRPersistenceException>
XTFHIRDbHelper. severe(Logger logger, XT fx, Throwable cause)
Convenience function to log the cause of an exception about to be thrown.Methods in com.ibm.fhir.persistence.jdbc.connection that throw FHIRPersistenceException Modifier and Type Method Description void
FHIRTestTransactionAdapter. begin()
void
FHIRUserTransactionAdapter. begin()
If a transaction has not yet been started on this thread, then start one.protected void
FHIRDbConnectionStrategyBase. configure(Connection connection, String tenantId, String dsId)
Check with the transaction sync registry to see if this is the first time we've worked with this connection in the current transaction.void
FHIRTestTransactionAdapter. end()
void
FHIRUserTransactionAdapter. end()
If we previously started a transaction on this thread using this helper instance, then commit it now.(package private) <T> T
FHIRUserTransactionAdapter. func(Supplier<T> s)
Call the supplier function within a begin/endprotected Connection
FHIRDbConnectionStrategyBase. getConnection(DataSource datasource, String tenantId, String dsId)
Get a connection configured for the given tenant and datasourceIdprotected Connection
FHIRDbProxyDatasourceConnectionStrategy. getConnection(DataSource datasource, String tenantId, String dsId)
void
FHIRTestTransactionAdapter. setRollbackOnly()
void
FHIRUserTransactionAdapter. setRollbackOnly()
-
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc.dao.api
Methods in com.ibm.fhir.persistence.jdbc.dao.api that throw FHIRPersistenceException Modifier and Type Method Description int
ParameterDAO. acquireCodeSystemId(String codeSystemName)
Acquire and return the id associated with the passed code-system name.int
ParameterDAO. acquireParameterNameId(String parameterName)
Acquire and return the id associated with the passed parameter name.void
ParameterDAO. addCodeSystemsCacheCandidate(String codeSystemName, Integer codeSystemId)
Adds a code system name / code system id pair to a candidate collection for population into the CodeSystemsCache.void
ParameterDAO. addParameterNamesCacheCandidate(String parameterName, Integer parameterId)
Adds a parameter name / parameter id pair to a candidate collection for population into the ParameterNamesCache.void
ResourceDAO. addResourceTypeCacheCandidate(String resourceType, Integer resourceTypeId)
Adds a resource type / resource id pair to a candidate collection for population into the ResourceTypesCache.Resource
ResourceDAO. insert(Resource resource, List<ExtractedParameterValue> parameters, ParameterDAO parameterDao)
Inserts the passed Resource DTO and its associated search parameters to the appropriate FHIR resource tables.int
ICodeSystemCache. readOrAddCodeSystem(String codeSystem)
Reads the id associated with the name of the passed Parameter from the code_systems table.int
IParameterNameCache. readOrAddParameterNameId(String parameterName)
Reads the id associated with the name of the passed Parameter from the Parameter_Names table. -
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc.dao.impl
Methods in com.ibm.fhir.persistence.jdbc.dao.impl with type parameters of type FHIRPersistenceException Modifier and Type Method Description protected <XT extends FHIRPersistenceException>
XTFHIRDbDAOImpl. severe(Logger logger, XT fx, String errorMessage, Throwable cause)
Log the exception message here along with the cause stack.protected <XT extends FHIRPersistenceException>
XTFHIRDbDAOImpl. severe(Logger logger, XT fx, Throwable cause)
Convenience function to log the cause of an exception about to be thrown.Methods in com.ibm.fhir.persistence.jdbc.dao.impl that throw FHIRPersistenceException Modifier and Type Method Description int
ParameterDAOImpl. acquireCodeSystemId(String codeSystemName)
Acquire and return the id associated with the passed code-system name.int
ParameterDAOImpl. acquireParameterNameId(String parameterName)
Acquire and return the id associated with the passed parameter name.void
ParameterDAOImpl. addCodeSystemsCacheCandidate(String codeSystemName, Integer codeSystemId)
Adds a code system name / code system id pair to a candidate collection for population into the CodeSystemsCache.void
ParameterDAOImpl. addParameterNamesCacheCandidate(String parameterName, Integer parameterId)
Adds a parameter name / parameter id pair to a candidate collection for population into the ParameterNamesCache.void
ResourceDAOImpl. addResourceTypeCacheCandidate(String resourceType, Integer resourceTypeId)
Adds a resource type/ resource id pair to a candidate collection for population into the ResourceTypesCache.protected int
ParameterVisitorBatchDAO. getCodeSystemId(String codeSystem)
Look up the code systemprotected int
ParameterVisitorBatchDAO. getParameterNameId(String parameterName)
Look up the normalized id for the parameter, adding it to the parameter_names table if it doesn't yet existResource
ResourceDAOImpl. insert(Resource resource, List<ExtractedParameterValue> parameters, ParameterDAO parameterDao)
int
CodeSystemCacheAdapter. readOrAddCodeSystem(String codeSystem)
int
ParameterNameCacheAdapter. readOrAddParameterNameId(String parameterName)
void
ParameterVisitorBatchDAO. visit(CompositeParmVal compositeParameter)
void
ParameterVisitorBatchDAO. visit(DateParmVal param)
void
ParameterVisitorBatchDAO. visit(LocationParmVal param)
void
ParameterVisitorBatchDAO. visit(NumberParmVal param)
void
ParameterVisitorBatchDAO. visit(QuantityParmVal param)
void
ParameterVisitorBatchDAO. visit(StringParmVal param)
void
ParameterVisitorBatchDAO. visit(TokenParmVal param)
-
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc.derby
Methods in com.ibm.fhir.persistence.jdbc.derby that throw FHIRPersistenceException Modifier and Type Method Description Resource
DerbyResourceDAO. insert(Resource resource, List<ExtractedParameterValue> parameters, ParameterDAO parameterDao)
Inserts the passed FHIR Resource and associated search parameters to a Derby or PostgreSql FHIR database. -
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc.dto
Methods in com.ibm.fhir.persistence.jdbc.dto that throw FHIRPersistenceException Modifier and Type Method Description void
CompositeParmVal. accept(ExtractedParameterValueVisitor visitor)
We know our type, so we can call the correct method on the visitorvoid
DateParmVal. accept(ExtractedParameterValueVisitor visitor)
We know our type, so we can call the correct method on the visitorvoid
ExtractedParameterValue. accept(ExtractedParameterValueVisitor visitor)
We know our type, so we can call the correct method on the visitorvoid
LocationParmVal. accept(ExtractedParameterValueVisitor visitor)
We know our type, so we can call the correct method on the visitorvoid
NumberParmVal. accept(ExtractedParameterValueVisitor visitor)
We know our type, so we can call the correct method on the visitorvoid
QuantityParmVal. accept(ExtractedParameterValueVisitor visitor)
We know our type, so we can call the correct method on the visitorvoid
ReferenceParmVal. accept(ExtractedParameterValueVisitor visitor)
We know our type, so we can call the correct method on the visitorvoid
StringParmVal. accept(ExtractedParameterValueVisitor visitor)
We know our type, so we can call the correct method on the visitorvoid
TokenParmVal. accept(ExtractedParameterValueVisitor visitor)
We know our type, so we can call the correct method on the visitorvoid
UriParmVal. accept(ExtractedParameterValueVisitor visitor)
We know our type, so we can call the correct method on the visitorvoid
ExtractedParameterValueVisitor. visit(CompositeParmVal compositeParameter)
Process a composite parameter valuevoid
ExtractedParameterValueVisitor. visit(DateParmVal dateParameter)
Process a date parameter valuevoid
ExtractedParameterValueVisitor. visit(LocationParmVal locationParameter)
Process a location parameter valuevoid
ExtractedParameterValueVisitor. visit(NumberParmVal numberParameter)
Process a number parameter valuevoid
ExtractedParameterValueVisitor. visit(QuantityParmVal quantityParameter)
Process a quantity parameter valuevoid
ExtractedParameterValueVisitor. visit(StringParmVal stringParameter)
Process a string parameter valuevoid
ExtractedParameterValueVisitor. visit(TokenParmVal tokenParameter)
Process a token parameter value -
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc.exception
Subclasses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc.exception Modifier and Type Class Description class
FHIRPersistenceDataAccessException
This exception class represents failures encountered while attempting to access (read, write) data in the FHIR DB.class
FHIRPersistenceDBCleanupException
This exception class represents failures encountered while attempting to close/cleanup JDBC resources.class
FHIRPersistenceDBConnectException
This exception class represents failures encountered while attempting to connect to a JDBC database or datasource.class
FHIRPersistenceFKVException
This exception class is thrown when Foreign Key violations are encountered while attempting to access data in the FHIR DB. -
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc.impl
Methods in com.ibm.fhir.persistence.jdbc.impl that throw FHIRPersistenceException Modifier and Type Method Description protected List<Resource>
FHIRPersistenceJDBCImpl. buildSortedFhirResources(ResourceDAO resourceDao, FHIRPersistenceContext context, Class<? extends Resource> resourceType, List<Long> sortedIdList, List<String> elements)
This method takes the passed list of sorted Resource ids, acquires the Resource corresponding to each id, and returns those Resources in a List, sorted according to the input sorted ids.<T extends Resource>
SingleResourceResult<T>FHIRPersistenceJDBCImpl. create(FHIRPersistenceContext context, T resource)
<T extends Resource>
SingleResourceResult<T>FHIRPersistenceJDBCImpl. delete(FHIRPersistenceContext context, Class<T> resourceType, String logicalId)
OperationOutcome
FHIRPersistenceJDBCImpl. getHealth()
<T extends Resource>
MultiResourceResult<T>FHIRPersistenceJDBCImpl. history(FHIRPersistenceContext context, Class<T> resourceType, String logicalId)
<T extends Resource>
SingleResourceResult<T>FHIRPersistenceJDBCImpl. read(FHIRPersistenceContext context, Class<T> resourceType, String logicalId)
MultiResourceResult<Resource>
FHIRPersistenceJDBCImpl. search(FHIRPersistenceContext context, Class<? extends Resource> resourceType)
<T extends Resource>
SingleResourceResult<T>FHIRPersistenceJDBCImpl. update(FHIRPersistenceContext context, String logicalId, T resource)
<T extends Resource>
SingleResourceResult<T>FHIRPersistenceJDBCImpl. vread(FHIRPersistenceContext context, Class<T> resourceType, String logicalId, String versionId)
-
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc.postgresql
Methods in com.ibm.fhir.persistence.jdbc.postgresql that throw FHIRPersistenceException Modifier and Type Method Description Resource
PostgreSqlResourceDAO. insert(Resource resource, List<ExtractedParameterValue> parameters, ParameterDAO parameterDao)
Inserts the passed FHIR Resource and associated search parameters to a postgresql FHIR database. -
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc.util
Methods in com.ibm.fhir.persistence.jdbc.util that throw FHIRPersistenceException Modifier and Type Method Description protected SqlQueryData
JDBCQueryBuilder. buildLocationQuerySegment(String parmName, List<Bounding> boundingAreas, String paramTableAlias)
protected SqlQueryData
JDBCQueryBuilder. processCompositeParm(Class<?> resourceType, QueryParameter queryParm)
protected SqlQueryData
JDBCQueryBuilder. processNumberParm(Class<?> resourceType, QueryParameter queryParm)
protected SqlQueryData
JDBCQueryBuilder. processStringParm(QueryParameter queryParm)
protected SqlQueryData
JDBCQueryBuilder. processTokenParm(QueryParameter queryParm)
protected SqlQueryData
JDBCQueryBuilder. processUriParm(QueryParameter queryParm)
protected SqlQueryData
JDBCQueryBuilder. processUriParm(QueryParameter queryParm, String tableAlias)
Creates a query segment for a URI type parameter. -
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.jdbc.util.type
Methods in com.ibm.fhir.persistence.jdbc.util.type that throw FHIRPersistenceException Modifier and Type Method Description void
QuantityParmBehaviorUtil. addSystemIfPresent(ParameterDAO parameterDao, StringBuilder whereClauseSegment, String tableAlias, List<Object> bindVariables, String system)
adds the system if present.static void
NumberParmBehaviorUtil. executeBehavior(StringBuilder whereClauseSegment, QueryParameter queryParm, List<Object> bindVariables, Class<?> resourceType, String tableAlias, JDBCQueryBuilder queryBuilder)
-
Uses of FHIRPersistenceException in com.ibm.fhir.persistence.util
Methods in com.ibm.fhir.persistence.util that throw FHIRPersistenceException Modifier and Type Method Description protected abstract T1
AbstractQueryBuilder. buildLocationQuerySegment(String parmName, List<Bounding> boundingAreas, String paramTableAlias)
Builds a query segment for the passed parameter name using the geospatial data contained with the passed BoundingBoxT
QueryBuilder. buildQuery(Class<?> resourceType, FHIRSearchContext searchContext)
Build and return query for the passed resource type and search parameters.static FHIRHistoryContext
FHIRPersistenceUtil. parseHistoryParameters(Map<String,List<String>> queryParameters, boolean lenient)
protected abstract T1
AbstractQueryBuilder. processCompositeParm(Class<?> resourceType, QueryParameter queryParm)
Creates a query segment for a Composite type parameter.protected T1
AbstractQueryBuilder. processLocationPosition(List<QueryParameter> queryParameters, String paramTableAlias)
This method executes special logic for a Token type query that maps to a LocationPosition data type.protected abstract T1
AbstractQueryBuilder. processNumberParm(Class<?> resourceType, QueryParameter queryParm)
Creates a query segment for a Number type parameter.protected abstract T1
AbstractQueryBuilder. processStringParm(QueryParameter queryParm)
Creates a query segment for a String type parameter.protected abstract T1
AbstractQueryBuilder. processTokenParm(QueryParameter queryParm)
Creates a query segment for a Token type parameter.protected abstract T1
AbstractQueryBuilder. processUriParm(QueryParameter queryParm)
Creates a query segment for a URI type parameter. -
Uses of FHIRPersistenceException in com.ibm.fhir.server.resources
Methods in com.ibm.fhir.server.resources that throw FHIRPersistenceException Modifier and Type Method Description protected FHIRPersistence
FHIRResource. getPersistenceImpl()
Retrieves the persistence implementation to use for the current request.protected boolean
FHIRResource. isDeleteSupported()
-