LogRepository class

Constructors

LogRepository()

Properties

bean → PrimaryKeyDataBean<LogEntry, int>
finalinherited
configPath → ConfigPath?
finalinherited
environment → Environment
Fetch the environment configuration from ConfigService.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

any({Filter filter = Filter.empty}) Future<bool>
Checks if there are any entries that match the filter.
inherited
config<T>(String path) → T
Fetches a configuration value from ConfigService.
inherited
configObject<T extends TransferObjectBase>(String path, TransferBean<T> bean) → T
Fetches a configuration value from ConfigService and parse it into the TransferObject.
inherited
count({Filter filter = Filter.empty}) Future<int>
Returns the count of all entries matching the filter.
inherited
create(LogEntry object) Future<int>
inherited
createInstanceIfNotExists(Instance instance) Future<void>
delete(LogEntry object) Future<void>
inherited
deleteAll({Filter filter = Filter.empty}) Future<void>
inherited
deleteById(int id) Future<void>
inherited
exists(int id) Future<bool>
Checks whether or not the id exists.
inherited
findById(int id) Future<LogEntry?>
Returns the object with primary key id or null if id does not exist.
inherited
first({Filter filter = Filter.empty, List<QuerySelect> distinct = const <QuerySelect>[], Sort sort = Sort.empty, int offset = 0}) Future<LogEntry?>
Returns the first entry of the query.
inherited
getAll({Filter filter = Filter.empty, Sort sort = Sort.empty, int offset = 0, int limit = -1}) Future<List<LogEntry>>
Returns all entries that match the filter.
inherited
getInstances({String? serviceName}) Future<List<Instance>>
getServiceNames() Future<List<String>>
initialize() Future<void>
inherited
initializeAdapter() Future<DatabaseAdapter<DatabaseConnection>>
mutate(int id, FutureOr<LogEntry> mutator(LogEntry)) Future<LogEntry>
Query, modify and update an entry in a single transaction.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shutdown() Future<void>
inherited
toString() String
A string representation of this object.
inherited
transaction<T>(Future<T> delegate(DatabaseContext context)) Future<T>
Executes delegate inside of a database transaction.
inherited
update(LogEntry object) Future<void>
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited