public class CreateIndex extends SchemaCommand
transactionalcreate, parameters, prepareAlways, session, sqlStatement| Constructor and Description |
|---|
CreateIndex(Session session,
Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
int |
getType()
Get the command type as defined in CommandInterface
|
void |
setComment(String comment) |
void |
setHash(boolean b) |
void |
setIfNotExists(boolean ifNotExists) |
void |
setIndexColumns(IndexColumn[] columns) |
void |
setIndexName(String indexName) |
void |
setPrimaryKey(boolean b) |
void |
setTableName(String tableName) |
void |
setUnique(boolean b) |
int |
update()
Execute the statement.
|
getSchemaisReadOnly, isTransactional, queryMeta, setTransactionalcheckCanceled, checkParameters, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toStringpublic void setIfNotExists(boolean ifNotExists)
public void setTableName(String tableName)
public void setIndexName(String indexName)
public void setIndexColumns(IndexColumn[] columns)
public int update()
Preparedpublic void setPrimaryKey(boolean b)
public void setUnique(boolean b)
public void setHash(boolean b)
public void setComment(String comment)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.