Package com.j_spaces.jdbc
Interface Query
- All Known Implementing Classes:
AbstractDMLQuery,AlterTableQuery,CommitQuery,CreateTableQuery,DeleteQuery,DropTableQuery,InsertQuery,Join,ProcedureQuery,SelectQuery,UpdateQuery
public interface Query
An interface that represents an SQL query.
- Author:
- Michael Mitrani, 2Train4 - 2004
-
Method Summary
Modifier and TypeMethodDescriptionvoidbuild()booleanGets whether this query contains sub queries.executeOnSpace(ISpaceProxy space, Transaction txn) Will execute this query on the space and return a ResponsePacketbooleanGets whether this query is forced to be executed under transaction.booleanvoidsetSecurityInterceptor(SecurityInterceptor securityInterceptor) voidsetSession(QuerySession session) voidvalidateQuery(ISpaceProxy space) Each query should have its own specific validations.default voidvalidateQuery(SpaceTypeManager typeManager)
-
Method Details
-
executeOnSpace
Will execute this query on the space and return a ResponsePacket- Throws:
SQLException
-
validateQuery
Each query should have its own specific validations. this is the place to do them. if some validation fail, an SQLException will be thrown.- Throws:
SQLException
-
setSession
-
build
- Throws:
SQLException
-
isPrepared
boolean isPrepared()- Returns:
- isPrepared is this a PreparedStatment or not.
-
setSecurityInterceptor
-
isForceUnderTransaction
boolean isForceUnderTransaction()Gets whether this query is forced to be executed under transaction. -
containsSubQueries
boolean containsSubQueries()Gets whether this query contains sub queries. -
validateQuery
- Throws:
SQLException
-