/*
* DbTableIndex.java
*
* Created on 5 de Agosto de 2007, 14:52
*/
package com.m16e.tools.db;
////////////////////////////////////////////////////////////
/**
*
* @author carlos@m16e.com
*/
public class DbTableIndex
{
private DbTable table = null;
private java.util.List<Integer> fields = null;
private String indexName = null;
private boolean unique = false;
private boolean ascending = true;
private String condition = null;
////////////////////////////////////////////////////////////
/** Creates a new instance of DbTableIndex */
public DbTableIndex( DbTable table )
{
this.table = table;
}
////////////////////////////////////////////////////////////
public DbTable getTable()
{
return table;
}
public void setTable(DbTable table)
{
this.table = table;
}
public java.util.List<Integer> getFields()
{
return fields;
}
public void setFields(java.util.List<Integer> fields)
{
this.fields = fields;
}
public String getIndexName()
{
return indexName;
}
public void setIndexName(String indexName)
{
this.indexName = indexName;
}
public boolean isUnique()
{
return unique;
}
public void setUnique(boolean unique)
{
this.unique = unique;
}
public boolean isAscending()
{
return ascending;
}
public void setAscending(boolean ascending)
{
this.ascending = ascending;
}
public String getCondition()
{
return condition;
}
public void setCondition(String condition)
{
this.condition = condition;
}
}
|