Email Answering System
Version 1.0

com.ninecode.email.connector
Class EmailRecordFactory

java.lang.Object
  |
  +--com.ninecode.email.connector.EmailRecordFactory
All Implemented Interfaces:
RecordFactory

public class EmailRecordFactory
extends Object
implements RecordFactory

A generator of Record objects.

Author:
Derrick Oswald

Constructor Summary
EmailRecordFactory()
          Creates a new instance of EmailRecordFactory.
 
Method Summary
 IndexedRecord createIndexedRecord(String name)
          Creates a IndexedRecord.
 MappedRecord createMappedRecord(String name)
          Creates a MappedRecord.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailRecordFactory

public EmailRecordFactory()
Creates a new instance of EmailRecordFactory.

Method Detail

createIndexedRecord

public IndexedRecord createIndexedRecord(String name)
                                  throws ResourceException
Creates a IndexedRecord. The method takes the name of the record that is to be created by the RecordFactory. The name of the record acts as a pointer to the meta information (stored in the metadata repository) for a specific record type.

Specified by:
createIndexedRecord in interface RecordFactory
Parameters:
name - Name of the Record.
Returns:
IndexedRecord
Throws:
ResourceException - Failed to create an IndexedRecord. Example error cases are:
  • Invalid specification of record name.
  • Resource adapter internal error.
  • Failed to access metadata repository.
  • NotSupportedException - Operation not supported.

    createMappedRecord

    public MappedRecord createMappedRecord(String name)
                                    throws ResourceException
    Creates a MappedRecord. The method takes the name of the record that is to be created by the RecordFactory. The name of the record acts as a pointer to the meta information (stored in the metadata repository) for a specific record type.

    Specified by:
    createMappedRecord in interface RecordFactory
    Parameters:
    name - Name of the Record.
    Returns:
    MappedRecord
    Throws:
    ResourceException - Failed to create a MappedRecord. Example error cases are:
  • Invalid specification of record name.
  • Resource adapter internal error.
  • Failed to access metadata repository.
  • NotSupportedException - Operation not supported.

    Email Answering System
    Version 1.0

    Copyright © 2003 Derrick Oswald. All rights reserved.