|
SDO API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeHelper
Look up a Type given the uri and typeName or interfaceClass. SDO Types are available through the getType("commonj.sdo", typeName) method. Defines Types from DataObjects.
Field Summary | |
---|---|
static TypeHelper |
INSTANCE
The default TypeHelper. |
Method Summary | |
---|---|
Type |
define(DataObject type)
Define the DataObject as a Type. |
List |
define(List types)
Define the list of DataObjects as Types. |
Type |
getType(Class interfaceClass)
Return the Type for this interfaceClass or null if not found. |
Type |
getType(String uri,
String typeName)
Return the Type specified by typeName with the given uri, or null if not found. |
Field Detail |
---|
static final TypeHelper INSTANCE
Method Detail |
---|
Type getType(String uri, String typeName)
uri
- The uri of the Type - type.getURI();typeName
- The name of the Type - type.getName();
Type getType(Class interfaceClass)
interfaceClass
- is the interface for the DataObject's Type -
type.getInstanceClass();
Type define(DataObject type)
type
- the DataObject representing the Type.
IllegalArgumentException
- if the Type could not be defined.List define(List types)
types
- a List of DataObjects representing the Types.
IllegalArgumentException
- if the Types could not be defined.
|
SDO API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |