SchemeProvider class abstract

Base class for TableScheme providers.

Implementers

Constructors

SchemeProvider()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disposeTableSchemeCache(String table) TableScheme?
Disposes a TableScheme for table. Forces refresh of previous scheme.
getEntityID(Object entity, {String? entityName, String? tableName, Type? entityType, EntityHandler? entityHandler}) Object?
Returns the entity ID for entityName, tableName or entityType.
getFieldType(String field, {String? entityName, String? tableName}) FutureOr<TypeInfo?>
Returns the type for the field at tableName or by entityName.
getTableFieldsTypes(String table) FutureOr<Map<String, Type>?>
Returns a TableScheme.fieldsTypes for table.
getTableFieldsTypesImpl(String table) FutureOr<Map<String, Type>?>
getTableForEntityRepository(EntityRepository<Object> entityRepository) String
Returns the table name for entityRepository.
getTableForType(TypeInfo type) FutureOr<String?>
Returns the table name for type.
getTableScheme(String table, {TableRelationshipReference? relationship, Object? contextID}) FutureOr<TableScheme?>
Returns a TableScheme for table. Calls getTableSchemeImpl handling asynchronous calls.
getTableSchemeForEntityRepository(EntityRepository<Object> entityRepository, {Object? contextID}) FutureOr<TableScheme?>
Returns a TableScheme for entityRepository.
getTableSchemeForType(TypeInfo type) FutureOr<TableScheme?>
Returns a TableScheme for type.
getTableSchemeIfLoaded(String table) TableScheme?
getTableSchemeImpl(String table, TableRelationshipReference? relationship, {Object? contextID}) FutureOr<TableScheme?>
Implementation that returns a TableScheme for table.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyTableFieldTypes(String table, Map<String, Type> fieldsTypes) Map<String, Type>
selectIDFieldName(String table, List<String> primaryKeyCandidates) String
Selects the ID field name from primaryKeyCandidates candidates:
toString() String
A string representation of this object.
inherited

Operators

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