com.dbmain.jidbm
Class DBMConnection

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConnection

public class DBMConnection
extends DBMGenericObject

The DBMConnection class represents connection objects of the DB-MAIN repository.


Field Summary
static java.lang.String CON_COPY
          Constant of field type: Copy link between two schemas.
static java.lang.String CON_DIC
          Constant of field type: Report link between a schema and a file.
static java.lang.String CON_GEN
          Constant of field type: Generation link between a schema and a file.
static java.lang.String CON_INTEG
          Constant of field type: Integration link between two products.
static java.lang.String CON_XTR
          Constant of field type: Extract link between a file and a schema.
 
Fields inherited from class com.dbmain.jidbm.DBMGenericObject
ALLPARENTS, CLUSTER, CO_ATTRIBUTE, COLLECTION, CONNECTION, CONS_PU, CONS_RES, CONSTRAINT, CONSUMPTION, ELEMENT, ENTITY_TYPE, ENVIRONMENT, ETROUND, ETSHADOW, ETSQUARE, GRAPHCOUPLE, GROUP, HAVESEL, HIDEASSOCIATION, HIDEATT, HIDECTRLFLOW, HIDEEXTEND, HIDEGENACT, HIDEGENUC, HIDEGR, HIDEINCLUDE, HIDENEWADD, HIDENOTE, HIDEOBJFLOW, HIDEPRIMID, HIDEPROD, HIDEPU, HIDESTEREOTYPE, ISASTRAIGHT, LOCK_USED, MARK1, MARK2, MARK3, MARK4, MARK5, MEMBER_CST, META_OBJECT, META_PROPERTY, METH_USED, NN_NOTE, NOTE, PROC_UNIT, PROCESS_TITLE, PROD_SET, RE_ISA, REJECTED, REL_ELEMENT, REL_TYPE, RESOURCE, ROLE, RTROUND, RTSHADOW, RTSQUARE, SCHEMA, SELECT, SHOWTYPEATT, SI_ATTRIBUTE, STATE, SUB_TYPE, SYSTEM, TEXT, TEXT_LINE, UMLCENTER, UMLCENTERDOWN, UMLCENTERUP, UMLLEFTCENTER, UMLLEFTDOWN, UMLLEFTUP, UMLRIGHTCENTER, UMLRIGHTDOWN, UMLRIGHTUP, USER_OBJECT, USER_VIEW, WITHOUT_SELECT
 
Constructor Summary
DBMConnection(int id)
          Creates a new instance of the DBMConnection class representing the connection identified by id and the current project in DB-MAIN.
DBMConnection(int id, long sysid)
          Creates a new instance of the DBMConnection class representing the connection identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void deleteConnection()
          Deletes the connection of the DB-MAIN repository represented by the current DBMConnection instance.
 DBMProduct getFromProduct()
          Returns the product of the current connection.
 short getSequenceNumber()
          Returns the sequence number of the current connection.
 DBMProduct getToProduct()
          Returns the product of the current connection.
 java.lang.String getType()
          Returns the type of the current connection.
 void removeFromProduct()
          Removes the product attached to the current connection in the DB-MAIN repository.
 void removeToProduct()
          Removes the product attached to the current connection in the DB-MAIN repository.
 void setSequenceNumber(short val)
          Updates the value of sequence number in the current connection in the DB-MAIN repository.
 void setType(java.lang.String val)
          Updates the value of type in the current connection in the DB-MAIN repository.
 
