net.sf.spif.persistence
Class MatchProperties

java.lang.Object
  |
  +--net.sf.spif.persistence.MatchProperties

public class MatchProperties
extends java.lang.Object

Ignore - public for testing only.

The properties involved in matching at a TypePersister. That is - the properties not matched at this type (originating at the type or coming down from the owner), and the properties coming from above matched at this type.

Version:
$Id: MatchProperties.java,v 1.2 2003/02/05 22:15:48 bratseth Exp $
Author:
Jon S Bratseth

Constructor Summary
MatchProperties(java.lang.Class type, java.lang.String typePropertyName, java.util.Map availableProperties)
          Creates the match properties for a type given some available (unmatched) properties propagated from above.
 
Method Summary
 java.util.Iterator getMatchedIterator()
           
 java.lang.String getMatchedString()
           
 java.util.Map getUnmatched()
           
 boolean hasMatches()
          Returns whether there are some matched properties here
 void setUnmatched(java.util.Map properties)
          Sets the unmatched properties to uase at this persistent type and below (dependents).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchProperties

public MatchProperties(java.lang.Class type,
                       java.lang.String typePropertyName,
                       java.util.Map availableProperties)
Creates the match properties for a type given some available (unmatched) properties propagated from above.

Parameters:
type - the type to match for
typePropertyName - the name of the property containing this type, or null if this is a main type (not dependent)
availableProperties - the collection of available properties (from above). The properties we match at this level is removed from this collection!. So the collection can be passed to other dependents than this, wich will have available only the properties still not matched.
Method Detail

hasMatches

public boolean hasMatches()
Returns whether there are some matched properties here


setUnmatched

public void setUnmatched(java.util.Map properties)
Sets the unmatched properties to uase at this persistent type and below (dependents). This is done on persistent types which has their own relational tables.


getMatchedIterator

public java.util.Iterator getMatchedIterator()

getUnmatched

public java.util.Map getUnmatched()

getMatchedString

public java.lang.String getMatchedString()


Spif 1.01 (2003-04-03). http://spif.sf.net