|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.jdbc2xml.schema.PrimaryKeyInfo
public class PrimaryKeyInfo
This class implements all infos we need to describe a primary key.
Constructor Summary | |
---|---|
PrimaryKeyInfo()
Default constructor. |
|
PrimaryKeyInfo(Attributes atts)
Initialize this object from SAX attributes. |
|
PrimaryKeyInfo(String name,
String columns)
Construct a primary key object from a name and a comma-separated list of column names. |
Method Summary | |
---|---|
void |
addColumn(String column)
|
List<String> |
getColumns()
|
String |
getName()
|
void |
setColumns(List<String> columns)
|
void |
setName(String name)
|
Attributes |
toAttributes(SqlIdentifierMapper mapper)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrimaryKeyInfo()
public PrimaryKeyInfo(String name, String columns)
name
- The name of the primary key.columns
- The list of columns,separated by commas.public PrimaryKeyInfo(Attributes atts)
atts
- A SAX attributes bag to set to this object.Method Detail |
---|
public Attributes toAttributes(SqlIdentifierMapper mapper)
public String getName()
public void setName(String name)
name
- the name to setpublic List<String> getColumns()
public void setColumns(List<String> columns)
columns
- the columns to setpublic void addColumn(String column)
column
- The column name to add to the list of columns.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |