com.microfocus.cobol.lang
Class CobolBigDecimal

java.lang.Object
  |
  +--com.microfocus.cobol.lang.CobolBigDecimal
All Implemented Interfaces:
DataType

public class CobolBigDecimal
extends Object
implements DataType

Wrapper class for a BigDecimal class

Copyright: Copyright (c) 2002-2003
Company: Micro Focus International Ltd

Since:
Net Express 4.0, Server Express 4.0
Version:
3.5, 2/4/03

Constructor Summary
CobolBigDecimal()
          Construct a CobolBigDecimal with BigDecimal.valueOf(0)
CobolBigDecimal(BigDecimal value)
          Construct a CobolBigDecimal given a BigDecimal
CobolBigDecimal(String value)
          Construct a CobolBigDecimal given a string
 
Method Summary
 byte[] getBytes()
          get the comp3 representation of a CobolBigDecimal
 BigDecimal getValue()
          Gets the current value of CobolBigDecimal
 void setValue(BigDecimal value)
          Allow a value of CobolBigDecimal to be changed
 void synchronizeData()
          synchronizeData the COBOL represention of a CobolBigDecimal with the Java internal representation.
 String toString()
          Return a string representation of a BigDecimal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CobolBigDecimal

public CobolBigDecimal()
Construct a CobolBigDecimal with BigDecimal.valueOf(0)

CobolBigDecimal

public CobolBigDecimal(BigDecimal value)
Construct a CobolBigDecimal given a BigDecimal
Parameters:
value -  

CobolBigDecimal

public CobolBigDecimal(String value)
Construct a CobolBigDecimal given a string
Parameters:
value -  
Method Detail

getBytes

public byte[] getBytes()
                throws CobolException,
                       Exception
get the comp3 representation of a CobolBigDecimal
Specified by:
getBytes in interface DataType
Returns:
a byte[]
Throws:
CobolException -  
Exception -  

getValue

public BigDecimal getValue()
Gets the current value of CobolBigDecimal
Returns:
a BigDecimal

setValue

public void setValue(BigDecimal value)
Allow a value of CobolBigDecimal to be changed
Parameters:
value -  

synchronizeData

public void synchronizeData()
                     throws CobolException,
                            Exception
synchronizeData the COBOL represention of a CobolBigDecimal with the Java internal representation.
Specified by:
synchronizeData in interface DataType
Throws:
CobolException -  
Exception -  

toString

public String toString()
Return a string representation of a BigDecimal
Overrides:
toString in class Object
Returns:
a string



Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.