Class ProviderInMemory<T>
java.lang.Object
net.tangly.core.providers.Provider<T>
net.tangly.core.providers.ProviderInMemory<T>
- Type Parameters:
T- type of the instances handled in the provider
Provider where all instances are in memory. No persistence is provided.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes the data associated with the entity.voidDeletes all the entities managed by the provider.items()Returns a list containing all known instances of the entity type.static <T> Provider<T> of()static <T> Provider<T> voidUpdates the data associated with the entity.
-
Constructor Details
-
ProviderInMemory
public ProviderInMemory()
-
-
Method Details
-
of
-
of
-
items
-
update
Description copied from class:ProviderUpdates the data associated with the entity. If the entity is new, the update is handled as a create operation. The update is transitive and all referenced entities are also updated. The entity given as a parameter becomes the instance managed through the provider. -
delete
-
deleteAll
-