org.clazzes.jdbc2xml.schema
Class IndexInfo
java.lang.Object
org.clazzes.jdbc2xml.schema.IndexInfo
public class IndexInfo
- extends java.lang.Object
This class implements all infos we need to describe a database index.
- Author:
- wglas
|
Constructor Summary |
IndexInfo()
Default constructor. |
IndexInfo(org.xml.sax.Attributes atts)
Initialize this object from SAX attributes. |
IndexInfo(java.lang.String name,
java.lang.String columns,
boolean unique,
java.lang.String filterCondition)
Constructor using name, table and columns. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexInfo
public IndexInfo()
- Default constructor.
IndexInfo
public IndexInfo(java.lang.String name,
java.lang.String columns,
boolean unique,
java.lang.String filterCondition)
- Constructor using name, table and columns.
- Parameters:
name - The name of the foreign key.columns - A comma-separated list of columns in the own table.unique - Whether this is a unique index.filterCondition - The filter condition of the index.
IndexInfo
public IndexInfo(org.xml.sax.Attributes atts)
- Initialize this object from SAX attributes.
- Parameters:
atts - A SAX attributes bag to set to this object.
toAttributes
public org.xml.sax.Attributes toAttributes()
- Returns:
- A SAX Attributes bag filled with the information about this private key.
getName
public java.lang.String getName()
- Returns:
- the name of the primary key.
setName
public void setName(java.lang.String name)
- Parameters:
name - the name to set
getColumns
public java.util.List<java.lang.String> getColumns()
- Returns:
- the columns
setColumns
public void setColumns(java.util.List<java.lang.String> columns)
- Parameters:
columns - the columns to set
addColumn
public void addColumn(java.lang.String column)
- Parameters:
column - The column name to add to the list of columns.
getFilterCondition
public java.lang.String getFilterCondition()
- Returns:
- the filter condition.
setFilterCondition
public void setFilterCondition(java.lang.String filterCondition)
- Parameters:
filterCondition - the filter condition to set
isUnique
public boolean isUnique()
- Returns:
- Whether this index is a unique index.
setUnique
public void setUnique(boolean unique)
- Parameters:
unique - The unique flag to set
getOrder
public IndexInfo.Order getOrder()
- Returns:
- the order
setOrder
public void setOrder(IndexInfo.Order order)
- Parameters:
order - the order to set
Copyright © 2007. All Rights Reserved.