public class DBLookupTableService extends Object
Constructor and Description |
---|
DBLookupTableService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mapper) |
Modifier and Type | Method and Description |
---|---|
void |
delete(String idOrName) |
Collection<LookupTableDto> |
findAll() |
Collection<LookupTableDto> |
findByCacheIds(Collection<String> cacheIds) |
Collection<LookupTableDto> |
findByDataAdapterIds(Collection<String> dataAdapterIds) |
PaginatedList<LookupTableDto> |
findPaginated(org.mongojack.DBQuery.Query query,
org.mongojack.DBSort.SortBuilder sort,
int page,
int perPage) |
void |
forEach(Consumer<? super LookupTableDto> action) |
Optional<LookupTableDto> |
get(String idOrName) |
LookupTableDto |
save(LookupTableDto table) |
@Inject public DBLookupTableService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper)
public Optional<LookupTableDto> get(String idOrName)
public LookupTableDto save(LookupTableDto table)
public Collection<LookupTableDto> findAll()
public PaginatedList<LookupTableDto> findPaginated(org.mongojack.DBQuery.Query query, org.mongojack.DBSort.SortBuilder sort, int page, int perPage)
public Collection<LookupTableDto> findByCacheIds(Collection<String> cacheIds)
public Collection<LookupTableDto> findByDataAdapterIds(Collection<String> dataAdapterIds)
public void delete(String idOrName)
public void forEach(Consumer<? super LookupTableDto> action)
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.