com.altair.hwm.database.dbmodel
Class HWMClassConstraints

java.lang.Object
  extended by com.altair.hwm.database.dbmodel.HWMClassConstraints

public class HWMClassConstraints
extends java.lang.Object

Title: HWMClassConstraints

Description: This class represents the constraints set on a class

Company: Altair Engineering, Inc.


Constructor Summary
HWMClassConstraints()
          Constructor
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
          Add property change listener
 void Export(org.jdom.Element elemConst)
          Creates XML element representation for this constraint class
 java.lang.String GetSQLRepresentation()
          Create and return the SQL string for the constraints
 java.util.Vector GetUniqueConstraints()
          Gets the vector of vector of unique attribs
 void removePropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
          Remove property change listener
 void Resolve(HWMClass hwmClass, org.jdom.Element elemConst)
          Recreates the constraints
 void SetUniqueConstraints(java.util.Vector vectUniqueConst)
          Sets the vector of vector of unique attribs
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMClassConstraints

public HWMClassConstraints()
Constructor

Method Detail

SetUniqueConstraints

public void SetUniqueConstraints(java.util.Vector vectUniqueConst)
Sets the vector of vector of unique attribs

Parameters:
vectUniqueConst - The vector of vector of attributes that need to be unique

GetUniqueConstraints

public java.util.Vector GetUniqueConstraints()
Gets the vector of vector of unique attribs

Returns:
Vector The vector of vector of attributes that need to be unique

GetSQLRepresentation

public java.lang.String GetSQLRepresentation()
Create and return the SQL string for the constraints

Returns:
String The SQL representation for the constraints

Export

public void Export(org.jdom.Element elemConst)
Creates XML element representation for this constraint class

Parameters:
elemConst - The element representing this constraint class

Resolve

public void Resolve(HWMClass hwmClass,
                    org.jdom.Element elemConst)
             throws java.lang.Exception
Recreates the constraints

Parameters:
hwmClass - The class for which this is a constraint
elemConst - The element representing this class
Throws:
java.lang.Exception

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
Add property change listener

Parameters:
propChangeListener - The listener for property change events fired by this class

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
Remove property change listener

Parameters:
propChangeListener - The listener to be removed