|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.jdbc2xml.schema.impl.ColumnHelper
public abstract class ColumnHelper
Helper functions to play with ColumnInfo objects.
Constructor Summary | |
---|---|
ColumnHelper()
|
Method Summary | |
---|---|
static ColumnInfo |
adaptDefault(ColumnInfo ci,
String defaultValue)
Return a column information with the given default value. |
static ColumnInfo |
adaptNullability(ColumnInfo ci,
boolean nullable)
Return a column information with the given nullability set. |
static ColumnInfo |
rename(ColumnInfo ci,
String name)
Return a column information with the given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnHelper()
Method Detail |
---|
public static ColumnInfo adaptNullability(ColumnInfo ci, boolean nullable)
ci
- The original column information.nullable
- The nullable flag to set to the returned object.
public static ColumnInfo adaptDefault(ColumnInfo ci, String defaultValue)
ci
- The original column information.defaultValue
- The default value to set to the returned object.
public static ColumnInfo rename(ColumnInfo ci, String name)
ci
- The original column information.name
- The name to set to the returned object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |