org.databene.platform.db.model
Class DBNotNullConstraint

java.lang.Object
  extended by org.databene.platform.db.model.DBConstraint
      extended by org.databene.platform.db.model.DBNotNullConstraint

public class DBNotNullConstraint
extends DBConstraint

Represents a database not-null constraint.

Created: 06.01.2007 09:00:49

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.platform.db.model.DBConstraint
name
 
Constructor Summary
DBNotNullConstraint(DBColumn column)
           
DBNotNullConstraint(java.lang.String name, DBColumn column)
           
 
Method Summary
 DBColumn[] getColumns()
          Returns the columns which constitute this constraint
 DBTable getOwner()
          Returns the table which owns this constraint
 
Methods inherited from class org.databene.platform.db.model.DBConstraint
equals, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBNotNullConstraint

public DBNotNullConstraint(DBColumn column)
Parameters:
column - the DBColumn that is not nullable

DBNotNullConstraint

public DBNotNullConstraint(java.lang.String name,
                           DBColumn column)
Parameters:
name - the constraint name - it may be null
column - the DBColumn that is not nullable
Method Detail

getOwner

public DBTable getOwner()
Description copied from class: DBConstraint
Returns the table which owns this constraint

Specified by:
getOwner in class DBConstraint
Returns:
the table which owns this constraint

getColumns

public DBColumn[] getColumns()
Description copied from class: DBConstraint
Returns the columns which constitute this constraint

Specified by:
getColumns in class DBConstraint
Returns:
the columns which constitute this constraint


Copyright © 2010. All Rights Reserved.