org.melati.poem.dbms
Class FirstSQL
java.lang.Object
org.melati.poem.dbms.AnsiStandard
org.melati.poem.dbms.FirstSQL
- All Implemented Interfaces:
- Dbms
public class FirstSQL
- extends AnsiStandard
A Driver for FirstSQL ( NOT WORKING YET!!!).
Constructor Summary |
FirstSQL()
Constructor. |
Methods inherited from class org.melati.poem.dbms.AnsiStandard |
alterColumnNotNullableSQL, booleanTrueExpression, canBeIndexed, canDropColumns, canRepresent, canStoreBlobs, caseInsensitiveRegExpSQL, createTableOptionsSql, createTableSql, createTableTypeQualifierSql, defaultPoemTypeOfColumnMetaData, exceptionForUpdate, exceptionForUpdate, getBinarySqlDefinition, getDriverClassName, getDriverLoaded, getFixedPtSqlDefinition, getForeignKeyDefinition, getIndexLength, getJdbcMetadataName, getLongSqlDefinition, getPrimaryKeyDefinition, getQuotedName, getQuotedValue, getSchema, getSqlDefaultValue, getSqlDefinition, getStringSqlDefinition, givesCapabilitySQL, loadDriver, melatiName, preparedStatementPlaceholder, selectLimit, setDriverClassName, setDriverLoaded, shutdown, sqlBooleanValueOfRaw, tableInitialisationSql, toString, unloadDriver, unreservedName |
logStream
public static PrintStream logStream
- Where to log to.
FirstSQL
public FirstSQL()
- Constructor.
getConnection
public Connection getConnection(String url,
String user,
String password)
throws ConnectionFailurePoemException
- It does the same error, even if we don't override it
so using AnsiStandard.getConnection(...).
The default windows installation of MySQL has autocommit set true,
which throws an SQLException when one issues a commit.
Return a connection.
- Specified by:
getConnection
in interface Dbms
- Overrides:
getConnection
in class AnsiStandard
- Parameters:
url
- the jdbc URLuser
- the user to connect as, may be nullpassword
- the password for user, may be null
- Returns:
- the connection
- Throws:
ConnectionFailurePoemException
- is we cannot connect- See Also:
AnsiStandard.getConnection(java.lang.String, java.lang.String, java.lang.String)
Copyright © 2000-2010 PanEris. All Rights Reserved.