OdooEnvironment class
Constructors
- OdooEnvironment(OdooClient orpc, String dbName, OdooKv cache, NetConnState netConnectivity)
Properties
- cache ↔ OdooKv
-
getter/setter pair
- callsLock ↔ ReadWriteMutex
-
latefinal
- dbName ↔ String
-
Database name to connect to.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAuthenticated → bool
-
no setter
- logger ↔ Logger
-
Only debug messages
getter/setter pair
-
models
→ Map<
String, OdooRepository< OdooRecord> > -
final
- netConnectivity ↔ NetConnState
-
Tracks current network state: online or offline
getter/setter pair
- orpc ↔ OdooClient
-
Odoo RPC client
getter/setter pair
-
pendingCalls
→ Future<
List< OdooRpcCall> > -
Returns list of calls that has to be done when online
no setter
- pendingCallsKey → String
-
Unique key per odoo instance
no setter
- pendingCallsPrefix → String
-
Pending Calls keys for all Odoo instances start with
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverUuid → String
-
Unique identifier of remote Odoo instance
no setter
Methods
-
add<
T extends OdooRepository< (OdooRecord> >T repo) → T - Adds instance of Odoo Repository to registry
-
executeCall(
OdooRpcCall call) → Future< void> - Executes rpc call
-
loginStateChanged(
OdooLoginEvent event) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
of<
T extends OdooRepository< (OdooRecord> >) → T - Returns Odoo Repository of given type. Example: of<UserRepository>()
-
onNetworkConnChanged(
netConnState netState) → void - Called when going online/offline
-
queueCall(
OdooRpcCall call, {bool awaited = false}) → Future< void> -
Puts
rpcCall
to calls queue that will be processed when online -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited