Access class abstract

An access channel, aka., a connection, to a database, such as Couchbase and MySQL.

For ACID databases, an access channel is usually a transaction.

How to instantiate an instance depends on the plugin you use.

Implementers

Constructors

Access()

Properties

agent AccessAgent
The interface for accessing the storage (aka., database). *
no setter
hashCode int
The hash code for this object.
no setterinherited
reader AccessReader
The access reader for converting data from what the database returns.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writer AccessWriter
The access writer for converting data into what the database accepts.
no setter

Methods

cache<T extends Entity>(T entity) → T
Caches the entity. It returns entity directly.
fetch<T extends Entity>(String? otype, String? oid) → T?
Returns the entity of the given OID, if it is stored in the cache.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uncache(String? otype, String? oid) Entity?
Removes the caching of the entity of the given otype and oid.

Operators

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