TDataBase class
The database is the object that manages store objects.
- Inheritance
-
- Object
- TDataBaseCore
- TDataBase
Constructors
- TDataBase()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized ↔ bool
-
Indicates if the database is initialized.
getter/setter pairinherited
-
registers
→ Map<
String, Set< Object> > -
The registers.
A register is an object that is connected to a store.
When the last register is disconnected, the store is disconnected.
This is used to avoid unnecessary connections.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stores
→ Map<
String, TStore> -
The stores.
finalinherited
Methods
-
clearActiveStores(
) → Future< void> -
inherited
-
connect(
String storeName, Object register) → Future< bool> -
Connect
inherited
-
disconnect(
String storeName, Object register) → Future< bool> -
Disconnect
inherited
-
disconnectAll(
String storeName) → Future< bool> -
inherited
-
getStore(
String storeName) → Future< TStore> -
Returns the store.
inherited
-
init(
) → Future< bool> -
Initializes the database.
override
-
isRegisterConnected(
String storeName, Object register) → bool -
inherited
-
isStoreConnected(
String storeName) → bool -
inherited
-
listActiveStores(
) → Future< List< String> > -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
storeExists(
String storeName) → Future< bool> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateActiveStoresRegistry(
String storeName) → Future< void> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited