| 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateQuerypublic void setRoutingFieldName(String routingFieldName)
public String getRoutingFieldName()
public void setTableName(String table)
public void setSession(QuerySession session)
setSession in interface Querypublic QuerySession getSession()
public ResponsePacket executeOnSpace(ISpaceProxy space, Transaction txn) throws SQLException
executeOnSpace in interface QuerySQLExceptionpublic void validateQuery(ISpaceProxy space) throws SQLException
QueryvalidateQuery in interface QuerySQLExceptionpublic void build()
throws SQLException
build in interface QuerySQLExceptionpublic boolean isPrepared()
isPrepared in interface Querypublic void setColumnNames(String[] columnNames)
public void setColumnTypes(String[] columnTypes)
public void setIndices(boolean[] indices)
public void setSecurityInterceptor(SecurityInterceptor securityInterceptor)
setSecurityInterceptor in interface Querypublic SecurityInterceptor getSecurityInterceptor()
public boolean isForceUnderTransaction()
QueryisForceUnderTransaction in interface Querypublic boolean containsSubQueries()
QuerycontainsSubQueries in interface QueryCopyright © GigaSpaces.