|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gswing.components.input.dbcreator.DbField
public class DbField
Purpose: Represents a database field.
| Constructor Summary | |
|---|---|
DbField(String name,
String type)
Constructor. |
|
DbField(String name,
String type,
boolean key)
Constructor. |
|
DbField(String name,
String type,
boolean primaryKey,
boolean canBeNull)
Constructor. |
|
DbField(String name,
String type,
boolean primaryKey,
boolean canBeNull,
ForeignKey foreignKey)
Constructor. |
|
DbField(String name,
String type,
boolean primaryKey,
ForeignKey foreignKey)
Constructor. |
|
DbField(String name,
String type,
ForeignKey foreignKey)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
canBeNull()
Can this field be null? |
ForeignKey |
getForeignKey()
Get the foreign key of the field. |
String |
getName()
Get this field's name. |
String |
getType()
Get this field's type. |
boolean |
isPrimaryKey()
Is this field a primary key?. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbField(String name,
String type,
boolean primaryKey,
boolean canBeNull)
name - The field name.type - The field type.primaryKey - Is this field a primary key?.canBeNull - Can this field be null?
public DbField(String name,
String type,
boolean key)
name - The field name.type - The field type.key - Is this field a primary key?.
public DbField(String name,
String type,
ForeignKey foreignKey)
name - The field name.type - The field type.foreignKey - The field foreign key.
public DbField(String name,
String type,
boolean primaryKey,
ForeignKey foreignKey)
name - The field name.type - The field type.primaryKey - Is this a primary key?foreignKey - The field foreign key.
public DbField(String name,
String type,
boolean primaryKey,
boolean canBeNull,
ForeignKey foreignKey)
name - The field name.type - The field type.primaryKey - Is this field a primary key?canBeNull - Can this field be null?foreignKey - The field foreign key.
public DbField(String name,
String type)
name - The field name.type - The field type.| Method Detail |
|---|
public String getName()
public String getType()
public boolean isPrimaryKey()
public boolean canBeNull()
public ForeignKey getForeignKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||