|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microfocus.cobol.lang.CobolTime
Java class for a CobolTime field
Copyright: Copyright (c) 2002-2003
Constructor Summary | |
CobolTime()
Construct a CobolTime type using the current time |
|
CobolTime(Time sqlTime)
Construct a CobolTime type using the specified time |
|
CobolTime(Time sqlTime,
String encoding)
Construct a CobolTime given a specific time and encoding Example: |
Method Summary | |
byte[] |
getBytes()
public method called by the COBOL Runtime to allow the CobolTime instance to update its Java represenation of the CobolTime field. |
String |
getEncoding()
returns the current encoding |
void |
synchronizeData()
public method called by the COBOL Runtime to allow the CobolTime instance to update its Java represenation of the CobolTime field. |
String |
toString()
returns a String representation of the CobolTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CobolTime()
public CobolTime(Time sqlTime)
sqlTime
- public CobolTime(Time sqlTime, String encoding) throws UnsupportedEncodingException
CobolTime parm = new CobolTime(sqlTime); retcode = RuntimeSystem.cobcall("cblstime",new ParameterList().add(parm)); System.out.println(sqlTime); with the COBOL program cblstime.cbl being: working-storage section. linkage section. 01 jsql-time. 03 jhour pic 99. 03 filler pic x. 03 jminute pic 99. 03 filler pic x. 03 jseconds pic 99. procedure division using jsql-time. display "COBOL -> " jsql-time. add 1 to jhour exit program returning 0.
sqlTime
- encoding
- Method Detail |
public byte[] getBytes() throws CobolException, Exception
getBytes
in interface DataType
CobolException
Exception
public void synchronizeData() throws CobolException, Exception
synchronizeData
in interface DataType
CobolException
Exception
public String getEncoding()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.