org.jafer.databeans
Class TDSDatabean

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

public class TDSDatabean
extends JDBC

See Also:
Serialized Form

Field Summary
private  net.sourceforge.jtds.jdbcx.TdsDataSource dataSource
           
 
Fields inherited from class org.jafer.databeans.JDBC
CONFIG_FILE, connection, fetchSize, logger, nResults, password, query, QUERY_XSLT, resultSet, username
 
Constructor Summary
TDSDatabean()
           
 
Method Summary
protected  void configureDataSource()
           
protected  java.sql.Connection getConnection()
          Gets a conection from the DataSource in use.
protected  java.lang.String processInsert(java.lang.String columnName)
          uses settings from superclass:
 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, getStatement, getXMLConfigValue, isCheckRecordFormat, isParseQuery, 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 net.sourceforge.jtds.jdbcx.TdsDataSource dataSource
Constructor Detail

TDSDatabean

public TDSDatabean()
Method Detail

processInsert

protected java.lang.String processInsert(java.lang.String columnName)
                                  throws java.sql.SQLException,
                                         JaferException
uses settings from superclass:

Overrides:
processInsert in class JDBC
java.sql.SQLException
JaferException

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

configureDataSource

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

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