Methods inherited from class com.dbmain.jidbm.DBMGenericObject
addFirstNoteRelation, addFirstState, addFirstUserObject, addNextNoteRelation, addNextState, addNextUserObject, createNote, createNoteRelation, deleteGenericObject, equals, getFirstNoteRelation, getFirstState, getFirstUserObject, getFlag, getLastNoteRelation, getLastState, getLastUserObject, getMetaPropertyBooleanListValue, getMetaPropertyBooleanValue, getMetaPropertyCharListValue, getMetaPropertyCharValue, getMetaPropertyDoubleListValue, getMetaPropertyDoubleValue, getMetaPropertyIntListValue, getMetaPropertyIntValue, getMetaPropertyListValue, getMetaPropertyStringListValue, getMetaPropertyStringValue, getMetaPropertyValue, getNextNoteRelation, getNextState, getNextUserObject, getObjectIdentifier, getObjectType, getObjectTypeName, getPreviousNoteRelation, getPreviousState, getPreviousUserObject, getProjectIdentifier, hashCode, isAttribute, isCluster, isCollection, isCompoundAttribute, isConcreteObject, isConnection, isConstraint, isConstraintMember, isConsumption, isDataObject, isElement, isElementRelation, isEntityRelationshipType, isEntityType, isEnvironment, isFlagConstant, isGroup, isMetaObject, isMetaProperty, isNote, isNoteRelation, isProcessingUnit, isProcessingUnitCardinality, isProduct, isProductSet, isProject, isRelationshipType, isResource, isResourceCardinality, isResourceSubType, isRole, isSchema, isSimpleAttribute, isState, isSubType, isText, isTextLine, isUserObject, isUserView, removeNoteRelation, removeState, removeUserObject, setFlag, setFlagConstant, setMetaPropertyBooleanListValue, setMetaPropertyBooleanValue, setMetaPropertyCharListValue, setMetaPropertyCharValue, setMetaPropertyDoubleListValue, setMetaPropertyDoubleValue, setMetaPropertyIntListValue, setMetaPropertyIntValue, setMetaPropertyListValue, setMetaPropertyStringListValue, setMetaPropertyStringValue, setMetaPropertyValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CON_COPY

public static final java.lang.String CON_COPY
Constant of field type: Copy link between two schemas.

See Also:
Constant Field Values

CON_INTEG

public static final java.lang.String CON_INTEG
Constant of field type: Integration link between two products.

See Also:
Constant Field Values

CON_XTR

public static final java.lang.String CON_XTR
Constant of field type: Extract link between a file and a schema.

See Also:
Constant Field Values

CON_GEN

public static final java.lang.String CON_GEN
Constant of field type: Generation link between a schema and a file.

See Also:
Constant Field Values

CON_DIC

public static final java.lang.String CON_DIC
Constant of field type: Report link between a schema and a file.

See Also:
Constant Field Values
Constructor Detail

DBMConnection

public DBMConnection(int id,
                     long sysid)
Creates a new instance of the DBMConnection class representing the connection identified by id and sysid in the DB-MAIN repository.

Parameters:
id - the object identifier of a connection.
sysid - the system identifier of a connection.

DBMConnection

public DBMConnection(int id)
Creates a new instance of the DBMConnection class representing the connection identified by id and the current project in DB-MAIN.

Parameters:
id - the object identifier of a connection.
Method Detail

getType

public java.lang.String getType()
Returns the type of the current connection.

Returns:
the String value of the field type.

setType

public void setType(java.lang.String val)
Updates the value of type in the current connection in the DB-MAIN repository.

Parameters:
val - the new String value of the field Type.

getSequenceNumber

public short getSequenceNumber()
Returns the sequence number of the current connection.

Returns:
the short value of the field sequenceNumber.

setSequenceNumber

public void setSequenceNumber(short val)
Updates the value of sequence number in the current connection in the DB-MAIN repository.

Parameters:
val - the new short value of the field SequenceNumber.

deleteConnection

public void deleteConnection()
Deletes the connection of the DB-MAIN repository represented by the current DBMConnection instance.


getToProduct

public DBMProduct getToProduct()
Returns the product of the current connection.

Returns:
the DBMProduct instance representing the product.

removeToProduct

public void removeToProduct()
Removes the product attached to the current connection in the DB-MAIN repository.


getFromProduct

public DBMProduct getFromProduct()
Returns the product of the current connection.

Returns:
the DBMProduct instance representing the product.

removeFromProduct

public void removeFromProduct()
Removes the product attached to the current connection in the DB-MAIN repository.