|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SDOHelper.MetaDataBuilder
This interface provides methods which can be used to programatically create SDO Types and Properties. It provides a lower level and more efficient API then the DataObject-based one of TypeHelper.define().
Method Summary | |
---|---|
void |
addAliasName(Property property,
String aliasName)
Add an aliasName to the specified property. |
void |
addAliasName(Type type,
String aliasName)
Add an aliasName to the specified type. |
void |
addBaseType(Type type,
Type baseType)
Add a baseType to the specified type. |
void |
addPropertyInstanceProperty(Property definedProperty,
Property instanceProperty,
Object value)
Add anf instance property to the specified property. |
void |
addTypeInstanceProperty(Type definedType,
Property instanceProperty,
Object value)
Add an instance property to the specified type. |
Property |
createOpenContentProperty(HelperContext hc,
String uri,
String name,
Type type)
Create a new open content property in the specified TypeHelper scope. |
Property |
createProperty(Type containingType,
String name,
Type propertyType)
Create a new property in the specified containingType. |
Type |
createType(HelperContext hc,
String uri,
String name,
boolean isDataType)
Create a Type in the specified TypeHelper scope. |
void |
setAbstract(Type type,
boolean isAbstract)
Set the isAbstract value of the specified type. |
void |
setContainment(Property property,
boolean isContainment)
Set the isContainment value of the specified property. |
void |
setDefault(Property property,
String defaultValue)
Set the default value of the specified property. |
void |
setJavaClassName(Type type,
String javaClassName)
Set the isAbstract value of the specified type. |
void |
setMany(Property property,
boolean isMany)
Set the isMany value of the specified property. |
void |
setOpen(Type type,
boolean isOpen)
Set the isOpen value of the specified type. |
void |
setOpposite(Property property,
Property opposite)
Set the opposite value of the specified property. |
void |
setPropertyXMLKind(Property property,
boolean isXmlElement)
Set a SDO property to become an XSD element or attribute |
void |
setReadOnly(Property property,
boolean isReadOnly)
Set the isReadOnly value of the specified property. |
void |
setSequenced(Type type,
boolean isSequenced)
Set the isSequenced value of the specified type. |
Method Detail |
---|
Type createType(HelperContext hc, String uri, String name, boolean isDataType)
void addBaseType(Type type, Type baseType)
void addAliasName(Type type, String aliasName)
void setOpen(Type type, boolean isOpen)
void setSequenced(Type type, boolean isSequenced)
void setAbstract(Type type, boolean isAbstract)
void setJavaClassName(Type type, String javaClassName)
Property createProperty(Type containingType, String name, Type propertyType)
void setPropertyXMLKind(Property property, boolean isXmlElement)
Property createOpenContentProperty(HelperContext hc, String uri, String name, Type type)
void addAliasName(Property property, String aliasName)
void setMany(Property property, boolean isMany)
void setContainment(Property property, boolean isContainment)
void setDefault(Property property, String defaultValue)
void setReadOnly(Property property, boolean isReadOnly)
void setOpposite(Property property, Property opposite)
void addTypeInstanceProperty(Type definedType, Property instanceProperty, Object value)
void addPropertyInstanceProperty(Property definedProperty, Property instanceProperty, Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |