/** * INTERNAL: * Initialize the mapping. */ @Override public void initialize(AbstractSession session) throws DescriptorException { super.initialize(session); if (this.getField() instanceof XMLField && getValueConverter() instanceof TypeConversionConverter) { TypeConversionConverter converter = (TypeConversionConverter)getValueConverter(); this.getField().setType(converter.getObjectClass()); } }
/** * Get the XPath String * * @return String the XPath String associated with this Mapping * */ public String getXPath() { return getFieldName(); }
/** * Return a new direct collection/element collection mapping for this type of descriptor. */ @Override public DatabaseMapping newDirectCollectionMapping() { return new EISCompositeDirectCollectionMapping(); }
/** * Set the Mapping field name attribute to the given XPath String * * @param xpathString String * */ public void setXPath(String xpathString) { setField(new XMLField(xpathString)); }
/** * PUBLIC: * Return the name of the field that holds the nested collection. */ public String getFieldName() { return this.getField().getName(); }
xmlElement.setContainerType(((EISCompositeDirectCollectionMapping) mapping).getContainerPolicy().getContainerClassName()); } else if (mapping instanceof EISCompositeCollectionMapping) { xmlElement.setContainerType(((EISCompositeCollectionMapping) mapping).getContainerPolicy().getContainerClassName());
/** * PUBLIC: * Set the name of the field that holds the nested collection. */ public void setFieldName(String fieldName) { this.setField(new DatabaseField(fieldName)); } }
/** * PUBLIC: * Return the name of the field that holds the nested collection. */ public String getFieldName() { return this.getField().getName(); }
xmlElement.setContainerType(((EISCompositeDirectCollectionMapping) mapping).getContainerPolicy().getContainerClassName()); } else if (mapping instanceof EISCompositeCollectionMapping) { xmlElement.setContainerType(((EISCompositeCollectionMapping) mapping).getContainerPolicy().getContainerClassName());
/** * INTERNAL: * Initialize the mapping. */ public void initialize(AbstractSession session) throws DescriptorException { super.initialize(session); if (this.getField() instanceof XMLField && getValueConverter() instanceof TypeConversionConverter) { TypeConversionConverter converter = (TypeConversionConverter)getValueConverter(); this.getField().setType(converter.getObjectClass()); } }
/** * Set the Mapping field name attribute to the given XPath String * * @param xpathString String * */ public void setXPath(String xpathString) { setField(new XMLField(xpathString)); }
/** * Get the XPath String * * @return String the XPath String associated with this Mapping * */ public String getXPath() { return getFieldName(); }
/** * PUBLIC: * Return the name of the field that holds the nested collection. */ public String getFieldName() { return this.getField().getName(); }
/** * Return a new direct collection/element collection mapping for this type of descriptor. */ @Override public DatabaseMapping newDirectCollectionMapping() { return new EISCompositeDirectCollectionMapping(); }
/** * INTERNAL: * Initialize the mapping. */ @Override public void initialize(AbstractSession session) throws DescriptorException { super.initialize(session); if (this.getField() instanceof XMLField && getValueConverter() instanceof TypeConversionConverter) { TypeConversionConverter converter = (TypeConversionConverter)getValueConverter(); this.getField().setType(converter.getObjectClass()); } }
/** * Set the Mapping field name attribute to the given XPath String * * @param xpathString String * */ public void setXPath(String xpathString) { setField(new XMLField(xpathString)); }
/** * Get the XPath String * * @return String the XPath String associated with this Mapping * */ public String getXPath() { return getFieldName(); }
/** * PUBLIC: * Set the name of the field that holds the nested collection. */ public void setFieldName(String fieldName) { this.setField(new DatabaseField(fieldName)); } }
/** * PUBLIC: * Set the name of the field that holds the nested collection. */ public void setFieldName(String fieldName) { this.setField(new DatabaseField(fieldName)); } }