org.rhq.core.domain.content
Class PackageVersionContentSource

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

public class PackageVersionContentSource
extends Object
implements Serializable

This is the many-to-many entity that correlates a package version with the content source that was responsible for delivering that package. This is mainly to support the ability to see all the ContentSources that a particular PackageVersion can come from.

See Also:
Serialized Form

Field Summary
static String DELETE_BY_CONTENT_SOURCE_ID
           
static String QUERY_FIND_BY_ALL_CONTENT_SOURCE_IDS
           
static String QUERY_FIND_BY_ALL_CONTENT_SOURCE_IDS_COUNT
           
static String QUERY_FIND_BY_CONTENT_SOURCE_ID
           
static String QUERY_FIND_BY_CONTENT_SOURCE_ID_AND_NOT_LOADED
           
static String QUERY_FIND_BY_CONTENT_SOURCE_ID_AND_NOT_LOADED_COUNT
           
static String QUERY_FIND_BY_CONTENT_SOURCE_ID_COUNT
           
static String QUERY_FIND_BY_CONTENT_SOURCE_ID_NO_FETCH
           
static String QUERY_FIND_BY_PKG_VER_ID_AND_RES_ID
           
 
Constructor Summary
protected PackageVersionContentSource()
           
  PackageVersionContentSource(PackageVersion packageVersion, ContentSource contentSource, String location)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getLocation()
          This is additional information about the relationship between the package version and the source from where it came.
 PackageVersionContentSourcePK getPackageVersionContentSourcePK()
           
 int hashCode()
           
 void setLocation(String location)
           
 void setPackageVersionContentSourcePK(PackageVersionContentSourcePK pk)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_BY_CONTENT_SOURCE_ID_NO_FETCH

public static final String QUERY_FIND_BY_CONTENT_SOURCE_ID_NO_FETCH
See Also:
Constant Field Values

QUERY_FIND_BY_CONTENT_SOURCE_ID

public static final String QUERY_FIND_BY_CONTENT_SOURCE_ID
See Also:
Constant Field Values

QUERY_FIND_BY_CONTENT_SOURCE_ID_COUNT

public static final String QUERY_FIND_BY_CONTENT_SOURCE_ID_COUNT
See Also:
Constant Field Values

QUERY_FIND_BY_ALL_CONTENT_SOURCE_IDS

public static final String QUERY_FIND_BY_ALL_CONTENT_SOURCE_IDS
See Also:
Constant Field Values

QUERY_FIND_BY_ALL_CONTENT_SOURCE_IDS_COUNT

public static final String QUERY_FIND_BY_ALL_CONTENT_SOURCE_IDS_COUNT
See Also:
Constant Field Values

QUERY_FIND_BY_CONTENT_SOURCE_ID_AND_NOT_LOADED

public static final String QUERY_FIND_BY_CONTENT_SOURCE_ID_AND_NOT_LOADED
See Also:
Constant Field Values

QUERY_FIND_BY_CONTENT_SOURCE_ID_AND_NOT_LOADED_COUNT

public static final String QUERY_FIND_BY_CONTENT_SOURCE_ID_AND_NOT_LOADED_COUNT
See Also:
Constant Field Values

QUERY_FIND_BY_PKG_VER_ID_AND_RES_ID

public static final String QUERY_FIND_BY_PKG_VER_ID_AND_RES_ID
See Also:
Constant Field Values

DELETE_BY_CONTENT_SOURCE_ID

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

PackageVersionContentSource

protected PackageVersionContentSource()

PackageVersionContentSource

public PackageVersionContentSource(PackageVersion packageVersion,
                                   ContentSource contentSource,
                                   String location)
Method Detail

getPackageVersionContentSourcePK

public PackageVersionContentSourcePK getPackageVersionContentSourcePK()

setPackageVersionContentSourcePK

public void setPackageVersionContentSourcePK(PackageVersionContentSourcePK pk)

getLocation

public String getLocation()
This is additional information about the relationship between the package version and the source from where it came. Typically, this data helps locate the specific package version on the remote repository that the content source connects to (e.g. this location can be a relative file path that is relative to a root directory of a local file system content source repository).


setLocation

public void setLocation(String location)

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-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.