PeopleCode and Java Data Types Mapping

The following table describes the matching of types for resolution of overloaded Java methods and basic conversions. The first Java Type/Class is the one that is produced in the absence of any other type of information.

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

The following table represents the conversions done to produce the Java class java.lang.Object. In addition to these, the conversions (listed in the previous table) from String onwards are done to produce a java.lang.Object.

PeopleCode Type

Java Type/Class

Float, Number

java.lang.Double

Integer

java.lang.Integer

Boolean

java.lang.Boolean

The following table represents other conversions that are done as required by the signature of a Java method or constructor.

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