org.databene.platform.db.model
Class DBConstraint

java.lang.Object
  extended by 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
           
 
Constructor Summary
DBConstraint(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
abstract  DBColumn[] getColumns()
          Returns the columns which constitute this constraint
 java.lang.String getName()
          Returns the constraint name
abstract  DBTable getOwner()
          Returns the table which owns this constraint
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Constructor Detail

DBConstraint

public DBConstraint(java.lang.String name)
Parameters:
name - the constraint name - it may be null
Method Detail

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.