Liaison fixups.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@327 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-09-20 20:41:10 +00:00
parent c5cda2f332
commit baf5cade44
2 changed files with 8 additions and 3 deletions
@@ -1,5 +1,5 @@
// //
// $Id: LiaisonRegistry.java,v 1.3 2001/09/20 02:17:03 mdb Exp $ // $Id: LiaisonRegistry.java,v 1.4 2001/09/20 20:41:10 mdb Exp $
// //
// samskivert library - useful routines for java programs // samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne // Copyright (C) 2001 Michael Bayne
@@ -85,4 +85,9 @@ public class LiaisonRegistry
protected static ArrayList _liaisons = new ArrayList(); protected static ArrayList _liaisons = new ArrayList();
protected static HashMap _mappings = new HashMap(); protected static HashMap _mappings = new HashMap();
// register our liaison classes
static {
registerLiaisonClass(MySQLLiaison.class);
}
} }
@@ -1,5 +1,5 @@
// //
// $Id: MySQLLiaison.java,v 1.2 2001/09/20 02:09:09 mdb Exp $ // $Id: MySQLLiaison.java,v 1.3 2001/09/20 20:41:10 mdb Exp $
// //
// samskivert library - useful routines for java programs // samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne // Copyright (C) 2001 Michael Bayne
@@ -25,7 +25,7 @@ import java.sql.*;
/** /**
* A database liaison for the MySQL database. * A database liaison for the MySQL database.
*/ */
public class MySQLLiaison public class MySQLLiaison implements DatabaseLiaison
{ {
// documentation inherited // documentation inherited
public boolean matchesURL (String url) public boolean matchesURL (String url)