com.hardcode.gdbms.engine.data.driver
Interface DBDriver
- All Superinterfaces:
- com.hardcode.driverManager.Driver, GDBMSDriver, ReadAccess, TypeConverter, ValueWriter
- All Known Subinterfaces:
- AlphanumericDBDriver, SpatialDBDriver
- All Known Implementing Classes:
- FooDriver, HSQLDBDriver, HSQLDBTransactionalDriver, MySQLDriver, ODBCDriver, PostgreSQLDriver
public interface DBDriver
- extends ReadAccess, GDBMSDriver, ValueWriter
Interfaz a implementar por los drivers que proporcionen interfaz JDBC
- Author:
- Fernando González Cortés
Method Summary |
void |
close()
Free any resource reserved in the open method |
void |
execute(java.sql.Connection con,
java.lang.String sql)
Executes an instruction against the server |
java.sql.Connection |
getConnection(java.lang.String host,
int port,
java.lang.String dbName,
java.lang.String user,
java.lang.String password)
Método mediante el cual el driver surte de conexiones a la base de
datos. |
java.lang.String |
getTypeInAddColumnStatement(java.lang.String driverType,
java.util.HashMap<java.lang.String,java.lang.String> params)
Gets a statement to create the specified field on the given table |
Methods inherited from interface com.hardcode.driverManager.Driver |
getName |
Methods inherited from interface com.hardcode.gdbms.engine.values.ValueWriter |
getNullStatementString, getStatementString, getStatementString, getStatementString, getStatementString, getStatementString, getStatementString, getStatementString, getStatementString, getStatementString, getStatementString |
getConnection
java.sql.Connection getConnection(java.lang.String host,
int port,
java.lang.String dbName,
java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
- Método mediante el cual el driver surte de conexiones a la base de
datos.
- Parameters:
host
- nombre o dirección IP del host al que se quiere conectarport
- puerto al que se quiere conectar. -1 si es el puerto por
defectodbName
- Nombre de la base de datos a la que se quiere conectaruser
- Usuario de la conexiónpassword
- Password del usuario
- Returns:
- Connection
- Throws:
java.sql.SQLException
- Si se produce algún error
execute
void execute(java.sql.Connection con,
java.lang.String sql)
throws java.sql.SQLException
- Executes an instruction against the server
- Parameters:
con
- Connection used to execute the instructionsql
- Instruction to executeprops
- Properties of the overlaying DataSource layer
- Throws:
java.sql.SQLException
- If the execution fails
close
void close()
throws DriverException
- Free any resource reserved in the open method
- Throws:
java.sql.SQLException
- If the free fails
DriverException
getTypeInAddColumnStatement
java.lang.String getTypeInAddColumnStatement(java.lang.String driverType,
java.util.HashMap<java.lang.String,java.lang.String> params)
- Gets a statement to create the specified field on the given table
- Parameters:
driverType
- params
-
- Returns:
Copyright © 2005-2006 . All Rights Reserved.