|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.domain.resource.ProductVersion
public class ProductVersion
Used as a mapping between a resource and a package version. The resource will reference an instance of this entity to indicate the version of the resource. A package version can optionally reference an entity of this class to indicate it can only be installed on resources of a specific version.
| Field Summary | |
|---|---|
static String |
QUERY_FIND_BY_RESOURCE_TYPE_AND_VERSION
|
| Constructor Summary | |
|---|---|
ProductVersion()
|
|
| Method Summary | |
|---|---|
ProductVersionPackageVersion |
addPackageVersion(PackageVersion packageVersion)
Directly assign a package version to this product version. |
boolean |
equals(Object o)
|
int |
getId()
|
Set<PackageVersion> |
getPackageVersions()
The package versions that this product version is associated with. |
Set<ProductVersionPackageVersion> |
getProductVersionPackageVersions()
Returns the explicit mapping entities. |
Set<Resource> |
getResources()
|
ResourceType |
getResourceType()
|
String |
getVersion()
|
int |
hashCode()
|
ProductVersionPackageVersion |
removePackageVersion(PackageVersion packageVersion)
Removes the package version from this product version, if it exists. |
void |
setId(int id)
|
void |
setResources(Set<Resource> resources)
|
void |
setResourceType(ResourceType resourceType)
|
void |
setVersion(String version)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String QUERY_FIND_BY_RESOURCE_TYPE_AND_VERSION
| Constructor Detail |
|---|
public ProductVersion()
| Method Detail |
|---|
public int getId()
public void setId(int id)
public String getVersion()
public void setVersion(String version)
public ResourceType getResourceType()
public void setResourceType(ResourceType resourceType)
public Set<Resource> getResources()
public void setResources(Set<Resource> resources)
public Set<ProductVersionPackageVersion> getProductVersionPackageVersions()
getPackageVersions()public Set<PackageVersion> getPackageVersions()
The returned set is not backed by this entity - if you want to alter the set of associated package versions,
use getProductVersionPackageVersions() or addPackageVersion(PackageVersion),
removePackageVersion(PackageVersion).
public ProductVersionPackageVersion addPackageVersion(PackageVersion packageVersion)
packageVersion -
public ProductVersionPackageVersion removePackageVersion(PackageVersion packageVersion)
null is returned.
packageVersion - the package version to remove
null if the package version was not mapped to this product
versionpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||