Constructor and Description |
---|
CreateTableQuery() |
CreateTableQuery(String tableName,
ITypeDesc typeDesc,
boolean[] extraIndices) |
Modifier and Type | Method and Description |
---|---|
void |
build() |
boolean |
containsSubQueries()
Gets whether this query contains sub queries.
|
ResponsePacket |
executeOnSpace(ISpaceProxy space,
Transaction txn)
The main logic method, execute the query on the space by calling snapshot
|
String |
getRoutingFieldName()
Gets the routing field name for the created table.
|
SecurityInterceptor |
getSecurityInterceptor() |
QuerySession |
getSession() |
boolean |
isForceUnderTransaction()
Gets whether this query is forced to be executed under transaction.
|
boolean |
isPrepared() |
void |
setColumnNames(String[] columnNames) |
void |
setColumnTypes(String[] columnTypes) |
void |
setIndices(boolean[] indices) |
void |
setRoutingFieldName(String routingFieldName)
Sets the routing field name for the created table.
|
void |
setSecurityInterceptor(SecurityInterceptor securityInterceptor) |
void |
setSession(QuerySession session) |
void |
setTableName(String table) |
void |
validateQuery(ISpaceProxy space)
Each query should have its own specific validations.
|
public void setRoutingFieldName(String routingFieldName)
public String getRoutingFieldName()
public void setTableName(String table)
public void setSession(QuerySession session)
setSession
in interface Query
public QuerySession getSession()
public ResponsePacket executeOnSpace(ISpaceProxy space, Transaction txn) throws SQLException
executeOnSpace
in interface Query
SQLException
public void validateQuery(ISpaceProxy space) throws SQLException
Query
validateQuery
in interface Query
SQLException
public void build() throws SQLException
build
in interface Query
SQLException
public boolean isPrepared()
isPrepared
in interface Query
public void setColumnNames(String[] columnNames)
public void setColumnTypes(String[] columnTypes)
public void setIndices(boolean[] indices)
public void setSecurityInterceptor(SecurityInterceptor securityInterceptor)
setSecurityInterceptor
in interface Query
public SecurityInterceptor getSecurityInterceptor()
public boolean isForceUnderTransaction()
Query
isForceUnderTransaction
in interface Query
public boolean containsSubQueries()
Query
containsSubQueries
in interface Query
Copyright © GigaSpaces.