Class GetSequenceNextValueDAO
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.common.GetSequenceNextValueDAO
-
- All Implemented Interfaces:
IDatabaseSupplier<java.lang.Long>
public class GetSequenceNextValueDAO extends java.lang.Object implements IDatabaseSupplier<java.lang.Long>
DAO to create a free tenant slot (to align with a new partition)
-
-
Constructor Summary
Constructors Constructor Description GetSequenceNextValueDAO(java.lang.String schemaName, java.lang.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 java.lang.Long
run(IDatabaseTranslator translator, java.sql.Connection c)
Execute the encapsulated query against the database and stream the result data to the configured target
-
-
-
Method Detail
-
run
public java.lang.Long run(IDatabaseTranslator translator, java.sql.Connection c)
Execute the encapsulated query against the database and stream the result data to the configured target- Specified by:
run
in interfaceIDatabaseSupplier<java.lang.Long>
- Parameters:
c
-translator
- to translate any exceptions
-
-