org.springframework.jca.cci.connection
Class NotSupportedRecordFactory
java.lang.Object
org.springframework.jca.cci.connection.NotSupportedRecordFactory
public class NotSupportedRecordFactory
- extends java.lang.Object
Implementation of the CCI RecordFactory interface that always throws
NotSupportedException.
Useful as a placeholder for a RecordFactory argument (for example as
defined by the RecordCreator callback), in particular when the connector's
ConnectionFactory.getRecordFactory()
implementation happens to
throw NotSupportedException early rather than throwing the exception from
RecordFactory's methods.
- Since:
- 1.2.4
- Author:
- Juergen Hoeller
- See Also:
org.springframework.jca.cci.core.RecordCreator#createRecord(javax.resource.cci.RecordFactory)
,
org.springframework.jca.cci.core.CciTemplate#getRecordFactory(javax.resource.cci.ConnectionFactory)
,
javax.resource.cci.ConnectionFactory#getRecordFactory()
,
javax.resource.NotSupportedException
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotSupportedRecordFactory
public NotSupportedRecordFactory()
createMappedRecord
public MappedRecord createMappedRecord(java.lang.String name)
throws ResourceException
- Throws:
ResourceException
createIndexedRecord
public IndexedRecord createIndexedRecord(java.lang.String name)
throws ResourceException
- Throws:
ResourceException