//2012-04-15 johnpfeiffer
public class SQLColumn
{
// public enum LABELS { FIELD , TYPE , NULL , KEY , DEFAULT , EXTRA }
private String field = null;
private String type = null;
private String nullable = null;
private String key = null;
private String defaultValue = null;
private String extra = null;
SQLColumn( String field , String type , String nullable , String key , String defaultValue , String extra )
{
if( field != null && !field.isEmpty() && type != null && !type.isEmpty() && key != null && defaultValue != null && extra != null )
{
this.field = field;
this.type = type;
this.nullable = nullable;
this.key = key;
this.defaultValue = defaultValue;
this.extra = extra;
}else
{ throw new IllegalArgumentException( "field,type,nullable,key,defaultValue,extra cannot be null or field,type" );
}
}
protected String getField()
{ return field;
}
protected String getType()
{ return type;
}
protected String getNullable()
{ return nullable;
}
protected String getKey()
{ return key;
}
protected String getDefaultValue()
{ return defaultValue;
}
protected String getExtra()
{ return extra;
}
} //end class