org.onemind.commons.java.sql
Class Field

java.lang.Object
  extended by org.onemind.commons.java.sql.Field

public class Field
extends java.lang.Object

A Field contains meta infomration of a field in the database table

Version:
$Id: Field.java,v 1.2 2004/08/26 12:33:18 thlee Exp $ $Name: $
Author:
TiongHiang Lee (thlee@onemindsoft.org)

Field Summary
private  java.lang.String _name
          the name *
private  int _type
          the sql type *
 
Constructor Summary
Field(java.lang.String name, int type)
          create a new field with name name and type type
 
Method Summary
 java.lang.String getName()
          return the name of the field
 int getType()
          get the type of the field
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_name

private java.lang.String _name
the name *


_type

private int _type
the sql type *

Constructor Detail

Field

public Field(java.lang.String name,
             int type)
create a new field with name name and type type

Parameters:
name - the name
type - the type
Method Detail

getName

public java.lang.String getName()
return the name of the field

Returns:
the name

getType

public int getType()
get the type of the field

Returns:
the type

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object