Interface DbAction.WithEntity<T>

All Superinterfaces:
DbAction<T>
All Known Subinterfaces:
DbAction.WithDependingOn<T>, DbAction.WithRoot<T>
All Known Implementing Classes:
DbAction.Insert, DbAction.InsertRoot, DbAction.UpdateRoot
Enclosing interface:
DbAction<T>

public static interface DbAction.WithEntity<T> extends DbAction<T>
A DbAction that stores the information of a single entity in the database.
Author:
Jens Schauder, Chirag Tailor
  • Method Details

    • getEntity

      T getEntity()
      Returns:
      the entity to persist. Guaranteed to be not null.
    • getEntityType

      default Class<T> getEntityType()
      Specified by:
      getEntityType in interface DbAction<T>
    • getIdValueSource

      IdValueSource getIdValueSource()
      Returns:
      the IdValueSource for the entity to persist. Guaranteed to be not null.