org.databene.platform.db.model
Class DBConstraint
java.lang.Object
org.databene.platform.db.model.DBConstraint
- Direct Known Subclasses:
- DBForeignKeyConstraint, DBNotNullConstraint, DBUniqueConstraint
public abstract class DBConstraint
- extends java.lang.Object
Parent class for all database constraints.
Created: 06.01.2007 08:58:49
- Author:
- Volker Bergmann
|
Field Summary |
protected java.lang.String |
name
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
DBConstraint
public DBConstraint(java.lang.String name)
- Parameters:
name - the constraint name - it may be null
getName
public java.lang.String getName()
- Returns the constraint name
- Returns:
- the constraint name
getOwner
public abstract DBTable getOwner()
- Returns the table which owns this constraint
- Returns:
- the table which owns this constraint
getColumns
public abstract DBColumn[] getColumns()
- Returns the columns which constitute this constraint
- Returns:
- the columns which constitute this constraint
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2010. All Rights Reserved.