Search in sources :

Example 1 with DataStore

use of io.vertigo.dynamo.store.datastore.DataStore in project vertigo by KleeGroup.

the class DtObjectComparator method createMasterDataComparator.

/**
 * Fournit le comparateur à utiliser pour trier une colonne référenéant une MasterDataList.
 * @return Comparator à utiliser pour trier la colonne.
 */
private static Comparator<Object> createMasterDataComparator(final boolean sortDesc, final StoreManager storeManager, final DtListURIForMasterData dtcURIForMasterData) {
    Assertion.checkNotNull(storeManager);
    Assertion.checkNotNull(dtcURIForMasterData);
    // -----
    final DataStore dataStore = storeManager.getDataStore();
    final DtField mdFieldSort = dtcURIForMasterData.getDtDefinition().getSortField().get();
    return new MasterDataComparator(dtcURIForMasterData, sortDesc, dataStore, mdFieldSort);
}
Also used : DataStore(io.vertigo.dynamo.store.datastore.DataStore) DtField(io.vertigo.dynamo.domain.metamodel.DtField)

Aggregations

DtField (io.vertigo.dynamo.domain.metamodel.DtField)1 DataStore (io.vertigo.dynamo.store.datastore.DataStore)1