org.axway.grapes.server.db.datamodel
Class DbDependency

java.lang.Object
  extended by org.axway.grapes.server.db.datamodel.DbDependency

public class DbDependency
extends Object

DbDependency

Representation for a dependence between a module (source) and an artifact (target).

Author:
jdcoffre

Field Summary
static String DATA_MODEL_VERSION
           
 
Constructor Summary
DbDependency()
           
DbDependency(String source, String target, Scope scope)
          Generate a dependency
 
Method Summary
 boolean equals(Object obj)
          Checks if the dependency is the same than an other one.
 String getDataModelVersion()
           
 Scope getScope()
           
 String getSource()
           
 String getTarget()
           
 int hashCode()
           
 void setDataModelVersion(String newVersion)
           
 void setScope(Scope scope)
           
 void setSource(String source)
           
 void setTarget(String target)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_MODEL_VERSION

public static final String DATA_MODEL_VERSION
See Also:
Constant Field Values
Constructor Detail

DbDependency

public DbDependency()

DbDependency

public DbDependency(String source,
                    String target,
                    Scope scope)
Generate a dependency

Parameters:
source -
target -
scope -
Method Detail

setDataModelVersion

public void setDataModelVersion(String newVersion)

getDataModelVersion

public String getDataModelVersion()

setSource

public void setSource(String source)

setTarget

public void setTarget(String target)

setScope

public void setScope(Scope scope)

getSource

public String getSource()

getTarget

public String getTarget()

getScope

public Scope getScope()

equals

public boolean equals(Object obj)
Checks if the dependency is the same than an other one.

Overrides:
equals in class Object
Parameters:
obj -
Returns:
true only if artifact/scope are the same in both.

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014. All Rights Reserved.