BaseEntityStore<T extends BaseEntityModel> class
abstract
Classe base para os stores que utilizam o CRUD completo.
- Inheritance
-
- Object
- BaseStore<
T> - BaseListStore<
T> - BaseSearchStore<
T> - BaseEntityStore
Constructors
-
BaseEntityStore(StoreConfig<
T> config)
Properties
-
config
↔ StoreConfig<
T> -
Configuração.
getter/setter pairinherited
- forceCsvGet ↔ bool
-
getter/setter pairinherited
- forceCsvPost ↔ bool
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAbsoluteUrl ↔ bool
-
Indica se a URL é absoluta (servidor externo).
getter/setter pairinherited
- isStatic ↔ bool
-
Indica se é estático (utiliza dados locais).
getter/setter pairinherited
- requestService ↔ RequestService
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
T data, {Object? masterId}) → Future< T?> - Cria um novo registro.
-
edit(
T data, List< String> changedProperties, {Object? masterId}) → Future<T?> - Atualiza os dados de um registro.
-
get(
Object id, {Object? masterId}) → Future< T?> - Obtém um registro.
-
getByIds(
List< Object> ids) → Future<List< T> > -
Retorna uma lista de itens com base nos
idsinformados.inherited -
getCsv(
SearchRequestModel? request, Map< String, Object> ? params) → Future<Object> -
Obtém o arquivo CSV.
inherited
-
getRequestModel(
String action, {Object? data, Object? masterId}) → RequestModel -
Obtém um model da requisição usando o endereço da action
action, os dados a serem enviados (opcional)datae omasterIdID do registro pai, se houver (opcional).inherited -
getUrl(
String action, Object? masterId) → String -
Obtém uma URL com o controle base usando a action
actione omasterIdID do registro pai, se houver (opcional).inherited -
list(
SearchRequestModel? request) → Future< SearchResponseModel< T> > -
Retorna uma lista de itens filtrados pelo
request.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
Object id, {Object? masterId}) → Future< bool> - Exclui o registro informado.
-
search(
SearchRequestModel? request, Object? masterId) → Future< SearchResponseModel< T> ?> -
Pesquisa nos registros pelo termo informado.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited