|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.catalan.transform.text.SqlTable.Field
A single field in an SQL table.
Constructor Summary | |
SqlTable.Field()
Creates a new instance of Field. |
|
SqlTable.Field(boolean usePrimitiveType,
java.util.Map customTypes)
Creates a new instance of Field with the specified primitive types policy. |
Method Summary | |
java.lang.String |
getCheckCondition()
Retrieves the CHECK condition for this field. |
java.lang.String |
getDefaultValue()
Retrieves the default value for this field. |
java.lang.String |
getJavaType()
Retrieves the Java data type for this field. |
java.lang.String |
getName()
Retrieves the name of this field. |
PropertyName |
getNameProperty()
Retrieves the name of this field as a PropertyName object. |
java.lang.String |
getSqlType()
Retrieves the SQL data type for this field. |
boolean |
isNullable()
Determines if this field can contain null values |
boolean |
isUnique()
Determines if this field must contain a unique value among all fields in the table. |
void |
setCheckCondition(java.lang.String check)
Assigns the CHECK condition for this field. |
void |
setDefaultValue(java.lang.String defaultValue)
Assigns the default value for this field. |
void |
setName(java.lang.String name)
Assigns the name of this field. |
void |
setNullable(boolean nullable)
Assigns the nullability of this field. |
void |
setSqlType(java.lang.String sqlType)
Assigns the SQL data type for this field. |
void |
setUnique(boolean unique)
Assigns unique nature of field in its table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SqlTable.Field()
public SqlTable.Field(boolean usePrimitiveType, java.util.Map customTypes)
usePrimitiveType
- if true, use primitive types, not object
wrappers.customTypes
- a Map of SQL types to Java types, or null if no
custom typesMethod Detail |
public java.lang.String getCheckCondition()
public void setCheckCondition(java.lang.String check)
check
- field CHECK conditionpublic java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue
- field DEFAULT valuepublic java.lang.String getName()
public PropertyName getNameProperty()
public void setName(java.lang.String name)
name
- field namepublic boolean isNullable()
public void setNullable(boolean nullable)
nullable
- true if the field can contain a null valuepublic java.lang.String getSqlType()
public java.lang.String getJavaType()
Object.class
.
public void setSqlType(java.lang.String sqlType)
sqlType
- SQL data typepublic boolean isUnique()
public void setUnique(boolean unique)
unique
- true if field must be unique in table
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |