org.modelsphere.sms.or.db
Class DbORPrimaryUnique

java.lang.Object
  extended by PersistentObject
      extended by org.modelsphere.jack.baseDb.db.DbObject
          extended by org.modelsphere.jack.baseDb.db.DbSemanticalObject
              extended by org.modelsphere.sms.db.DbSMSSemanticalObject
                  extended by org.modelsphere.sms.db.DbSMSConstraint
                      extended by org.modelsphere.sms.or.db.DbORConstraint
                          extended by org.modelsphere.sms.or.db.DbORPrimaryUnique
Direct Known Subclasses:
DbIBMPrimaryUnique, DbINFPrimaryUnique, DbORAPrimaryUnique

public abstract class DbORPrimaryUnique
extends DbORConstraint

Direct subclass(es)/subinterface(s) : DbORAPrimaryUnique, DbIBMPrimaryUnique, DbINFPrimaryUnique, DbGEPrimaryUnique.
Composites : none.
Components : DbSMSObjectImport.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.modelsphere.jack.baseDb.db.DbObject
DbObject.ComponentIterator
 
Field Summary
static MetaRelationN fAssociationDependencies
           
static MetaRelationN fAssociationReferences
           
static MetaRelationN fColumns
           
static MetaRelation1 fIndex
           
static MetaField fPrimary
           
static MetaClass metaClass
           
 
Fields inherited from class org.modelsphere.sms.db.DbSMSSemanticalObject
fObjectImports, fSourceLinks, fSubCopies, fSuperCopy, fTargetLinks, fUmlConstraints, fUmlStereotype
 
Fields inherited from class org.modelsphere.jack.baseDb.db.DbSemanticalObject
fAdminAccessList, fAlias, fDescription, fName, fPhysicalName, fWriteAccessList
 
Fields inherited from class org.modelsphere.jack.baseDb.db.DbObject
ACCESS_GRANTED, ACCESS_NOT_GRANTED, fComponents, fComposite, fCreationTime, fModificationTime, fUdfValues, fValidationStatus, LONG_FORM, SHORT_FORM, VALIDATION_ERROR, VALIDATION_OK, VALIDATION_WARNING, writeAccess
 
Constructor Summary
DbORPrimaryUnique()
          Parameter-less constructor.
DbORPrimaryUnique(DbObject composite)
          Creates an instance of DbORPrimaryUnique.
 
Method Summary
 void addToAssociationDependencies(DbORAssociationEnd value)
          Adds an element to the list of dependencies associated to a DbORPrimaryUnique's instance.
 void addToColumns(DbORColumn value)
          Adds an element to the list of columns associated to a DbORPrimaryUnique's instance.
 DbRelationN getAssociationDependencies()
          Gets the list of dependencies associated to a DbORPrimaryUnique's instance.
 DbRelationN getAssociationReferences()
          Gets the list of referenced bys associated to a DbORPrimaryUnique's instance.
 DbRelationN getColumns()
          Gets the list of columns associated to a DbORPrimaryUnique's instance.
 DbORIndex getIndex()
          Gets the index object associated to a DbORPrimaryUnique's instance.
 java.lang.Boolean getPrimary()
          Deprecated. use isPrimary() method instead
 javax.swing.Icon getSemanticalIcon(int form)
           
static void initMeta()
          For internal use only.
 boolean isPrimary()
          Tells whether a DbORPrimaryUnique's instance is primary or not.
 void removeFromAssociationDependencies(DbORAssociationEnd value)
          Removes an element from the list of dependencies associated to a DbORPrimaryUnique's instance.
 void removeFromColumns(DbORColumn value)
          Removes an element from the list of columns associated to a DbORPrimaryUnique's instance.
 void set(MetaField metaField, java.lang.Object value)
           
 void set(MetaRelationN relation, DbObject neighbor, int op)
           
 void setAssociationDependencies(DbORAssociationEnd value, int op)
          Adds an element to or removes an element from the list of dependencies associated to a DbORPrimaryUnique's instance.
 void setColumns(DbORColumn value, int op)
          Adds an element to or removes an element from the list of columns associated to a DbORPrimaryUnique's instance.
 void setIndex(DbORIndex value)
          Sets the index object associated to a DbORPrimaryUnique's instance.
 void setPrimary(java.lang.Boolean value)
          Sets the "primary" property of a DbORPrimaryUnique's instance.
 
Methods inherited from class org.modelsphere.sms.or.db.DbORConstraint
getSecurityMask
 
Methods inherited from class org.modelsphere.sms.db.DbSMSSemanticalObject
addToSourceLinks, addToTargetLinks, addToUmlConstraints, getObjectImports, getSourceLinks, getSubCopies, getSuperCopy, getTargetLinks, getUmlConstraints, getUmlStereotype, removeFromSourceLinks, removeFromTargetLinks, removeFromUmlConstraints, setSourceLinks, setSuperCopy, setTargetLinks, setUmlConstraints, setUmlStereotype
 
Methods inherited from class org.modelsphere.jack.baseDb.db.DbSemanticalObject
findComponentByPhysicalName, getAdminAccessList, getAlias, getDescription, getName, getPhysicalName, getWriteAccessList, matches, setAlias, setDescription, setName, setPhysicalName
 
Methods inherited from class org.modelsphere.jack.baseDb.db.DbObject
addDbRefreshListener, addDbRefreshListener, basicReinsert, basicSet, basicSet, buildFullNameString, buildFullNameString, componentTree, componentTree, componentTree, copyComponent, createComponent, createComponent, createRAMRelN, deepCopy, deepCopy, doDeleteAction, findComponentByName, findComponentByName, findMatchingObject, generateEDCTimestamp, get, get, get, getAccordingToStatus, getComponents, getComposite, getCompositeOfType, getCreationTime, getDb, getDependencyRelations, getEDCTimestamp, getFullDisplayName, getId, getMatchingObject, getMetaClass, getMinCard, getModificationTime, getNbNeighbors, getNextTs, getOld, getProject, getSemanticalName, getTransStatus, getTs, getUDF, getUdfValues, getValidationStatus, hasAdminAccess, hasChanged, hasField, hasWriteAccess, isAddedAndRemoved, isAlive, isDeletable, isDescendingFrom, isHugeRelN, load, load, reinsert, remove, removeDbRefreshListener, save, set, setComposite, setMatchingObject, setModificationTime, setRelationNN, setRelationNN, setValidationStatus, toString, valuesAreEqual
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fPrimary

public static final MetaField fPrimary

fAssociationDependencies

public static final MetaRelationN fAssociationDependencies

fAssociationReferences

public static final MetaRelationN fAssociationReferences

fIndex

public static final MetaRelation1 fIndex

fColumns

public static final MetaRelationN fColumns

metaClass

public static final MetaClass metaClass
Constructor Detail

DbORPrimaryUnique

public DbORPrimaryUnique()
Parameter-less constructor. Required by Java Beans Conventions.


DbORPrimaryUnique

public DbORPrimaryUnique(DbObject composite)
                  throws DbException
Creates an instance of DbORPrimaryUnique.

Parameters:
composite - the object which will contain the newly-created instance
Throws:
DbException
Method Detail

initMeta

public static void initMeta()
For internal use only.


getSemanticalIcon

public final javax.swing.Icon getSemanticalIcon(int form)
                                         throws DbException
Overrides:
getSemanticalIcon in class DbObject
Parameters:
form - int
Returns:
icon
Throws:
DbException

setPrimary

public final void setPrimary(java.lang.Boolean value)
                      throws DbException
Sets the "primary" property of a DbORPrimaryUnique's instance.

Parameters:
value - the "primary" property
Throws:
DbException

setAssociationDependencies

public final void setAssociationDependencies(DbORAssociationEnd value,
                                             int op)
                                      throws DbException
Adds an element to or removes an element from the list of dependencies associated to a DbORPrimaryUnique's instance.

Parameters:
value - an element to be added to or removed from the list.
op - Either Db.ADD_TO_RELN or Db.REMOVE_FROM_RELN
Throws:
DbException

addToAssociationDependencies

public final void addToAssociationDependencies(DbORAssociationEnd value)
                                        throws DbException
Adds an element to the list of dependencies associated to a DbORPrimaryUnique's instance.

Parameters:
value - the element to be added.
Throws:
DbException

removeFromAssociationDependencies

public final void removeFromAssociationDependencies(DbORAssociationEnd value)
                                             throws DbException
Removes an element from the list of dependencies associated to a DbORPrimaryUnique's instance.

Parameters:
value - the element to be removed.
Throws:
DbException

setIndex

public final void setIndex(DbORIndex value)
                    throws DbException
Sets the index object associated to a DbORPrimaryUnique's instance.

Parameters:
value - the index object to be associated
Throws:
DbException

setColumns

public final void setColumns(DbORColumn value,
                             int op)
                      throws DbException
Adds an element to or removes an element from the list of columns associated to a DbORPrimaryUnique's instance.

Parameters:
value - an element to be added to or removed from the list.
op - Either Db.ADD_TO_RELN or Db.REMOVE_FROM_RELN
Throws:
DbException

addToColumns

public final void addToColumns(DbORColumn value)
                        throws DbException
Adds an element to the list of columns associated to a DbORPrimaryUnique's instance.

Parameters:
value - the element to be added.
Throws:
DbException

removeFromColumns

public final void removeFromColumns(DbORColumn value)
                             throws DbException
Removes an element from the list of columns associated to a DbORPrimaryUnique's instance.

Parameters:
value - the element to be removed.
Throws:
DbException

set

public void set(MetaField metaField,
                java.lang.Object value)
         throws DbException
Overrides:
set in class DbORConstraint
Throws:
DbException

set

public void set(MetaRelationN relation,
                DbObject neighbor,
                int op)
         throws DbException
Overrides:
set in class DbORConstraint
Throws:
DbException

getPrimary

public final java.lang.Boolean getPrimary()
                                   throws DbException
Deprecated. use isPrimary() method instead

Gets the "primary" property's Boolean value of a DbORPrimaryUnique's instance.

Returns:
the "primary" property's Boolean value
Throws:
DbException

isPrimary

public final boolean isPrimary()
                        throws DbException
Tells whether a DbORPrimaryUnique's instance is primary or not.

Returns:
boolean
Throws:
DbException

getAssociationDependencies

public final DbRelationN getAssociationDependencies()
                                             throws DbException
Gets the list of dependencies associated to a DbORPrimaryUnique's instance.

Returns:
the list of dependencies.
Throws:
DbException

getAssociationReferences

public final DbRelationN getAssociationReferences()
                                           throws DbException
Gets the list of referenced bys associated to a DbORPrimaryUnique's instance.

Returns:
the list of referenced bys.
Throws:
DbException

getIndex

public final DbORIndex getIndex()
                         throws DbException
Gets the index object associated to a DbORPrimaryUnique's instance.

Returns:
the index object
Throws:
DbException

getColumns

public final DbRelationN getColumns()
                             throws DbException
Gets the list of columns associated to a DbORPrimaryUnique's instance.

Returns:
the list of columns.
Throws:
DbException


Open ModelSphere 2007. All Rights Reserved.