org.apache.jetspeed.prefs.om.impl
Class PropertyKeyImpl

java.lang.Object
  extended byorg.apache.jetspeed.prefs.om.impl.PropertyKeyImpl
All Implemented Interfaces:
Cloneable, org.apache.jetspeed.prefs.om.PropertyKey, Serializable

public class PropertyKeyImpl
extends Object
implements org.apache.jetspeed.prefs.om.PropertyKey

PropertyKey interface implementation.

Represents a property key.

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
private  Timestamp creationDate
           
private  Timestamp modifiedDate
           
private  long propertyKeyId
           
private  String propertyKeyName
           
private  int propertyKeyType
           
 
Constructor Summary
PropertyKeyImpl()
          Property key implementation default constructor.
PropertyKeyImpl(String propertyKeyName, int propertyKeyType)
          Property key constructor given the associated property set definition, the property key name and type.
 
Method Summary
 Timestamp getCreationDate()
           
 Timestamp getModifiedDate()
           
 long getPropertyKeyId()
           
 String getPropertyKeyName()
           
 int getPropertyKeyType()
           
 void setCreationDate(Timestamp creationDate)
           
 void setModifiedDate(Timestamp modifiedDate)
           
 void setPropertyKeyId(long propertyKeyId)
           
 void setPropertyKeyName(String propertyKeyName)
           
 void setPropertyKeyType(int propertyKeyType)
           
 String toString()
          Convert PropertyKey to string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyKeyId

private long propertyKeyId

propertyKeyType

private int propertyKeyType

propertyKeyName

private String propertyKeyName

creationDate

private Timestamp creationDate

modifiedDate

private Timestamp modifiedDate
Constructor Detail

PropertyKeyImpl

public PropertyKeyImpl()

Property key implementation default constructor.


PropertyKeyImpl

public PropertyKeyImpl(String propertyKeyName,
                       int propertyKeyType)

Property key constructor given the associated property set definition, the property key name and type.

Parameters:
propertyKeyName - The property key name.
propertyKeyType - The property key type.
Method Detail

getPropertyKeyId

public long getPropertyKeyId()
Specified by:
getPropertyKeyId in interface org.apache.jetspeed.prefs.om.PropertyKey
See Also:
PropertyKey.getPropertyKeyId()

setPropertyKeyId

public void setPropertyKeyId(long propertyKeyId)
Specified by:
setPropertyKeyId in interface org.apache.jetspeed.prefs.om.PropertyKey
See Also:
org.apache.jetspeed.prefs.om.PropertyKey#setPropertyKeyId(int)

getPropertyKeyName

public String getPropertyKeyName()
Specified by:
getPropertyKeyName in interface org.apache.jetspeed.prefs.om.PropertyKey
See Also:
PropertyKey.getPropertyKeyName()

setPropertyKeyName

public void setPropertyKeyName(String propertyKeyName)
Specified by:
setPropertyKeyName in interface org.apache.jetspeed.prefs.om.PropertyKey
See Also:
PropertyKey.setPropertyKeyName(java.lang.String)

getPropertyKeyType

public int getPropertyKeyType()
Specified by:
getPropertyKeyType in interface org.apache.jetspeed.prefs.om.PropertyKey
See Also:
PropertyKey.getPropertyKeyType()

setPropertyKeyType

public void setPropertyKeyType(int propertyKeyType)
Specified by:
setPropertyKeyType in interface org.apache.jetspeed.prefs.om.PropertyKey
See Also:
PropertyKey.setPropertyKeyType(int)

getCreationDate

public Timestamp getCreationDate()
Specified by:
getCreationDate in interface org.apache.jetspeed.prefs.om.PropertyKey
See Also:
PropertyKey.getCreationDate()

setCreationDate

public void setCreationDate(Timestamp creationDate)
Specified by:
setCreationDate in interface org.apache.jetspeed.prefs.om.PropertyKey
See Also:
PropertyKey.setCreationDate(java.sql.Timestamp)

getModifiedDate

public Timestamp getModifiedDate()
Specified by:
getModifiedDate in interface org.apache.jetspeed.prefs.om.PropertyKey
See Also:
PropertyKey.getModifiedDate()

setModifiedDate

public void setModifiedDate(Timestamp modifiedDate)
Specified by:
setModifiedDate in interface org.apache.jetspeed.prefs.om.PropertyKey
See Also:
PropertyKey.setModifiedDate(java.sql.Timestamp)

toString

public String toString()

Convert PropertyKey to string.

Returns:
The Property string value.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.