|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuba.db.sql.language.ColumnConstraintDeclaration
public class ColumnConstraintDeclaration
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).
| 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 |
|---|
public static final ColumnConstraintDeclaration NOT_NULL
public static final ColumnConstraintDeclaration DEFAULT
public static final ColumnConstraintDeclaration PRIMARY_KEY
| Constructor Detail |
|---|
public ColumnConstraintDeclaration(boolean notNull,
boolean unique,
boolean primaryKey)
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean notNull()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||