com.redhat.rhn.domain.config
Class ConfigChannelType

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.config.ConfigChannelType

public class ConfigChannelType
extends BaseDomainHelper

ConfigChannelType - Class representation of the table rhnConfigChannelType.


Field Summary
static java.lang.String LOCAL
           
static java.lang.String NORMAL
           
static java.lang.String SANDBOX
           
 
Constructor Summary
protected ConfigChannelType()
          protected constructor.
 
Method Summary
 boolean equals(java.lang.Object arg)
          
 java.lang.Long getId()
          Getter for id
 java.lang.String getLabel()
          Getter for label
 java.lang.String getName()
          Getter for name
 java.lang.Long getPriority()
          Getter for priority
static ConfigChannelType global()
           
 int hashCode()
          
static ConfigChannelType local()
           
static ConfigChannelType lookup(java.lang.String type)
          Given a channel type label it returns the associated channel type
static ConfigChannelType sandbox()
           
 void setId(java.lang.Long idIn)
          Setter for id
 void setLabel(java.lang.String labelIn)
          Setter for label
 void setName(java.lang.String nameIn)
          Setter for name
 void setPriority(java.lang.Long priorityIn)
          Setter for priority
 
Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper
getCreated, getModified, setCreated, setModified
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORMAL

public static final java.lang.String NORMAL
See Also:
Constant Field Values

LOCAL

public static final java.lang.String LOCAL
See Also:
Constant Field Values

SANDBOX

public static final java.lang.String SANDBOX
See Also:
Constant Field Values
Constructor Detail

ConfigChannelType

protected ConfigChannelType()
protected constructor. Use the ConfigurationFactory to get ConfigChannelTypes.

Method Detail

sandbox

public static ConfigChannelType sandbox()
Returns:
the sandbox channel type object

local

public static ConfigChannelType local()
Returns:
the local channel type object

global

public static ConfigChannelType global()
Returns:
the global channel type object

lookup

public static ConfigChannelType lookup(java.lang.String type)
Given a channel type label it returns the associated channel type

Parameters:
type - the channel type label
Returns:
the channel type associated to the type label.

getId

public java.lang.Long getId()
Getter for id

Returns:
Long to get

setId

public void setId(java.lang.Long idIn)
Setter for id

Parameters:
idIn - to set

getLabel

public java.lang.String getLabel()
Getter for label

Returns:
String to get

setLabel

public void setLabel(java.lang.String labelIn)
Setter for label

Parameters:
labelIn - to set

getName

public java.lang.String getName()
Getter for name

Returns:
String to get

setName

public void setName(java.lang.String nameIn)
Setter for name

Parameters:
nameIn - to set

getPriority

public java.lang.Long getPriority()
Getter for priority

Returns:
Long to get

setPriority

public void setPriority(java.lang.Long priorityIn)
Setter for priority

Parameters:
priorityIn - to set

equals

public boolean equals(java.lang.Object arg)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object