uba.db.sql.language
Class ColumnConstraintDeclaration

java.lang.Object
  extended by uba.db.sql.language.ColumnConstraintDeclaration

public class ColumnConstraintDeclaration
extends java.lang.Object

Contiene los constraints que puede poseer una columna de forma individual. (por ejemplo si puede o no ser null, si es un primary key, etc).

Version:
$Revision: 1.4 $

Field Summary
static ColumnConstraintDeclaration DEFAULT
          Instancia que representa el constraint por DEFAUL (es decir no hay constraints por nulos y de primary key).
static ColumnConstraintDeclaration NOT_NULL
          Instancia que representa el constraint NOT NULL
static ColumnConstraintDeclaration PRIMARY_KEY
          Instancia que representa el constraint PRIMARY KEY
 
Constructor Summary
ColumnConstraintDeclaration(boolean notNull, boolean unique, boolean primaryKey)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean notNull()
          Retorna true si la columna no puede contener valores nulos.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_NULL

public static final ColumnConstraintDeclaration NOT_NULL
Instancia que representa el constraint NOT NULL


DEFAULT

public static final ColumnConstraintDeclaration DEFAULT
Instancia que representa el constraint por DEFAUL (es decir no hay constraints por nulos y de primary key).


PRIMARY_KEY

public static final ColumnConstraintDeclaration PRIMARY_KEY
Instancia que representa el constraint PRIMARY KEY

Constructor Detail

ColumnConstraintDeclaration

public ColumnConstraintDeclaration(boolean notNull,
                                   boolean unique,
                                   boolean primaryKey)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

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

notNull

public boolean notNull()
Retorna true si la columna no puede contener valores nulos.



Copyright © -2005 . All Rights Reserved.