| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnl.knaw.dans.common.dbflib.Field
public class Field
Represents a field description in a table.
| Constructor Summary | |
|---|---|
Field(String name,
      Type type)
Creates a new Field object.  | 
|
Field(String name,
      Type type,
      int length)
Creates a new Field object.  | 
|
Field(String name,
      Type type,
      int length,
      int decimalCount)
Creates a new Field object.  | 
|
| Method Summary | |
|---|---|
 boolean | 
equals(Object other)
 | 
 int | 
getDecimalCount()
Returns the decimal count of the field, or -1 if not applicable  | 
 int | 
getLength()
Returns the length of the field, or -1 if not applicable  | 
 String | 
getName()
Returns the name of the field.  | 
 Type | 
getType()
Returns the type of the field  | 
 int | 
hashCode()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Field(String name,
             Type type)
name - the name of the fieldtype - the type of the field
public Field(String name,
             Type type,
             int length)
name - the name of the fieldtype - the type of the fieldlength - the length of the field
public Field(String name,
             Type type,
             int length,
             int decimalCount)
length and decimalCount do not apply to
 all field types.
name - name of the fieldtype - the type of the fieldlength - the length of the fielddecimalCount - the decimal count of the field.| Method Detail | 
|---|
public String getName()
public Type getType()
public int getLength()
public int getDecimalCount()
public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||