|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.interfaces.Databean
org.jafer.databeans.JDBC
org.jafer.databeans.MySQLDatabean
public class MySQLDatabean
Field Summary |
---|
Fields inherited from class org.jafer.databeans.JDBC |
---|
CONFIG_FILE, connection, dataSource, foreignKey, logger, nResults, password, primaryKey, primaryTable, query, QUERY_XSLT, resultSet, username |
Constructor Summary | |
---|---|
MySQLDatabean()
|
Method Summary | |
---|---|
protected void |
configureDataSource()
|
protected java.sql.Connection |
getConnection()
Gets a conection from the DataSource in use. |
JaferException |
getSearchException(java.lang.String database)
If a search fails this method will return the JaferException for the specified database |
JaferException[] |
getSearchException(java.lang.String[] databases)
If a search fails this method will return the JaferException for the specified databases |
protected java.sql.Statement |
getStatement()
Gets a new Statement, which can be modified in subclasses. |
int |
submitQuery(org.w3c.dom.Node query)
uses settings from superclass: |
Methods inherited from class org.jafer.interfaces.Databean |
---|
getCacheSupport, getPresentSupport, getScanSupport, getSearchSupport |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MySQLDatabean()
Method Detail |
---|
public int submitQuery(org.w3c.dom.Node query) throws JaferException
submitQuery
in class JDBC
JaferException
protected java.sql.Statement getStatement() throws java.sql.SQLException
JDBC
getStatement
in class JDBC
java.sql.SQLException
protected void configureDataSource()
configureDataSource
in class JDBC
protected java.sql.Connection getConnection() throws java.sql.SQLException
JDBC
getConnection
in class JDBC
java.sql.SQLException
public JaferException getSearchException(java.lang.String database) throws JaferException
Search
getSearchException
in interface Search
getSearchException
in class JDBC
database
- The name of the database to check
JaferException
public JaferException[] getSearchException(java.lang.String[] databases) throws JaferException
Search
getSearchException
in interface Search
getSearchException
in class JDBC
databases
- The databases to search
JaferException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |