org.jafer.databeans
Class MySQLDatabean

java.lang.Object
  |
  +--org.jafer.interfaces.Databean
        |
        +--org.jafer.databeans.JDBC
              |
              +--org.jafer.databeans.MySQLDatabean
All Implemented Interfaces:
Present, Search, java.io.Serializable, Z3950Connection

public class MySQLDatabean
extends JDBC

See Also:
Serialized Form

Field Summary
private  com.mysql.jdbc.jdbc2.optional.MysqlDataSource dataSource
           
 
Fields inherited from class org.jafer.databeans.JDBC
CONFIG_FILE, connection, fetchSize, logger, nResults, password, query, QUERY_XSLT, resultSet, username
 
Constructor Summary
MySQLDatabean()
          uses settings from superclass:
 
Method Summary
protected  void configureDataSource()
           
protected  java.sql.Connection getConnection()
          Gets a conection from the DataSource in use.
protected  java.sql.Statement getStatement()
          Gets a new Statement, which can be modified in subclasses.
 int submitQuery(org.w3c.dom.Node query)
          Send query in XML form
 
Methods inherited from class org.jafer.databeans.JDBC
getCurrentDatabase, getCurrentRecord, getDatabases, getElementSpec, getFetchSize, getHost, getNumberOfResults, getPort, getQuery, getQueryString, getRecordCursor, getRecordSchema, getResultSetName, getSearchProfile, getXMLConfigValue, isCheckRecordFormat, isParseQuery, processInsert, saveQuery, search, setCheckRecordFormat, setDatabases, setDatabases, setElementSpec, setFetchSize, setFetchSize, setHost, setParseQuery, setPort, setQueryString, setRecordCursor, setRecordSchema, setResultSetName, setSearchProfile
 
Methods inherited from class org.jafer.interfaces.Databean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSource

private com.mysql.jdbc.jdbc2.optional.MysqlDataSource dataSource
Constructor Detail

MySQLDatabean

public MySQLDatabean()
uses settings from superclass:

Method Detail

submitQuery

public int submitQuery(org.w3c.dom.Node query)
                throws JaferException
Description copied from interface: Search
Send query in XML form

Specified by:
submitQuery in interface Search
Overrides:
submitQuery in class JDBC
Returns:
number of records found
JaferException

getStatement

protected java.sql.Statement getStatement()
                                   throws java.sql.SQLException
Description copied from class: JDBC
Gets a new Statement, which can be modified in subclasses.

Overrides:
getStatement in class JDBC
java.sql.SQLException

configureDataSource

protected void configureDataSource()
Specified by:
configureDataSource in class JDBC

getConnection

protected java.sql.Connection getConnection()
                                     throws java.sql.SQLException
Description copied from class: JDBC
Gets a conection from the DataSource in use.

Specified by:
getConnection in class JDBC
java.sql.SQLException