PeopleSoft-PeopleCode与Java数据类型映射

PeopleCode and Java 数据类型映射

下表描述了用于解析重载Java方法和基本转换的类型匹配。

PeopleCode Type Java Type/Class
Float double, float
Number double, float, byte, char, short, int, long
Integer int, byte, char, short, long
Boolean Boolean
String java.lang.String
Date java.sql.Date
Time java.sql.Time
Date Time java.util.Date
any kind of object any kind of object

下表说明了为生成Java类java.lang.Object所做的转换

PeopleCode Type Java Type/Class
Float, Number java.lang.Double
Integer java.lang.Integer
Boolean java.lang.Boolean

下表表示Java方法或构造函数的签名所要求的其他转换。

PeopleCode Type Java Class
Integer, Number, Float java.lang.Integer, java.lang.Byte, java.lang.Character, java.lang.Short, java.lang.Long, java.lang.Float, PeopleSoft.PeopleCode.intHolder, PeopleSoft.PeopleCode.doubleHolder
String PeopleSoft.PeopleCode.StringHolder
peoplecode builtin class Xxx PeopleSoft.PeopleCode.Xxx
JavaObject corresponding Java object