org.mmbase.storage.search
Interface LegacyConstraint

All Superinterfaces:
Constraint
All Known Implementing Classes:
BasicLegacyConstraint

public interface LegacyConstraint
extends Constraint

Constraint represented by a string, as it appears in the where-clause of an SQL query.

This constraint type is provided for the sole purpose of aligning existing legacy code with the new search query framework, and will eventually be phased out.

Since:
MMBase-1.7
Version:
$Id: LegacyConstraint.java 41989 2010-04-20 16:45:39Z michiel $
Author:
Rob van Maris

Method Summary
 String getConstraint()
          Gets the constraint.
 String toString()
          Returns a string representation of this LegacyConstraint.
 
Methods inherited from interface org.mmbase.storage.search.Constraint
equals, getBasicSupportLevel, hashCode, isInverse, setUnmodifiable
 

Method Detail

getConstraint

String getConstraint()
Gets the constraint.

Returns:
The constraint as it appears in the where-clause.

toString

String toString()
Returns a string representation of this LegacyConstraint. The string representation has the form "LegacyConstraint(inverse:<:inverse>, field:<field>, constraint:<constraint>)" where

Overrides:
toString in class Object
Returns:
A string representation of this LegacyConstraint.


MMBase 2.0-SNAPSHOT - null