Package com.mckoi.database.interpret
Class SearchExpression
- java.lang.Object
-
- com.mckoi.database.interpret.SearchExpression
-
- All Implemented Interfaces:
StatementTreeObject,java.io.Serializable,java.lang.Cloneable
public final class SearchExpression extends java.lang.Object implements java.io.Serializable, StatementTreeObject, java.lang.Cloneable
Search expression is a form of an Expression that is split up into component parts that can be easily formed into a search query.- Author:
- Tobias Downer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SearchExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Performs a DEEP clone of this object if it is mutable, or a deep clone of its mutable members.ExpressiongetFromExpression()Returns the search expression as an Expression object.voidprepare(ExpressionPreparer preparer)Prepares the expression.voidprepareExpressions(ExpressionPreparer preparer)Prepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.voidsetFromExpression(Expression expression)Sets this search expression from the given expression.java.lang.StringtoString()
-
-
-
Method Detail
-
setFromExpression
public void setFromExpression(Expression expression)
Sets this search expression from the given expression.
-
getFromExpression
public Expression getFromExpression()
Returns the search expression as an Expression object.
-
prepare
public void prepare(ExpressionPreparer preparer) throws DatabaseException
Prepares the expression.- Throws:
DatabaseException
-
prepareExpressions
public void prepareExpressions(ExpressionPreparer preparer) throws DatabaseException
Description copied from interface:StatementTreeObjectPrepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.- Specified by:
prepareExpressionsin interfaceStatementTreeObject- Throws:
DatabaseException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionDescription copied from interface:StatementTreeObjectPerforms a DEEP clone of this object if it is mutable, or a deep clone of its mutable members. If the object is immutable then it may return 'this'.- Specified by:
clonein interfaceStatementTreeObject- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-