|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.devaki.nextobjects.workspace.models.columns.Column
This class is responsible for describing a Column object.
Constructor Summary | |
Column(Column pcolumn)
Construct a new column object by copying another column object |
|
Column(java.lang.String pName,
java.lang.String pCode,
ColumnType pType,
java.lang.String pSize,
java.lang.String pDefaultValue,
boolean pPrimaryKey,
boolean pRequired,
boolean pAutoIncrement,
boolean pUnique,
boolean pIndex,
java.lang.String pJavaName,
java.lang.String pJavaType,
java.lang.String pInheritance,
java.lang.String pInputValidator,
java.lang.String pJavaNamingMethod,
java.lang.String pDescription,
BaseClass pParent)
Construct a new column object |
Method Summary | |
java.lang.String |
getCode()
Return the code of the field |
java.lang.String |
getDefaultValue()
Return the default value of the field |
java.lang.String |
getDescription()
Get description |
CustomTreeNode |
getDynamicTreeNode()
Get the CustomTreeNode object associated |
static java.awt.datatransfer.DataFlavor |
getFieldFlavor()
Get the field flavor |
java.lang.String |
getInheritance()
Get inheritance |
java.util.Vector |
getInheritanceLinks()
Get inheritance |
java.lang.String |
getInputValidator()
Get input validator |
java.lang.String |
getJavaName()
Get the Java Name |
java.lang.String |
getJavaNamingMethod()
Get the Java Naming Method |
java.lang.String |
getJavaType()
Get the preferred Java Type |
java.lang.String |
getName()
Return the name of the field |
BaseClass |
getParent()
Return the torque-gui related to the current field |
java.lang.String |
getSize()
Return the length of the field |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor parFlavor)
Return the object to be used by the clipboard |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Return the flavors |
ColumnType |
getType()
Return the type of the field |
boolean |
isAutoIncrement()
Return if the field has auto incrementation or not |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor parFlavor)
Is the data supported by this class |
boolean |
isForeignKey()
Check if it is a FK |
boolean |
isIndex()
Is the constraint to be indexed |
boolean |
isPk()
Return if the field is primary key or not |
boolean |
isRequired()
Return if the field is required or not |
boolean |
isUnique()
Do the column have a unique constraint |
void |
lostOwnership(java.awt.datatransfer.Clipboard parClipboard,
java.awt.datatransfer.Transferable parTransferable)
Need to be defined |
void |
setAutoIncrement(boolean pAutoIncrement)
Define if the field has auto incrementation |
void |
setCode(java.lang.String pCode)
Give a code to the field |
void |
setDefaultValue(java.lang.String pDefaultValue)
Give a default value to the field |
void |
setDescription(java.lang.String pDescription)
Set description |
void |
setDynamicTreeNode(CustomTreeNode pNode)
Defines the CustomTreeNode associated to the current object |
void |
setForeignKey(boolean b)
Set if is a FK |
void |
setIndex(boolean b)
Set if there is an index to be created for this column |
void |
setInheritance(java.lang.String pInheritance)
Set inheritance |
void |
setInheritanceLinks(java.util.Vector pInheritanceLinks)
Set inheritance links |
void |
setInputValidator(java.lang.String pInputValidator)
Set input validator |
void |
setJavaName(java.lang.String pJavaName)
Set the Java Name |
void |
setJavaNamingMethod(java.lang.String pJavaNamingMethod)
Set java naming method |
void |
setJavaType(java.lang.String pJavaType)
Set the preferred Java Type |
void |
setName(java.lang.String pName)
Give a name to the field |
void |
setParent(BaseClass pParent)
Set the torque-gui related to the current field |
void |
setPrimaryKey(boolean pPrimaryKey)
Define if the field is primary key |
void |
setRequired(boolean pRequired)
Define if the field is required |
void |
setSize(java.lang.String pSize)
Give a length to the field |
void |
setType(ColumnType pType)
Give a type to the field |
void |
setUnique(boolean b)
Set if this column is unique in the class. |
java.lang.String |
toString()
Returns a string representation of the field |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Column(java.lang.String pName, java.lang.String pCode, ColumnType pType, java.lang.String pSize, java.lang.String pDefaultValue, boolean pPrimaryKey, boolean pRequired, boolean pAutoIncrement, boolean pUnique, boolean pIndex, java.lang.String pJavaName, java.lang.String pJavaType, java.lang.String pInheritance, java.lang.String pInputValidator, java.lang.String pJavaNamingMethod, java.lang.String pDescription, BaseClass pParent)
pName
- the human readable namepCode
- the code aka idpType
- the typepSize
- the optional lengthpDefaultValue
- the default valuepPrimaryKey
- is PKpRequired
- is Req.pAutoIncrement
- is autoincrmeentpUnique
- is visiblepIndex
- is indexpJavaName
- java namepJavaType
- java typepInheritance
- the inheritancepInputValidator
- the input validatorpJavaNamingMethod
- java naming methodpDescription
- the descriptionpParent
- the owner classpublic Column(Column pcolumn)
pcolumn
- the columnMethod Detail |
public final java.lang.String toString()
public final void setDescription(java.lang.String pDescription)
pDescription
- the descriptionpublic final void setJavaNamingMethod(java.lang.String pJavaNamingMethod)
pJavaNamingMethod
- the java naming methodpublic final void setInputValidator(java.lang.String pInputValidator)
pInputValidator
- the input validatorpublic final void setInheritance(java.lang.String pInheritance)
pInheritance
- the inheritancepublic final void setInheritanceLinks(java.util.Vector pInheritanceLinks)
pInheritanceLinks
- inheritance linkspublic final void setJavaType(java.lang.String pJavaType)
pJavaType
- the java typepublic final void setJavaName(java.lang.String pJavaName)
pJavaName
- the java namepublic final void setName(java.lang.String pName)
pName
- the human readeable namepublic final void setCode(java.lang.String pCode)
pCode
- the codepublic final void setType(ColumnType pType)
pType
- the data typepublic final void setSize(java.lang.String pSize)
pSize
- the optional column lengthpublic final void setDefaultValue(java.lang.String pDefaultValue)
pDefaultValue
- the default valuepublic final void setPrimaryKey(boolean pPrimaryKey)
pPrimaryKey
- is PKpublic final void setRequired(boolean pRequired)
pRequired
- is Req.public final void setAutoIncrement(boolean pAutoIncrement)
pAutoIncrement
- has auto incrementationpublic final void setParent(BaseClass pParent)
pParent
- the parent classpublic final void setDynamicTreeNode(CustomTreeNode pNode)
pNode
- the nodepublic final java.lang.String getDescription()
public final java.lang.String getJavaNamingMethod()
public final java.lang.String getInputValidator()
public final java.lang.String getInheritance()
public final java.util.Vector getInheritanceLinks()
public final java.lang.String getJavaType()
public final java.lang.String getJavaName()
public final java.lang.String getName()
public final java.lang.String getCode()
public final ColumnType getType()
public final java.lang.String getSize()
public final java.lang.String getDefaultValue()
public final boolean isPk()
public final boolean isRequired()
public final boolean isAutoIncrement()
public final BaseClass getParent()
public final CustomTreeNode getDynamicTreeNode()
public final java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public final boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor parFlavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
parFlavor
- the data flavor
public final java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor parFlavor) throws java.awt.datatransfer.UnsupportedFlavorException
getTransferData
in interface java.awt.datatransfer.Transferable
parFlavor
- the data flavor
java.awt.datatransfer.UnsupportedFlavorException
- clipboard exceptionpublic final void lostOwnership(java.awt.datatransfer.Clipboard parClipboard, java.awt.datatransfer.Transferable parTransferable)
parClipboard
- parent clipboardparTransferable
- the transferable objectpublic final boolean isForeignKey()
public final void setForeignKey(boolean b)
b
- isFKpublic final void setIndex(boolean b)
b
- is indexpublic final void setUnique(boolean b)
b
- isUniquepublic final boolean isUnique()
public final boolean isIndex()
public static java.awt.datatransfer.DataFlavor getFieldFlavor()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |