Class GetLatestVersionDAO

  • All Implemented Interfaces:
    IDatabaseSupplier<Map<String,​Integer>>

    public class GetLatestVersionDAO
    extends Object
    implements IDatabaseSupplier<Map<String,​Integer>>
    Get the latest version by object type and name. This is important, because we deploy the schema in parallel, and so certain objects might end up with different versions at different times (in case of failures)
    The Map<String,Integer&rt; returned from run(IDatabaseTranslator, Connection) uses a compound string of type:name for the key e.g. "Table:PATIENT_RESOURCES".