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

org.fuchss.objectcasket.sqlconnector.SqlPort Maven / Gradle / Ivy

Go to download

Object Casket is a simple O/R mapper that can be used together with the Java Persistence API (JPA). The aim is to provide a simple solution for small projects to store multi-related entities in a simple manner.

There is a newer version: 0.20.17
Show newest version
package org.fuchss.objectcasket.sqlconnector;

import org.fuchss.objectcasket.sqlconnector.port.SqlDatabase;
import org.fuchss.objectcasket.sqlconnector.port.SqlDatabaseFactory;
import org.fuchss.objectcasket.sqlconnector.port.SqlObject;
import org.fuchss.objectcasket.sqlconnector.port.SqlObjectFactory;

/**
 * The access point to the databases in use. Through the static
 * {@link SqlPort#SQL_PORT} object one obtains two factories for accessing these
 * {@link SqlDatabase databases}. One {@link SqlDatabaseFactory factory} for the
 * databases themselves and one {@link SqlObjectFactory factory} for the
 * {@link SqlObject SqlObjects} that can be stored in cells of tables.
 */

public interface SqlPort {
	/**
	 * The facade to access the SQL connector.
	 */
	SqlPort SQL_PORT = new SqlConnectorImpl();

	/**
	 * This operation returns the {@link SqlObjectFactory} to build objects that can
	 * be stored in cells of tables.
	 *
	 * @return the {@link SqlObjectFactory}
	 */
	SqlObjectFactory sqlObjectFactory();

	/**
	 * This operation returns the {@link SqlDatabaseFactory} to build an alter
	 * databases.
	 *
	 * @return the {@link SqlDatabaseFactory}
	 */
	SqlDatabaseFactory sqlDatabaseFactory();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy