
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();
}