net.sf.dewdrop.util
Class SqlNameToken
java.lang.Object
net.sf.dewdrop.util.SqlNameToken
- public class SqlNameToken
- extends Object
This class uses a string conversion heuristic to create names following the java convention (e.g.
'thisIsATableName') into names SQL name tokens following the most common sql convention (e.g.
'this_is_a_table_name').
- Author:
- Les A. Hazlewood
NOT_NULL
public static final int NOT_NULL
- See Also:
- Constant Field Values
UNIQUE
public static final int UNIQUE
- See Also:
- Constant Field Values
CHECK
public static final int CHECK
- See Also:
- Constant Field Values
PRIMARY_KEY
public static final int PRIMARY_KEY
- See Also:
- Constant Field Values
FOREIGN_KEY
public static final int FOREIGN_KEY
- See Also:
- Constant Field Values
SEQUENCE
public static final int SEQUENCE
- See Also:
- Constant Field Values
INDEX
public static final int INDEX
- See Also:
- Constant Field Values
SqlNameToken
public SqlNameToken(String token)
create
public static String create(String tableName,
String columnName,
int type)
toString
public String toString()