33 lines
767 B
Java
33 lines
767 B
Java
package net.mindoverflow.webmarker.utils.sql;
|
|
|
|
import net.mindoverflow.webmarker.utils.sql.primitives.SQLColumn;
|
|
import net.mindoverflow.webmarker.utils.sql.primitives.SQLDataType;
|
|
|
|
public enum FDatabaseColumn
|
|
{
|
|
|
|
ALL(new SQLColumn("*"), null),
|
|
USERNAME(new SQLColumn("username"), SQLDataType.VARCHAR_128),
|
|
PASSWORD(new SQLColumn("password"), SQLDataType.VARCHAR_128),
|
|
USERID(new SQLColumn("userid"), SQLDataType.VARCHAR_128),
|
|
|
|
|
|
|
|
;
|
|
|
|
private final SQLColumn column;
|
|
private final SQLDataType type;
|
|
|
|
FDatabaseColumn(SQLColumn column, SQLDataType type)
|
|
{
|
|
this.column = column;
|
|
this.type = type;
|
|
}
|
|
|
|
public SQLColumn getColumn()
|
|
{ return column; }
|
|
|
|
public SQLDataType getDataType()
|
|
{ return type; }
|
|
}
|