|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.mock.connector.cci.MockRecordFactory
public class MockRecordFactory
Mock implementation of RecordFactory
.
Constructor Summary | |
---|---|
MockRecordFactory()
|
Method Summary | |
---|---|
javax.resource.cci.IndexedRecord |
createIndexedRecord(java.lang.String recordName)
|
javax.resource.cci.MappedRecord |
createMappedRecord(java.lang.String recordName)
|
java.util.List |
getCreatedIndexedRecords()
Returns a list of all created indexed records. |
java.util.List |
getCreatedIndexedRecords(java.lang.String recordName)
Returns a list of created indexed records that match the specified name. |
java.util.List |
getCreatedMappedRecords()
Returns a list of all created mapped records. |
java.util.List |
getCreatedMappedRecords(java.lang.String recordName)
Returns a list of created mapped records that match the specified name. |
int |
getNumberCreatedIndexedRecords()
Returns the number of created indexed records. |
int |
getNumberCreatedMappedRecords()
Returns the number of created mapped records. |
void |
resetIndexedRecords()
Resets the list of created indexed records. |
void |
resetMappedRecords()
Resets the list of created mapped records. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockRecordFactory()
Method Detail |
---|
public void resetIndexedRecords()
public void resetMappedRecords()
public int getNumberCreatedIndexedRecords()
public int getNumberCreatedMappedRecords()
public java.util.List getCreatedIndexedRecords()
List
of all created indexed recordspublic java.util.List getCreatedIndexedRecords(java.lang.String recordName)
recordName
- the name of the record
List
of matching indexed recordspublic java.util.List getCreatedMappedRecords()
List
of all created mapped recordspublic java.util.List getCreatedMappedRecords(java.lang.String recordName)
recordName
- the name of the record
List
of matching mapped recordspublic javax.resource.cci.IndexedRecord createIndexedRecord(java.lang.String recordName) throws javax.resource.ResourceException
createIndexedRecord
in interface javax.resource.cci.RecordFactory
javax.resource.ResourceException
public javax.resource.cci.MappedRecord createMappedRecord(java.lang.String recordName) throws javax.resource.ResourceException
createMappedRecord
in interface javax.resource.cci.RecordFactory
javax.resource.ResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |