All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cedarsoft.gdao.GenericDaoManager Maven / Gradle / Ivy

The newest version!
package com.cedarsoft.gdao;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 */
public interface GenericDaoManager {
  @NotNull
   GenericDao getDao( @NotNull Class type );

  /**
   * Creates a dao for the given lock provider
   *
   * @param type         the tpye
   * @param lockProvider the lock provider
   * @param           the type
   * @return the dao
   *
   * @throws UnsupportedOperationException if a lock provider is not supported
   */
  @NotNull
   GenericDao getDao( @NotNull Class type, @Nullable LockProvider lockProvider ) throws UnsupportedOperationException;

  /**
   * Shuts the dao manager down
   */
  void shutdown();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy