org.rhq.core.domain.content
Class InstalledPackage

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

public class InstalledPackage
extends Object
implements Serializable

Represents a specific package that is installed on a resource. Each instance of this object is associated to one and only one PackageVersion.

See Also:
Serialized Form

Field Summary
static String QUERY_DELETE_BY_RESOURCES
           
static String QUERY_FIND_BY_RESOURCE_AND_PACKAGE
           
static String QUERY_FIND_BY_RESOURCE_AND_PACKAGE_VER
           
static String QUERY_FIND_BY_RESOURCE_ID
           
static String QUERY_FIND_BY_RESOURCE_ID_AND_PKG_VER_ID
           
static String QUERY_FIND_BY_SET_OF_IDS
           
static String QUERY_FIND_BY_SET_OF_PACKAGE_VER_IDS
           
static String QUERY_FIND_INSTALLED_PACKAGE_HISTORY
           
static String QUERY_FIND_PACKAGE_LIST_ITEM_COMPOSITE
           
static String QUERY_FIND_PACKAGE_LIST_TYPES
           
static String QUERY_FIND_PACKAGE_LIST_VERSIONS
           
 
Constructor Summary
InstalledPackage()
           
 
Method Summary
 boolean equals(Object o)
           
 int getId()
           
 Long getInstallationDate()
          Timestamp the installation was performed, if it is known.
 PackageVersion getPackageVersion()
          Specific version of the package installed on the resource.
 Resource getResource()
          Resource where the package is installed.
 Subject getUser()
          User who performed the installation, if it is known.
 int hashCode()
           
 void setId(int id)
           
 void setInstallationDate(Long installationDate)
           
 void setPackageVersion(PackageVersion packageVersion)
           
 void setResource(Resource resource)
           
 void setUser(Subject user)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_BY_SET_OF_IDS

public static final String QUERY_FIND_BY_SET_OF_IDS
See Also:
Constant Field Values

QUERY_FIND_BY_SET_OF_PACKAGE_VER_IDS

public static final String QUERY_FIND_BY_SET_OF_PACKAGE_VER_IDS
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_ID

public static final String QUERY_FIND_BY_RESOURCE_ID
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_ID_AND_PKG_VER_ID

public static final String QUERY_FIND_BY_RESOURCE_ID_AND_PKG_VER_ID
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_AND_PACKAGE

public static final String QUERY_FIND_BY_RESOURCE_AND_PACKAGE
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_AND_PACKAGE_VER

public static final String QUERY_FIND_BY_RESOURCE_AND_PACKAGE_VER
See Also:
Constant Field Values

QUERY_FIND_PACKAGE_LIST_ITEM_COMPOSITE

public static final String QUERY_FIND_PACKAGE_LIST_ITEM_COMPOSITE
See Also:
Constant Field Values

QUERY_FIND_PACKAGE_LIST_TYPES

public static final String QUERY_FIND_PACKAGE_LIST_TYPES
See Also:
Constant Field Values

QUERY_FIND_PACKAGE_LIST_VERSIONS

public static final String QUERY_FIND_PACKAGE_LIST_VERSIONS
See Also:
Constant Field Values

QUERY_FIND_INSTALLED_PACKAGE_HISTORY

public static final String QUERY_FIND_INSTALLED_PACKAGE_HISTORY
See Also:
Constant Field Values

QUERY_DELETE_BY_RESOURCES

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

InstalledPackage

public InstalledPackage()
Method Detail

getId

public int getId()

setId

public void setId(int id)

getResource

public Resource getResource()
Resource where the package is installed.


setResource

public void setResource(Resource resource)

getPackageVersion

public PackageVersion getPackageVersion()
Specific version of the package installed on the resource.


setPackageVersion

public void setPackageVersion(PackageVersion packageVersion)

getInstallationDate

public Long getInstallationDate()
Timestamp the installation was performed, if it is known.


setInstallationDate

public void setInstallationDate(Long installationDate)

getUser

public Subject getUser()
User who performed the installation, if it is known.


setUser

public void setUser(Subject user)

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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