Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.asaph.model.opsemantics
Class SearchBodyPredicateSemantics.DefaultImplementation  view SearchBodyPredicateSemantics.DefaultImplementation download SearchBodyPredicateSemantics.DefaultImplementation.java

java.lang.Object
  extended bycom.virtuosotechnologies.asaph.model.opsemantics.SearchBodyPredicateSemantics.DefaultImplementation
All Implemented Interfaces:
PredicateSemantics, SearchBodyPredicateSemantics, com.virtuosotechnologies.asaph.model.SongOperation
Enclosing class:
SearchBodyPredicateSemantics

public static class SearchBodyPredicateSemantics.DefaultImplementation
extends java.lang.Object
implements SearchBodyPredicateSemantics

The default implementation of TruePredicateSemantics


Nested Class Summary
 
Nested classes inherited from class com.virtuosotechnologies.asaph.model.opsemantics.SearchBodyPredicateSemantics
SearchBodyPredicateSemantics.DefaultImplementation, SearchBodyPredicateSemantics.PartConstraint
 
Field Summary
private  SearchParameters params_
           
private  SearchBodyPredicateSemantics.PartConstraint part_
           
private  com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_
           
 
Fields inherited from interface com.virtuosotechnologies.asaph.model.opsemantics.SearchBodyPredicateSemantics
ENTIRE_BODY, FIRST_LINE
 
Constructor Summary
SearchBodyPredicateSemantics.DefaultImplementation(com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils, SearchBodyPredicateSemantics.PartConstraint part, SearchParameters params)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          The equals method should return true if the given object is a SongOperation with the same semantics as this one.
 SearchBodyPredicateSemantics.PartConstraint getPartConstraint()
          Get the part constraint
 SearchParameters getSearchParameters()
          Get the search parameters
 void perform(com.virtuosotechnologies.asaph.model.SongIDResultSet resultSet)
          Performs the operation on the given result set.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

songUtils_

private com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_

part_

private SearchBodyPredicateSemantics.PartConstraint part_

params_

private SearchParameters params_
Constructor Detail

SearchBodyPredicateSemantics.DefaultImplementation

public SearchBodyPredicateSemantics.DefaultImplementation(com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils,
                                                          SearchBodyPredicateSemantics.PartConstraint part,
                                                          SearchParameters params)
Constructor

Method Detail

getPartConstraint

public SearchBodyPredicateSemantics.PartConstraint getPartConstraint()
Get the part constraint

Specified by:
getPartConstraint in interface SearchBodyPredicateSemantics

getSearchParameters

public SearchParameters getSearchParameters()
Get the search parameters

Specified by:
getSearchParameters in interface SearchBodyPredicateSemantics

perform

public void perform(com.virtuosotechnologies.asaph.model.SongIDResultSet resultSet)
             throws com.virtuosotechnologies.asaph.model.SongDatabaseFailedException
Performs the operation on the given result set.

Specified by:
perform in interface com.virtuosotechnologies.asaph.model.SongOperation

equals

public boolean equals(java.lang.Object obj)
The equals method should return true if the given object is a SongOperation with the same semantics as this one. (i.e. it would perform the same operation.) This may be used to optimize performance. It is always safe to return false from this method, if the semantics of the given object cannot be determined. (This is similar to the equals method in java.util.Comparator.) As a corollary, it is safe just to fall back on the default implementation inherited from java.lang.Object.

Specified by:
equals in interface com.virtuosotechnologies.asaph.model.SongOperation