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

de.xore.util.persistence.DatabaseConnector Maven / Gradle / Ivy

The newest version!
package de.xore.util.persistence;

import org.jetbrains.annotations.NotNull;

import java.io.Serializable;

/**
 * A
 * 

*

* Date: 19.05.2005
* Time: 00:01:00
* * @author Johannes Schneider - * Xore Systems *

*

* T: The session, e.g. org.hibernate.Session */ public interface DatabaseConnector { void addAnnotadedClass( @NotNull Class annClass ); void recreateDb() throws DatabaseException; void beginTransaction() throws DatabaseException; void closeSession() throws DatabaseException; void commit() throws DatabaseException; void delete( @NotNull Object object ) throws DatabaseException; @NotNull T load( @NotNull Class aClass, Serializable id ) throws DatabaseException; void rollback() throws DatabaseException; void save( @NotNull Object object ) throws DatabaseException; @NotNull T getSession() throws DatabaseException; void initSession() throws DatabaseException; void refresh( @NotNull Object object ) throws DatabaseException; void update( @NotNull Object object ) throws DatabaseException; void saveOrUpdate( @NotNull Object object ) throws DatabaseException; boolean isSessionActive(); void dispose(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy