net.sf.jsqlparser.statement.create.table
Class Index
java.lang.Object
net.sf.jsqlparser.statement.create.table.Index
public class Index
- extends java.lang.Object
An index (unique, primary etc.) in a CREATE TABLE statement
Field Summary |
private java.util.List |
columnsNames
|
private java.lang.String |
name
|
private java.lang.String |
type
|
Constructor Summary |
Index()
|
Method Summary |
java.util.List |
getColumnsNames()
A list of strings of all the columns regarding this index |
java.lang.String |
getName()
|
java.lang.String |
getType()
The type of this index: "PRIMARY KEY", "UNIQUE", "INDEX" |
void |
setColumnsNames(java.util.List list)
|
void |
setName(java.lang.String string)
|
void |
setType(java.lang.String string)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
private java.lang.String type
columnsNames
private java.util.List columnsNames
name
private java.lang.String name
Index
public Index()
getColumnsNames
public java.util.List getColumnsNames()
- A list of strings of all the columns regarding this index
getName
public java.lang.String getName()
getType
public java.lang.String getType()
- The type of this index: "PRIMARY KEY", "UNIQUE", "INDEX"
setColumnsNames
public void setColumnsNames(java.util.List list)
setName
public void setName(java.lang.String string)
setType
public void setType(java.lang.String string)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object