com.atlassian.greenhopper.service.properties
Class PropertyDao

java.lang.Object
  extended by com.atlassian.greenhopper.service.properties.PropertyDao

@Service(value="gh-propertyDao")
public class PropertyDao
extends java.lang.Object

DAO layer for global GreenHopper properties. These are stored as one value per PropertySet record.

Author:
ahennecke

Field Summary
static java.lang.String SERVICE
           
 
Constructor Summary
PropertyDao()
           
 
Method Summary
 void deleteProperty(java.lang.String key)
          Deletes the Long value for the given property key
 java.lang.Boolean getBooleanProperty(java.lang.String key)
           
 java.lang.Long getLongProperty(java.lang.String key)
           
 java.lang.Object getPropertyAsType(java.lang.String key)
           
 java.lang.String getStringProperty(java.lang.String key)
           
 void setBooleanProperty(java.lang.String key, java.lang.Boolean value)
          Set the Boolean value for the given property key
 void setLongProperty(java.lang.String key, java.lang.Long value)
          Set the Long value for the given property key
 void setStringProperty(java.lang.String key, java.lang.String value)
          Set the Boolean value for the given property key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE

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

PropertyDao

public PropertyDao()
Method Detail

getLongProperty

public java.lang.Long getLongProperty(java.lang.String key)
Returns:
the Long value for the given property key, or null

setLongProperty

public void setLongProperty(java.lang.String key,
                            java.lang.Long value)
Set the Long value for the given property key


deleteProperty

public void deleteProperty(java.lang.String key)
Deletes the Long value for the given property key


getBooleanProperty

public java.lang.Boolean getBooleanProperty(java.lang.String key)
Parameters:
key - the property key
Returns:
the Boolean value for the given property key, or null

setBooleanProperty

public void setBooleanProperty(java.lang.String key,
                               java.lang.Boolean value)
Set the Boolean value for the given property key

Parameters:
key - the key
value - the value

getStringProperty

public java.lang.String getStringProperty(java.lang.String key)
Parameters:
key - the property key
Returns:
the String value for the given property key, or null

setStringProperty

public void setStringProperty(java.lang.String key,
                              java.lang.String value)
Set the Boolean value for the given property key

Parameters:
key - the key
value - the value

getPropertyAsType

public java.lang.Object getPropertyAsType(java.lang.String key)
Parameters:
key - the property key
Returns:
the object value for the given property key, or null


Copyright © 2007-2014 Atlassian. All Rights Reserved.