org.rhq.enterprise.server.sync.importers
Class NoSingleEntityMatcher<T>
java.lang.Object
org.rhq.enterprise.server.sync.importers.NoSingleEntityMatcher<T>
- All Implemented Interfaces:
- ExportedEntityMatcher<NoSingleEntity,T>
public class NoSingleEntityMatcher<T>
- extends Object
- implements ExportedEntityMatcher<NoSingleEntity,T>
This is a simple entity matcher that can be used by importers that do not need
to find any matching entity in the database.
- Author:
- Lukas Krejci
|
Method Summary |
NoSingleEntity |
findMatch(T object)
Tries to find a match for given object in the data available in the database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoSingleEntityMatcher
public NoSingleEntityMatcher()
findMatch
public NoSingleEntity findMatch(T object)
- Description copied from interface:
ExportedEntityMatcher
- Tries to find a match for given object in the data available in the database.
The returned object is not necessarily of the same type is the provided object
because the given object might function as some kind of "proxy" object that represents
the data better in the sync scenarios.
- Specified by:
findMatch in interface ExportedEntityMatcher<NoSingleEntity,T>
- Returns:
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.