|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.sqlparser.ColumnSpec
public class ColumnSpec
| Constructor Summary | |
|---|---|
ColumnSpec()
|
|
| Method Summary | |
|---|---|
void |
addAttribute(ColumnAttribute attr)
Adds an attribute to this column spec. |
void |
addDatatypeAttribute(ColumnAttribute attr)
Adds an attribute to the datatype of this colspec. |
String |
getAnnotation()
|
List |
getAttributes()
Returns a list of all attributes of this colspec. |
String |
getColumnName()
Returns the name of this column. |
String |
getColumnType()
Returns the data type for this column. |
String |
getCurrencyColumn()
|
List |
getDatatypeAttributes()
Returns the datatype attributes of this colspec. |
String |
getJavaType()
Returns the java type to which this column maps. |
String |
getLoadMethod()
Returns the method used when loading the custom type from the db. |
String |
getPeriodEndDateColumn()
|
String |
getPeriodFieldName()
|
String |
getStoreMethod()
Returns the method used when storing the type to the db. |
String |
getWeblogicColumnType()
|
boolean |
isNotNull()
Returns whether this column is not null. |
boolean |
isPeriodDefined()
|
boolean |
isPrimaryKey()
Returns whether this column is primary key. |
boolean |
isSkipInInterface()
|
boolean |
isUnique()
|
boolean |
isWeblogicColumnTypeDefined()
|
void |
setAnnotation(String annotation)
|
void |
setColumnName(String string)
Sets the name of this column. |
void |
setColumnType(String string)
Sets the data type for this column. |
void |
setCurrencyColumn(String currencyColumn)
|
void |
setIsPeriodDefined(boolean periodDefined)
|
void |
setJavaType(String type)
Sets the java type for this column. |
void |
setLoadMethod(String methodName)
Sets the method used when loading the custom type from the db. |
void |
setNotNull(boolean b)
Set whether this column is not null. |
void |
setPeriodEndDateColumn(String endDateColumn)
|
void |
setPeriodFieldName(String periodFieldName)
|
void |
setPrimaryKey(boolean b)
Set whether this column is primary key or not. |
void |
setSkipInInterface(boolean b)
|
void |
setStoreMethod(String methodName)
Sets the method used when storing the type to the db. |
void |
setUnique(boolean isUnique)
|
void |
setWeblogicColumnType(String weblogicColumnType)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnSpec()
| Method Detail |
|---|
public final String getColumnName()
public final void setColumnName(String string)
string - the name of this columnpublic final String getColumnType()
public final void setColumnType(String string)
string - the data typepublic final List getAttributes()
public final void addAttribute(ColumnAttribute attr)
attr - the attribute to addpublic final void addDatatypeAttribute(ColumnAttribute attr)
attr - the datatype attribute that should be addedpublic final List getDatatypeAttributes()
public final String getJavaType()
public final void setJavaType(String type)
type - the java type for this columnpublic final String getLoadMethod()
public final void setLoadMethod(String methodName)
methodName - the method used when loading the custom type from the dbpublic final String getStoreMethod()
public final void setStoreMethod(String methodName)
methodName - the method used when storing the type to the dbpublic final boolean isNotNull()
public final void setNotNull(boolean b)
b - flag indicating whether this column is not nullpublic final boolean isPrimaryKey()
public final void setPrimaryKey(boolean b)
b - flag indicating whether this column is primary keypublic boolean isUnique()
public void setUnique(boolean isUnique)
isUnique - The isUnique to set.public final String toString()
toString in class Objectpublic void setAnnotation(String annotation)
public String getAnnotation()
public String getCurrencyColumn()
public void setCurrencyColumn(String currencyColumn)
currencyColumn - The currencyColumn to set.public boolean isPeriodDefined()
public void setIsPeriodDefined(boolean periodDefined)
public String getPeriodFieldName()
public void setPeriodFieldName(String periodFieldName)
public String getPeriodEndDateColumn()
public void setPeriodEndDateColumn(String endDateColumn)
public boolean isSkipInInterface()
public void setSkipInInterface(boolean b)
public String getWeblogicColumnType()
public void setWeblogicColumnType(String weblogicColumnType)
public boolean isWeblogicColumnTypeDefined()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||