Try OpenEdge Now
skip to main content
Java Open Clients
Accessing ABL ProDataSets : Using Java SDO classes to access Property meta data : Type interface : Methods
 
Methods
The Java SDO Type interface provides the following methods:
*getClass( ), getInstanceClass( ) — These methods return the Java class that this Type represents. If this is the Type of a reference property, getInstanceClass() returns null. For example:
Syntax
java.lang.Class getClass()
java.lang.Class getInstanceClass()
*getProperties( ) — This method returns the list of the properties for the Type of a DataObject. For a Type representing the simple data type of a Property (for example, java.lang.Integer), it returns null. For example:
Syntax
java.util.List getProperties()
*getProperty( ) — This method returns the property with the specified name from the property list of a DataObject Type. For a column property of a ProDataObject, propName is also the ABL name of a corresponding temp-table field. For example:
Syntax
Property getGetProperty(String propName)
*isInstance( ) — This method returns whether the specified object is an instance of this Type. For example, if Type represents the Customer class and obj is a DataObject whose Type represents the Customer class, this method returns true. For example:
Syntax
boolean isInstance(java.lang.Object obj)