Skip to content

Commit

Permalink
TEIIDDES-1584 Create Relationships Between VDB Schema Source Artifact…
Browse files Browse the repository at this point in the history
… And VDB Translator Artifact

Setup a two direcitional relationship between a source and its translator and a translator and all the sources that reference it.
  • Loading branch information
elvisisking committed Feb 11, 2013
1 parent 9d133e5 commit c646496
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ public String getId() {

};

/**
* A relationship between a source artifact and its translator artifact.
*/
public static final RelationshipType TRANSLATOR_RELATIONSHIP = new RelationshipType() {

/**
* {@inheritDoc}
*
* @see org.komodo.repository.artifact.Artifact.RelationshipType#getId()
*/
@Override
public String getId() {
return "SourceTranslator"; //$NON-NLS-1$
}

};

/**
* The artifact type for a schema data source artifact.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,23 @@
*/
public interface TranslatorArtifact extends Artifact {

/**
* A relationship between a translator artifact and the source artifacts that reference it.
*/
public static final RelationshipType SOURCES_RELATIONSHIP = new RelationshipType() {

/**
* {@inheritDoc}
*
* @see org.komodo.repository.artifact.Artifact.RelationshipType#getId()
*/
@Override
public String getId() {
return "TranslatorSources"; //$NON-NLS-1$
}

};

/**
* The artifact type for a translator artifact.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.s_ramp.xmlns._2010.s_ramp.BaseArtifactType;

/**
* Utilities for use with derivers.
* Utilities for use with S-RAMP repositories and derivers.
*/
public class SrampRepositoryUtil implements SrampRepositoryConstants {

Expand Down

0 comments on commit c646496

Please sign in to comment.