|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.database.dbmodel.HWMAttribute
com.altair.hwm.database.dbmodel.HWMForeignAttribute
public class HWMForeignAttribute
Title: HWMForeignAttribute
Description: This class represents attributes that point to other classes i.e. foreign keys.
Company: Altair Engineering, Inc.
Field Summary | |
---|---|
static java.lang.String |
PROP_ATTRIB_FGN
The prop name for the event fired when the foreign attribute is set |
Fields inherited from class com.altair.hwm.database.dbmodel.HWMAttribute |
---|
PROP_ATTRIB_CONST, PROP_ATTRIB_DISPLAY, PROP_ATTRIB_NAME, PROP_ATTRIB_TYPE |
Method Summary | |
---|---|
void |
Export(org.jdom.Element elemAttrib)
Creates XML element representation for this attribute |
HWMAttribute |
GetForeignAttribute()
Get the foreign attribute |
java.lang.String |
GetName()
Gets the name of the attribute |
java.lang.String |
GetType()
Gets the type of the attribute |
void |
Resolve(org.jdom.Element elemAttrib)
Resolves the foreign attribute. |
void |
SetDefaultValue(java.lang.Object objDefValue)
Overrides the SetDefaultValue method to prohibit any user from associating the foreign key with a default value |
void |
SetForeignAttribute(HWMAttribute hwmAttribute)
Set the foreign attribute |
void |
SetType(java.lang.String strType)
This method does nothing |
Methods inherited from class com.altair.hwm.database.dbmodel.HWMAttribute |
---|
addPropertyChangeListener, addVetoableChangeListener, GetConstraints, GetDisplayName, GetHWMClass, GetSQLRepresentation, Import, IsEditable, IsVisible, propertyChange, removePropertyChangeListener, removeVetoableChangeListener, SetDisplayName, SetEditable, SetName, SetVisible, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_ATTRIB_FGN
Method Detail |
---|
public java.lang.String GetName()
GetName
in class HWMAttribute
public HWMAttribute GetForeignAttribute()
public void SetForeignAttribute(HWMAttribute hwmAttribute)
hwmAttribute
- The foreign attribute this points topublic java.lang.String GetType() throws java.lang.Exception
GetType
in class HWMAttribute
java.lang.Exception
- If the attribute was not initializedpublic void SetType(java.lang.String strType)
SetType
in class HWMAttribute
strType
- Type of this attribute.
java.lang.Exception
- Cannot set the type for a foreign attributepublic void SetDefaultValue(java.lang.Object objDefValue)
bNumeric
- If numeric then true else falsepublic void Export(org.jdom.Element elemAttrib)
Export
in class HWMAttribute
elemAttrib
- The element representing this attributepublic void Resolve(org.jdom.Element elemAttrib) throws java.lang.Exception
elemAttrib
- The element representing this attribute
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |