Package com.j_spaces.core.client.sql
Class SqlQueryParser
java.lang.Object
com.j_spaces.core.client.sql.SqlQueryParser
- Direct Known Subclasses:
CountQueryParser,ReadQueryParser,TakeQueryParser
The parser manager is responsible for handling statements and calling the SqlParser for parsing
and creating Query objects. ParserManager also maintains the statements cache in a
QueryCache-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclean()Cleans resources held by this parser manager.protected abstract AbstractDMLQueryparseSqlQuery(SQLQuery sqlQuery, ISpaceProxy space) The main method to handle the query.parseSqlQuery(SQLQuery sqlQuery, SpaceTypeManager typeManager)
-
Constructor Details
-
SqlQueryParser
public SqlQueryParser()
-
-
Method Details
-
parseSqlQuery
The main method to handle the query. first it will try to retrieve the query from the cache, if its not there, it will build a parser to parse the statement and then put it in the cache.- Throws:
SQLException
-
parseSqlQuery
public AbstractDMLQuery parseSqlQuery(SQLQuery sqlQuery, SpaceTypeManager typeManager) throws SQLException - Throws:
SQLException
-
clean
public void clean()Cleans resources held by this parser manager. -
parse
- Parameters:
parser-- Throws:
ParseException
-