Package com.mckoi.database.interpret
Class SearchExpression
java.lang.Object
com.mckoi.database.interpret.SearchExpression
- All Implemented Interfaces:
StatementTreeObject
,Serializable
,Cloneable
public final class SearchExpression
extends Object
implements Serializable, StatementTreeObject, 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Performs a DEEP clone of this object if it is mutable, or a deep clone of its mutable members.Returns the search expression as an Expression object.void
prepare
(ExpressionPreparer preparer) Prepares the expression.void
prepareExpressions
(ExpressionPreparer preparer) Prepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.void
setFromExpression
(Expression expression) Sets this search expression from the given expression.toString()
-
Constructor Details
-
SearchExpression
public SearchExpression()
-
-
Method Details
-
setFromExpression
Sets this search expression from the given expression. -
getFromExpression
Returns the search expression as an Expression object. -
prepare
Prepares the expression.- Throws:
DatabaseException
-
prepareExpressions
Description copied from interface:StatementTreeObject
Prepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.- Specified by:
prepareExpressions
in interfaceStatementTreeObject
- Throws:
DatabaseException
-
clone
Description copied from interface:StatementTreeObject
Performs 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:
clone
in interfaceStatementTreeObject
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
toString
-