org.rhq.core.domain.content
Class ResourceRepo

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

public class ResourceRepo
extends Object
implements Serializable

This is the many-to-many entity that correlates a repo with one of its subscribers. It is an explicit relationship mapping entity between Repo and Resource.

See Also:
Serialized Form

Field Summary
static String DELETE_BY_REPO_ID
           
static String DELETE_BY_RESOURCE_ID
           
static String DELETE_BY_RESOURCES
           
 
Constructor Summary
protected ResourceRepo()
           
  ResourceRepo(Resource resource, Repo repo)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getCreatedTime()
          This is the epoch time when this mapping was first created; in other words, when the resource was subscribed to the repo.
 ResourceRepoPK getResourceRepoPK()
           
 int hashCode()
           
 void setResourceRepoPK(ResourceRepoPK pk)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DELETE_BY_RESOURCES

public static final String DELETE_BY_RESOURCES
See Also:
Constant Field Values

DELETE_BY_RESOURCE_ID

public static final String DELETE_BY_RESOURCE_ID
See Also:
Constant Field Values

DELETE_BY_REPO_ID

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

ResourceRepo

protected ResourceRepo()

ResourceRepo

public ResourceRepo(Resource resource,
                    Repo repo)
Method Detail

getResourceRepoPK

public ResourceRepoPK getResourceRepoPK()

setResourceRepoPK

public void setResourceRepoPK(ResourceRepoPK pk)

getCreatedTime

public long getCreatedTime()
This is the epoch time when this mapping was first created; in other words, when the resource was subscribed to the repo.

Returns:
the time the resource was subscribed to the repo

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.