SessionsMongoDbPersistence class

Implemented types

Properties

client ↔ Db?
The MongoDB connection object.
getter/setter pairinherited
collection ↔ DbCollection?
The MongoDb database object. The MongoDb collection object.
getter/setter pairinherited
collectionName String?
The MongoDB colleciton object.
getter/setter pairinherited
connection ↔ MongoDbConnection?
The MongoDB connection component.
getter/setter pairinherited
databaseName String?
The MongoDB database name.
getter/setter pairinherited
dependencyResolver ↔ DependencyResolver
The dependency resolver.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
logger ↔ CompositeLogger
The logger.
getter/setter pairinherited
maxPageSize int
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear(String? correlationId) Future
Clears component state.
inherited
close(String? correlationId) Future
Closes component and frees used resources.
inherited
closeExpired(String? correlationId, DateTime request_time) Future
override
composeFilter(FilterParams? filter) → dynamic
configure(ConfigParams config) → void
Configures component by passing configuration parameters.
inherited
convertFromPublic(dynamic item, {bool createUid = false}) Map<String, dynamic>?
Convert object value from public to internal format.
inherited
convertFromPublicPartial(Map<String, dynamic>? item) Map<String, dynamic>?
Converts the given object from the public partial format.
inherited
convertToPublic(Map<String, dynamic>? item) → dynamic
Converts object value from internal to public format.
inherited
create(String? correlationId, SessionV1? item) Future<SessionV1?>
Creates a data item.
deleteByFilterEx(String? correlationId, Map<String, dynamic> filter) Future
Deletes data items that match to a given filter.
inherited
deleteById(String? correlationId, String? id) Future<SessionV1?>
Deleted a data item by it's unique id.
inherited
deleteByIds(String? correlationId, List<String> ids) Future
Deletes multiple data items by their unique ids.
inherited
ensureIndex(dynamic keys, {String key = '', bool unique = false, bool sparse = false, bool background = false, bool dropDups = false, Map<String, dynamic>? partialFilterExpression, String name = ''}) → void
Adds index definition to create it on opening
inherited
getCountByFilterEx(String? correlationId, Map<String, dynamic>? filter) Future<int>
Gets a count of data items retrieved by a given filter.
inherited
getListByFilterEx(String? correlationId, Map<String, dynamic>? filter, Map<String, dynamic>? sort) Future<List<SessionV1>>
Gets a list of data items retrieved by a given filter and sorted according to sort parameters.
inherited
getListByIds(String? correlationId, List<String> ids) Future<List<SessionV1>>
Gets a list of data items retrieved by given unique ids.
inherited
getOneById(String? correlationId, String? id) Future<SessionV1?>
Gets a data item by its unique id.
inherited
getOneRandomEx(String? correlationId, Map<String, dynamic> filter) Future<SessionV1?>
Gets a random item from items that match to a given filter.
inherited
getPageByFilter(String? correlationId, FilterParams filter, PagingParams paging) Future<DataPage<SessionV1>>
override
getPageByFilterEx(String? correlationId, Map<String, dynamic>? filter, PagingParams? paging, Map<String, dynamic>? sort) Future<DataPage<SessionV1>>
Gets a page of data items retrieved by a given filter and sorted according to sort parameters.
inherited
isOpen() bool
Checks if the component is opened.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(String? correlationId) Future
Opens the component.
inherited
set(String? correlationId, SessionV1? item) Future<SessionV1?>
Sets a data item. If the data item exists it updates it, otherwise it create a new data item.
inherited
setReferences(IReferences references) → void
Sets references to dependent components.
inherited
toString() String
A string representation of this object.
inherited
unsetReferences() → void
Unsets (clears) previously set references to dependent components.
inherited
update(String? correlationId, SessionV1? item) Future<SessionV1?>
Updates a data item.
updatePartially(String? correlationId, String? id, AnyValueMap? data) Future<SessionV1?>
Updates only few selected fields in a data item.
inherited

Operators

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