Interface BulkLoadingDao.LoadingContext<T extends net.solarnetwork.dao.Entity<PK>,PK extends Serializable>

Type Parameters:
T - the entity type
PK - the primary key type
All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
BulkLoadingDaoSupport.BulkLoadingContext
Enclosing interface:
BulkLoadingDao<T extends net.solarnetwork.dao.Entity<PK>,PK extends Serializable>

public static interface BulkLoadingDao.LoadingContext<T extends net.solarnetwork.dao.Entity<PK>,PK extends Serializable> extends AutoCloseable
API for a bulk loading operational context.

This is the main API used to perform the bulk loading operation.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close any temporary resources.
    void
    Commit the current transaction.
    void
    Create a checkpoint that can be rolled back to.
    long
    Get the count of entities committed thus far using this context.
    Get the entity that was last passed to the load(Entity) method.
    long
    Get the count of entities loaded thus far using this context.
    Get the loading options used to create the context.
    void
    load(T entity)
    Load an entity.
    void
    Discard the entities loaded within the current transaction.
  • Method Details