Procedure class abstract

Base class for procedures with dbCommands. See ProcedureDart, ProcedureJava and ProcedureApolloVM,

Inheritance
Implementers

Constructors

Procedure.base({required String language, String? className, required String name, required String code, List? positionalParameters, Map<String, dynamic>? namedParameters, Map<String, dynamic>? properties, Iterable<DBCommand>? dbCommands, CommandLogInfo? logInfo, CommandLogError? logError})
Procedure.fromJson(Map<String, dynamic> json)
factory

Properties

className → String?
The entrypoint class name.
final
code → String
The procedure code.
final
dbCommands → Set<DBCommand>
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
language → String
The language of the procedure code.
final
logError ↔ CommandLogError?
Logs an ERROR message.
getter/setter pairinherited
logInfo ↔ CommandLogInfo?
Logs an INFO message.
getter/setter pairinherited
name → String
The entrypoint function/method name.
final
namedParameters → Map<String, dynamic>?
The named parameters to be called when execute is invoked.
final
positionalParameters → List?
The positional parameters to be called when execute is invoked.
final
printFunction ↔ CommandLogInfo?
getter/setter pair
properties → Map<String, dynamic>?
The properties to use when executing. It's also passed to DBCommand or SQL when executing one of them.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call<R>({List? positionalParameters, Map<String, dynamic>? namedParameters}) → FutureOr<R>
ensureLoaded() → FutureOr<bool>
execute<R>() → FutureOr<R>
executeDBCommandByID(String id, {Map<String, dynamic>? properties}) → FutureOr<bool>
inherited
executeSQLByID(String sqlID, {Map<String, dynamic>? properties}) → FutureOr<bool>
inherited
executeSQLsByIDs(List<String> sqlIDs, {Map<String, dynamic>? properties}) → Future<bool>
inherited
getDBCommandByID(String id) → DBCommand?
Returns the DBCommand with id from dbCommands.
inherited
getDBCommandWithSQL(String sqlID) → DBCommand?
Returns the DBCommand with an SQL with sqlID from dbCommands.
inherited
getProperty(String key) → dynamic
getSQLByID(String sqlID) → SQL?
Returns the SQL with sqlID from dbCommands.
inherited
getSQLResult(String sqlID) → Map<String, dynamic>?
inherited
getSQLResultColumn(String sqlID, String column) → dynamic
inherited
getSQLResults(String sqlID) → List<Map<String, dynamic>>?
inherited
getSQLResultsColumn(String sqlID, String column) → List?
inherited
load() → FutureOr<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

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