Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap.metadata.impl
Class OlapMeasureImpl

java.lang.Object
  extended by com.citra.pivot.olap.metadata.impl.AbstractOlapObject
      extended by com.citra.pivot.olap.metadata.impl.OlapMemberImpl
          extended by com.citra.pivot.olap.metadata.impl.OlapMeasureImpl
All Implemented Interfaces:
OlapMeasure, OlapMember, OlapObject

public class OlapMeasureImpl
extends OlapMemberImpl
implements OlapMeasure

OlapMeasureImpl is a modifiable OlapMeasure implementation.


Field Summary
protected  Class dataType
          the measure's data type
protected  OlapType type
          the measure's olap type
 
Fields inherited from class com.citra.pivot.olap.metadata.impl.OlapMemberImpl
level, memberCount
 
Fields inherited from class com.citra.pivot.olap.metadata.impl.AbstractOlapObject
caption, description, id, name
 
Constructor Summary
OlapMeasureImpl(String name, String id, String caption, String description, Class dataType, OlapType type, OlapLevelImpl level)
          Constructs an OlapMeasureImpl.
 
Method Summary
 OlapType getDataType()
          Retrieves the measure's olap type.
 Class getJavaDataType()
          Retrieves the measure's data type as a java class.
 void setDataType(OlapType type)
          Assigns the data type of this measure.
 void setJavaDataType(Class c)
          Assigns the java data type of this measure.
 
Methods inherited from class com.citra.pivot.olap.metadata.impl.OlapMemberImpl
getLevel, getMemberCount, setLevel, setMemberCount, toString
 
Methods inherited from class com.citra.pivot.olap.metadata.impl.AbstractOlapObject
getCaption, getDescription, getID, getName, setCaption, setDescription, setID, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.citra.pivot.olap.metadata.OlapMember
getLevel, getMemberCount
 
Methods inherited from interface com.citra.pivot.olap.metadata.OlapObject
getCaption, getDescription, getID, getName
 

Field Detail

dataType

protected Class dataType
the measure's data type


type

protected OlapType type
the measure's olap type

Constructor Detail

OlapMeasureImpl

public OlapMeasureImpl(String name,
                       String id,
                       String caption,
                       String description,
                       Class dataType,
                       OlapType type,
                       OlapLevelImpl level)
Constructs an OlapMeasureImpl.

Method Detail

getDataType

public OlapType getDataType()
Retrieves the measure's olap type.

Specified by:
getDataType in interface OlapMeasure
Returns:
the measure's olap type

getJavaDataType

public Class getJavaDataType()
Retrieves the measure's data type as a java class.

Specified by:
getJavaDataType in interface OlapMeasure
Returns:
the measure's data type

setDataType

public void setDataType(OlapType type)
Assigns the data type of this measure.

Parameters:
type - the data type to assign

setJavaDataType

public void setJavaDataType(Class c)
Assigns the java data type of this measure.

Parameters:
c - the java data type to assign

Copyright © 2011 Citra Technologies. All Rights Reserved.