|
||||||||||
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(org.xml.sax.Attributes atts)
Initialize this object from SAX attributes. |
|
PrimaryKeyInfo(java.lang.String name,
java.lang.String columns)
Construct a primary key object from a name and a comma-separated list of column names. |
Method Summary | |
---|---|
void |
addColumn(java.lang.String column)
|
java.util.List<java.lang.String> |
getColumns()
|
java.lang.String |
getName()
|
void |
setColumns(java.util.List<java.lang.String> columns)
|
void |
setName(java.lang.String name)
|
org.xml.sax.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(java.lang.String name, java.lang.String columns)
name
- The name of the primary key.columns
- The list of columns,separated by commas.public PrimaryKeyInfo(org.xml.sax.Attributes atts)
atts
- A SAX attributes bag to set to this object.Method Detail |
---|
public org.xml.sax.Attributes toAttributes(SqlIdentifierMapper mapper)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.util.List<java.lang.String> getColumns()
public void setColumns(java.util.List<java.lang.String> columns)
columns
- the columns to setpublic void addColumn(java.lang.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 |