public void addChoiceElement(String xpath, String elementTypeName) { XMLField field = new XMLField(xpath); addChoiceElement(field, elementTypeName); }
public void addChoiceElement(String xpath, String elementTypeName) { XMLField field = new XMLField(xpath); addChoiceElement(field, elementTypeName); }
public void addChoiceElement(String xpath, Class elementType) { XMLField field = new XMLField(xpath); addChoiceElement(field, elementType); }
public void addChoiceElement(String xpath, Class elementType) { XMLField field = new XMLField(xpath); addChoiceElement(field, elementType); }
public void addChoiceElement(String xpath, Class elementType) { XMLField field = new XMLField(xpath); addChoiceElement(field, elementType); }
public void addChoiceElement(String xpath, String elementTypeName) { XMLField field = new XMLField(xpath); addChoiceElement(field, elementTypeName); }
public void addChoiceElement(String srcXPath, Class elementType, String tgtXPath) { XMLField srcField = new XMLField(srcXPath); XMLField tgtField = new XMLField(tgtXPath); addChoiceElement(srcField, elementType, tgtField); }
public void addChoiceElement(String srcXPath, Class elementType, String tgtXPath) { XMLField srcField = new XMLField(srcXPath); XMLField tgtField = new XMLField(tgtXPath); addChoiceElement(srcField, elementType, tgtField); }
public void setChoiceFieldToClassAssociations(ArrayList associations) { if(associations.size() > 0) { for(Object next:associations) { XMLChoiceFieldToClassAssociation<Converter, XMLField> association = (XMLChoiceFieldToClassAssociation)next; this.addChoiceElement(association.getXmlField(), association.getClassName()); if(association.getConverter() != null) { this.addConverter(association.getXmlField(), association.getConverter()); } } } }
public void setChoiceFieldToClassAssociations(ArrayList associations) { if(associations.size() > 0) { for(Object next:associations) { XMLChoiceFieldToClassAssociation<Converter, XMLField> association = (XMLChoiceFieldToClassAssociation)next; this.addChoiceElement(association.getXmlField(), association.getClassName()); if(association.getConverter() != null) { this.addConverter(association.getXmlField(), association.getConverter()); } } } }
public void setChoiceFieldToClassAssociations(ArrayList associations) { if(associations.size() > 0) { for(Object next:associations) { XMLChoiceFieldToClassAssociation association = (XMLChoiceFieldToClassAssociation)next; this.addChoiceElement(association.getXmlField(), association.getClassName()); if(association.getConverter() != null) { this.addConverter(association.getXmlField(), (Converter)association.getConverter()); } } } }
operationsMapping.addChoiceElement("insert", InsertOperation.class); operationsMapping.addChoiceElement("query", QueryOperation.class); operationsMapping.addChoiceElement("update", UpdateOperation.class); operationsMapping.addChoiceElement("delete", DeleteOperation.class); operationsMapping.addChoiceElement("batch-sql-query", BatchQueryOperation.class); descriptor.addMapping(operationsMapping); return descriptor;
operationsMapping.addChoiceElement("insert", InsertOperation.class); operationsMapping.addChoiceElement("query", QueryOperation.class); operationsMapping.addChoiceElement("update", UpdateOperation.class); operationsMapping.addChoiceElement("delete", DeleteOperation.class); operationsMapping.addChoiceElement("batch-sql-query", BatchQueryOperation.class); descriptor.addMapping(operationsMapping); return descriptor;
private DatabaseMapping buildXMLChoiceCollectionMapping(String mappingUri) { XMLChoiceCollectionMapping mapping = new XMLChoiceCollectionMapping(); mapping.setAttributeName(getName()); mapping.useCollectionClass(ListWrapper.class); //First add XPath for this property String xPath = getQualifiedXPath(mappingUri, getType().isDataType()); mapping.addChoiceElement(xPath, getType().getImplClass()); //For each substitutable property, create the xpath and add it. Iterator<SDOProperty> properties = this.getSubstitutableElements().iterator(); while(properties.hasNext()) { SDOProperty nextProp = properties.next(); xPath = nextProp.getQualifiedXPath(mappingUri, nextProp.getType().isDataType(), getContainingType()); mapping.addChoiceElement(xPath, nextProp.getType().getImplClass()); } return mapping; }
private DatabaseMapping buildXMLChoiceCollectionMapping(String mappingUri) { XMLChoiceCollectionMapping mapping = new XMLChoiceCollectionMapping(); mapping.setAttributeName(getName()); mapping.useCollectionClass(ListWrapper.class); //First add XPath for this property String xPath = getQualifiedXPath(mappingUri, getType().isDataType()); mapping.addChoiceElement(xPath, getType().getImplClass()); //For each substitutable property, create the xpath and add it. Iterator<SDOProperty> properties = this.getSubstitutableElements().iterator(); while(properties.hasNext()) { SDOProperty nextProp = properties.next(); xPath = nextProp.getQualifiedXPath(mappingUri, nextProp.getType().isDataType(), getContainingType()); mapping.addChoiceElement(xPath, nextProp.getType().getImplClass()); } return mapping; }
xmlChoiceMapping.addChoiceElement(compositeMapping.getXPath(), Link.class); xmlChoiceMapping.addChoiceElement(compositeMapping.getXPath(), refDesc.getJavaClass());
xmlChoiceMapping.addChoiceElement(compositeMapping.getXPath(), Link.class); xmlChoiceMapping.addChoiceElement(compositeMapping.getXPath(), refDesc.getJavaClass());