org.xorm.datastore
Class Table
java.lang.Object
|
+--org.xorm.datastore.Table
- public class Table
- extends Object
Represents a database table.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Table
public Table(String name)
getPrimaryKey
public Column getPrimaryKey()
setPrimaryKey
public void setPrimaryKey(Column primaryKey)
getColumns
public Set getColumns()
getColumnByName
public Column getColumnByName(String name)
- Convenience method to find a matching column.
addColumn
public int addColumn(Column column)
- Adds a Column to the Table. Returns the index of the column
added. The first column added is 0.
getName
public String getName()
setName
public void setName(String name)
$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/datastore/Table.html,v 1.6 2004/05/30 08:55:05 wbiggs Exp $