package daruma.sql;

import daruma.sql.DatabaseConnectionFactory;
import daruma.sql.PostgreSQLDatabaseConnection;

public class PostgreSQLDatabaseConnectionFactory extends DatabaseConnectionFactory
{
	public	PostgreSQLDatabaseConnectionFactory()
					 throws DatabaseConnectionException
	{
		super.loadClass();
	}


	// implementation of DatabaseConnectionFactory.getDriverClass()
	@Override
	public	String	getDriverClass()
	{
		return( "org.postgresql.Driver" );
	}


	// implementation of DatabaseConnectionFactory.create()
	@Override
	public	DatabaseConnection	create()
	{
		return( new PostgreSQLDatabaseConnection() );
	}
}
