org.rhq.core.domain.content
Class RepoDistribution

java.lang.Object
  extended by org.rhq.core.domain.content.RepoDistribution
All Implemented Interfaces:
Serializable

public class RepoDistribution
extends Object
implements Serializable

This is the many-to-many entity that correlates a repo with a content source that will fill the repo with package versions. It is an explicit relationship mapping entity between Repo and Distribution.

See Also:
Serialized Form

Field Summary
static String DELETE_BY_KICKSTART_TREE_ID
           
static String DELETE_BY_REPO_ID
           
static String QUERY_FIND_BY_REPO_ID
           
 
Constructor Summary
protected RepoDistribution()
           
  RepoDistribution(Repo repo, Distribution dist)
           
 
Method Summary
 boolean equals(Object obj)
           
 Distribution getDistribution()
           
 long getLastModified()
          This is the epoch time when this mapping was first created; in other words, when the repo was first associated with the content source.
 Repo getRepo()
           
 RepoDistributionPK getRepoDistributionPK()
           
 int hashCode()
           
 void setRepoDistributionPK(RepoDistributionPK pk)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DELETE_BY_KICKSTART_TREE_ID

public static final String DELETE_BY_KICKSTART_TREE_ID
See Also:
Constant Field Values

DELETE_BY_REPO_ID

public static final String DELETE_BY_REPO_ID
See Also:
Constant Field Values

QUERY_FIND_BY_REPO_ID

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

RepoDistribution

protected RepoDistribution()

RepoDistribution

public RepoDistribution(Repo repo,
                        Distribution dist)
Method Detail

getRepoDistributionPK

public RepoDistributionPK getRepoDistributionPK()

setRepoDistributionPK

public void setRepoDistributionPK(RepoDistributionPK pk)

getLastModified

public long getLastModified()
This is the epoch time when this mapping was first created; in other words, when the repo was first associated with the content source.


getRepo

public Repo getRepo()

getDistribution

public Distribution getDistribution()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.