/** * INTERNAL: * Set the converter class name on the mapping. Initialized in * convertClassNamesToClasses. * A converter can be used to convert between the key's object value and database value. */ public void setKeyConverterClassName(String keyConverterClassName) { getMappedKeyMapContainerPolicy().setKeyConverterClassName(keyConverterClassName, this); }
/** * PUBLIC: * Return the converter on the mapping. * A converter can be used to convert between the key's object value and database value. */ public Converter getKeyConverter() { return getMappedKeyMapContainerPolicy().getKeyConverter(); }
/** * INTERNAL: */ public DatabaseField getDirectKeyField() { return getMappedKeyMapContainerPolicy().getDirectKeyField(null); }
/** * INTERNAL: */ public void setDirectKeyField(DatabaseField keyField) { getMappedKeyMapContainerPolicy().setKeyField(keyField, descriptor); }
/** * PUBLIC: * Set the converter on the mapping. * A converter can be used to convert between the key's object value and database value. */ public void setKeyConverter(Converter keyConverter) { getMappedKeyMapContainerPolicy().setKeyConverter(keyConverter, this); }
/** * INTERNAL: * Set the converter class name on the mapping. Initialized in * convertClassNamesToClasses. * A converter can be used to convert between the key's object value and database value. */ public void setKeyConverterClassName(String keyConverterClassName) { getMappedKeyMapContainerPolicy().setKeyConverterClassName(keyConverterClassName, this); }
/** * PUBLIC: * Return the converter on the mapping. * A converter can be used to convert between the key's object value and database value. */ public Converter getKeyConverter() { return getMappedKeyMapContainerPolicy().getKeyConverter(); }
/** * PUBLIC: * Set the converter on the mapping. * A converter can be used to convert between the key's object value and database value. */ public void setKeyConverter(Converter keyConverter) { getMappedKeyMapContainerPolicy().setKeyConverter(keyConverter, this); }
/** * INTERNAL: */ public DatabaseField getDirectKeyField() { return getMappedKeyMapContainerPolicy().getDirectKeyField(null); }
/** * INTERNAL: */ public void setDirectKeyField(DatabaseField keyField) { getMappedKeyMapContainerPolicy().setKeyField(keyField, descriptor); }
/** * INTERNAL: * Compare the attributes belonging to this mapping for the objects. */ @Override public boolean compareObjects(Object firstObject, Object secondObject, AbstractSession session) { Object firstObjectMap = getRealCollectionAttributeValueFromObject(firstObject, session); Object secondObjectMap = getRealCollectionAttributeValueFromObject(secondObject, session); return getMappedKeyMapContainerPolicy().compareContainers(firstObjectMap, secondObjectMap); }
/** * INTERNAL: * Compare the attributes belonging to this mapping for the objects. */ @Override public boolean compareObjects(Object firstObject, Object secondObject, AbstractSession session) { Object firstObjectMap = getRealCollectionAttributeValueFromObject(firstObject, session); Object secondObjectMap = getRealCollectionAttributeValueFromObject(secondObject, session); return getMappedKeyMapContainerPolicy().compareContainers(firstObjectMap, secondObjectMap); }
/** * INTERNAL: * Initialize and validate the mapping properties. */ @Override public void initialize(AbstractSession session) throws DescriptorException { getMappedKeyMapContainerPolicy().setDescriptorForKeyMapping(this.getDescriptor()); if (getKeyConverter() != null) { getKeyConverter().initialize(this, session); } super.initialize(session); }
/** * INTERNAL: * Initialize and validate the mapping properties. */ @Override public void initialize(AbstractSession session) throws DescriptorException { getMappedKeyMapContainerPolicy().setDescriptorForKeyMapping(this.getDescriptor()); if (getKeyConverter() != null) { getKeyConverter().initialize(this, session); } super.initialize(session); }
MappedKeyMapContainerPolicy mapContainerPolicy = getMappedKeyMapContainerPolicy(); for (AbstractRecord referenceRow : rows) { Object referenceKey = null;
MappedKeyMapContainerPolicy mapContainerPolicy = getMappedKeyMapContainerPolicy(); for (AbstractRecord referenceRow : rows) { Object referenceKey = null;