public class IndexMeta extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
FOREIGN_KEY |
static String |
INDEX |
static String |
INDEX_NAME_PREFIX_FK |
static String |
INDEX_NAME_PREFIX_NQ |
static String |
INDEX_NAME_PREFIX_PK |
static String |
INDEX_NAME_PREFIX_UN |
static String |
PRIMARY_KEY |
static String |
UNIQUE |
| 构造器和说明 |
|---|
IndexMeta() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<String> |
addConstraintSql(List<IndexMeta> cms) |
String |
addSql() |
static List<String> |
dropConstraintSql(List<IndexMeta> cms) |
String |
dropSql() |
boolean |
equals(Object obj) |
String |
genDef() |
String |
genName() |
List<String> |
getColumns() |
String |
getName() |
String |
getRefTable() |
String |
getTable() |
IndexType |
getType() |
String |
getUsing() |
int |
hashCode() |
static String |
indexName(String table) |
void |
setColumns(List<String> columns) |
void |
setName(String name) |
void |
setRefTable(String refTable) |
void |
setTable(String table) |
void |
setType(IndexType type) |
void |
setUsing(String using) |
public String getName()
public void setName(String name)
public IndexType getType()
public void setType(IndexType type)
public String getUsing()
public void setUsing(String using)
public String getTable()
public void setTable(String table)
public String getRefTable()
public void setRefTable(String refTable)
public String genName()
public String genDef()
public String addSql()
public String dropSql()
Copyright © 2020. All rights reserved.