org.melati.poem.dbms
Class FirstSQL

Package class diagram package FirstSQL
java.lang.Object
  extended by org.melati.poem.dbms.AnsiStandard
      extended by org.melati.poem.dbms.FirstSQL
All Implemented Interfaces:
Dbms

public class FirstSQL
extends AnsiStandard

A Driver for FirstSQL ( NOT WORKING YET!!!).


Field Summary
static PrintStream logStream
          Where to log to.
 
Fields inherited from class org.melati.poem.dbms.AnsiStandard
schema
 
Constructor Summary
FirstSQL()
          Constructor.
 
Method Summary
 Connection getConnection(String url, String user, String password)
          It does the same error, even if we don't override it so using AnsiStandard.getConnection(...).
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logStream

public static PrintStream logStream
Where to log to.

Constructor Detail

FirstSQL

public FirstSQL()
Constructor.

Method Detail

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 URL
user - the user to connect as, may be null
password - 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.