SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.impl.jdbc.schema
Class Constraint

java.lang.Object
  |
  +--com.solarmetric.rd.kodo.impl.jdbc.schema.ReferenceCounter
        |
        +--com.solarmetric.rd.kodo.impl.jdbc.schema.Constraint
Direct Known Subclasses:
ForeignKey, PrimaryKey

public abstract class Constraint
extends ReferenceCounter

A table constraint.


Method Summary
 boolean equals(java.lang.Object other)
          Tests that the names of the constraints are equal or at least one is unset.
 java.lang.String getName()
          Return the name of the constraint.
 com.solarmetric.rd.kodo.impl.jdbc.schema.Table getTable()
          Return the table of this constraint.
 boolean isDeferred()
          Return true if this is a deferred constraint.
abstract  boolean isLogical()
          Return whether this constraint is a logical constraint only; i.e.
 void setDeferred(boolean deferred)
          Make this constrain deferred.
 java.lang.String toString()
           
 
Methods inherited from class com.solarmetric.rd.kodo.impl.jdbc.schema.ReferenceCounter
deref, getRefCount, ref
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getTable

public com.solarmetric.rd.kodo.impl.jdbc.schema.Table getTable()
Return the table of this constraint.


getName

public java.lang.String getName()
Return the name of the constraint.


isLogical

public abstract boolean isLogical()
Return whether this constraint is a logical constraint only; i.e. if it does not exist in the database.


isDeferred

public boolean isDeferred()
Return true if this is a deferred constraint.


setDeferred

public void setDeferred(boolean deferred)
Make this constrain deferred.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Tests that the names of the constraints are equal or at least one is unset. Subclasses will override to tack on additional criteria.

Overrides:
equals in class java.lang.Object

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.