Class GetSequenceNextValueDAO
- java.lang.Object
-
- com.ibm.fhir.database.utils.common.GetSequenceNextValueDAO
-
- All Implemented Interfaces:
IDatabaseSupplier<Long>
public class GetSequenceNextValueDAO extends Object implements IDatabaseSupplier<Long>
DAO to create a free tenant slot (to align with a new partition)
-
-
Constructor Summary
Constructors Constructor Description GetSequenceNextValueDAO(String schemaName, String sequenceName)DAO to get the next value from the named sequence
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longrun(IDatabaseTranslator translator, Connection c)Execute the encapsulated query against the database and stream the result data to the configured target
-
-
-
Method Detail
-
run
public Long run(IDatabaseTranslator translator, Connection c)
Execute the encapsulated query against the database and stream the result data to the configured target- Specified by:
runin interfaceIDatabaseSupplier<Long>- Parameters:
c-translator- to translate any exceptions
-
-