com.objectwave.persist.broker
Class FileMakerBroker

java.lang.Object
  |
  +--com.objectwave.persist.AbstractBroker
        |
        +--com.objectwave.persist.broker.RDBBroker
              |
              +--com.objectwave.persist.broker.FileMakerBroker
All Implemented Interfaces:
Broker

public class FileMakerBroker
extends RDBBroker

This will be the place for FileMaker specific implementation issues. Special Considerations

  • The type of Date will be like {5/31/2001}
  • The type of Time will be like {17:30}
  • Version:
    $Id: FileMakerBroker.java,v 2.2 2002/02/13 21:36:18 dave_hoag Exp $
    Author:
    Zhou Cai

    Nested Class Summary
     
    Nested classes inherited from class com.objectwave.persist.broker.RDBBroker
    RDBBroker.Test
     
    Field Summary
     
    Fields inherited from class com.objectwave.persist.broker.RDBBroker
    broker, brokerPropertySource, connectionPerThread, connectionPool, pool, resultEngine, saveObjectsStrategy, sqlModifyEngine, sqlQueryEngine, statementFactory, threadLocal
     
    Fields inherited from class com.objectwave.persist.AbstractBroker
    exceptionConverter, metrics, props, verbose
     
    Constructor Summary
    FileMakerBroker()
               
     
    Method Summary
     RDBBroker defaultBroker()
              Implemented as an instance method to support method overriding.
    protected  void determinePrimaryKey(RDBPersistence pObj)
              Determine the primary key for the provided persistent object.
     RDBConnection getConnection()
              Nevel use connection pool
    static RDBBroker getDefaultBroker()
              Most systems will have only one database broker.
     void initialize()
              Normally you would use the 'getDefaultBroker' method.
    protected  java.lang.Object nextPrimaryKey(RDBPersistence pObj)
              Same as the last method.
     
    Methods inherited from class com.objectwave.persist.broker.RDBBroker
    beginTransaction, checkObjectPool, cleanupSelect, close, commit, constrainWhereClause, count, createAttributeSelect, customizeDetail, defineSelectList, delete, deleteAll, deleteObjects, deleteObjects, dumpSQLException, find, findAttributes, findColumnSqlTypes, findResults, findUnique, finishBuildingQuery, generateInsertValues, getBrokerPropertySource, getDefaultDriverName, getDefaultPrimaryKeyStrategy, getObjectPool, getRDBAdapter, initConfiguration, initializeConnections, initializeConnections, initializeObjectPooling, insert, main, newRDBConnection, removeObjectPooling, rollback, save, saveObjects, setBrokerPropertySource, setDriver, setObjectPool, setUsingObjectPool, update, update
     
    Methods inherited from class com.objectwave.persist.AbstractBroker
    convertException, convertException, getExceptionConverter, println, setBrokerProperty, setExceptionConverter
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    FileMakerBroker

    public FileMakerBroker()
    Method Detail

    getDefaultBroker

    public static RDBBroker getDefaultBroker()
    Most systems will have only one database broker. This method is used to support systems of that type.

    Returns:
    The DefaultBroker value

    getConnection

    public RDBConnection getConnection()
    Nevel use connection pool

    Overrides:
    getConnection in class RDBBroker
    Returns:
    RDBConnection A connection to the database.

    initialize

    public void initialize()
    Description copied from class: RDBBroker
    Normally you would use the 'getDefaultBroker' method. In addition to creating a RDBBroker instance, it will initialize the JDBC Driver and the defaultTransactionLog. This method is public for the ISOLATED instances where it is necessary to create a custom broker. Avoid using this method.

    Overrides:
    initialize in class RDBBroker
    See Also:
    com.objectwave.persist.Broker#getDefaultBroker

    defaultBroker

    public RDBBroker defaultBroker()
    Implemented as an instance method to support method overriding.

    Overrides:
    defaultBroker in class RDBBroker
    Returns:
    com.objectwave.persist.RDBBroker or a subclass.
    See Also:
    BrokerFactory

    determinePrimaryKey

    protected void determinePrimaryKey(RDBPersistence pObj)
                                throws java.sql.SQLException,
                                       QueryException
    Determine the primary key for the provided persistent object. This assumes the primary key has not yet been determined and that the pObj happens to match the highest value the table.

    Overrides:
    determinePrimaryKey in class RDBBroker
    Parameters:
    pObj -
    Throws:
    java.sql.SQLException
    QueryException
    See Also:
    RDBBroker.generateInsertValues(com.objectwave.persist.RDBPersistence)

    nextPrimaryKey

    protected java.lang.Object nextPrimaryKey(RDBPersistence pObj)
                                       throws java.sql.SQLException,
                                              QueryException
    Same as the last method. I don't want to implement it.

    Overrides:
    nextPrimaryKey in class RDBBroker
    Parameters:
    pObj -
    Returns:
    Next available primary key field.
    Throws:
    java.sql.SQLException
    QueryException