mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.2 to HEAD
8371: Merged V2.1 to V2.2 8307: Next round of fixes for session management. 8309: Fixed AR-1891: Long MLText strings fail in Oracle 8313: Fix for case where existing MLText entry is null 8319: Follow-up fix for NPE where StringValue is null when persisting 8331: Fix for AR-1696: Long text in an aspect property causes an exception git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8496 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
|
||||
package org.alfresco.repo.attributes;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Value based implementation of float attribute
|
||||
* @author britt
|
||||
@@ -47,35 +49,28 @@ public class FloatAttributeValue extends AttributeValue implements
|
||||
fData = attr.getFloatValue();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.attributes.Attribute#getType()
|
||||
*/
|
||||
public Type getType()
|
||||
{
|
||||
return Type.FLOAT;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.attributes.AttributeValue#getFloatValue()
|
||||
*/
|
||||
public Serializable getRawValue()
|
||||
{
|
||||
return Float.valueOf(fData);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getFloatValue()
|
||||
{
|
||||
return fData;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.attributes.AttributeValue#setFloatValue(float)
|
||||
*/
|
||||
@Override
|
||||
public void setFloatValue(float value)
|
||||
{
|
||||
fData = value;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
|
Reference in New Issue
Block a user