getModelsByCollectionName<T extends AtCollectionModel> static method
Returns list of AtCollectionModels that are created for the collectionName
passed
Returns an empty list when there are no matches
An instance of AtJsonCollectionModel
is returned If a specific factory class for a given collection name is not registered
Factory class for a collectionName
can be registered using method AtCollectionModel.registerFactories(factories)
Implementation
static Future<List<T>> getModelsByCollectionName<T extends AtCollectionModel>(
String collectionName) async {
_logger.finer('get models for collectionName:$collectionName');
AtCollectionModelFactoryManager.getInstance()
.register(_jsonCollectionModelFactory);
return _atCollectionQueryOperations
.getModelsByCollectionName(collectionName);
}