org.jtheque.collections.tools.services.impl.database
Class MysqlDatabase

java.lang.Object
  extended by org.jtheque.collections.tools.services.impl.database.AbstractDatabase
      extended by org.jtheque.collections.tools.services.impl.database.MysqlDatabase
All Implemented Interfaces:
Database

public final class MysqlDatabase
extends AbstractDatabase

A MySQL Database.

Author:
Baptiste Wicht

Constructor Summary
MysqlDatabase()
           
 
Method Summary
 void closeConnection(Connection connection)
          Close the connection to the database.
 String getDriver()
          Return the driver for the connection.
 String getPrefixUrl()
          Return the prefix of the URL.
 
Methods inherited from class org.jtheque.collections.tools.services.impl.database.AbstractDatabase
getUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MysqlDatabase

public MysqlDatabase()
Method Detail

closeConnection

public void closeConnection(Connection connection)
Description copied from interface: Database
Close the connection to the database.

Parameters:
connection - The connection to the database.

getDriver

public String getDriver()
Description copied from interface: Database
Return the driver for the connection.

Returns:
The string representation of the JDBC driver class.

getPrefixUrl

public String getPrefixUrl()
Description copied from class: AbstractDatabase
Return the prefix of the URL.

Specified by:
getPrefixUrl in class AbstractDatabase
Returns:
The start of the url.


Copyright © 2010 JTheque. All Rights Reserved.