public ClassMapping getEmbeddedMapping() { return _val.getEmbeddedMapping(); }
public ClassMapping getEmbeddedMapping() { return _val.getEmbeddedMapping(); }
public ClassMapping getEmbeddedMapping() { return _val.getEmbeddedMapping(); }
public ClassMapping getEmbeddedMapping() { return _val.getEmbeddedMapping(); }
public ClassMapping getEmbeddedMapping() { return _val.getEmbeddedMapping(); }
public static ClassMapping getEmbeddedMapping(ValueMapping val, boolean createNew) { ClassMapping embed = val.getEmbeddedMapping(); if (embed != null || !createNew) return embed; val.addEmbeddedMetaData(); return val.getEmbeddedMapping(); }
public static ClassMapping getEmbeddedMapping(ValueMapping val, boolean createNew) { ClassMapping embed = val.getEmbeddedMapping(); if (embed != null || !createNew) return embed; val.addEmbeddedMetaData(); return val.getEmbeddedMapping(); }
public static ClassMapping getEmbeddedMapping(ValueMapping val, boolean createNew) { ClassMapping embed = val.getEmbeddedMapping(); if (embed != null || !createNew) return embed; val.addEmbeddedMetaData(); return val.getEmbeddedMapping(); }
/** * Find the first field mapping that uses the given column starting with * the given field index. */ private FieldMapping findField(Column col, int idx) { FieldMapping[] fms = _vm.getEmbeddedMapping().getFieldMappings(); Column[] cols; for (int i = idx; i < fms.length; i++) { if (fms[i].getManagement() != FieldMapping.MANAGE_PERSISTENT) continue; cols = ((Embeddable) fms[i]).getColumns(); for (int j = 0; j < cols.length; j++) if (cols[j] == col) return fms[i]; } return null; } }
/** * Find the first field mapping that uses the given column starting with * the given field index. */ private FieldMapping findField(Column col, int idx) { FieldMapping[] fms = _vm.getEmbeddedMapping().getFieldMappings(); Column[] cols; for (int i = idx; i < fms.length; i++) { if (fms[i].getManagement() != FieldMapping.MANAGE_PERSISTENT) continue; cols = ((Embeddable) fms[i]).getColumns(); for (int j = 0; j < cols.length; j++) if (cols[j] == col) return fms[i]; } return null; } }
public Object toDataStoreValue(ValueMapping vm, Object val, JDBCStore store) { OpenJPAStateManager em = store.getContext().getStateManager(val); Object rval = null; if (_cols.length > 1) rval = new Object[_cols.length]; // set null indicator column int idx = 0; if (_synthetic) { Object cval = ((EmbeddedClassStrategy) vm.getEmbeddedMapping(). getStrategy()).getNullIndicatorValue(em); if (_cols.length == 1) return cval; ((Object[]) rval)[idx++] = cval; } return super.toDataStoreValue(em, vm, store, _cols, rval, idx); }
public Object toDataStoreValue(ValueMapping vm, Object val, JDBCStore store) { OpenJPAStateManager em = store.getContext().getStateManager(val); Object rval = null; if (_cols.length > 1) rval = new Object[_cols.length]; // set null indicator column int idx = 0; if (_synthetic) { Object cval = ((EmbeddedClassStrategy) vm.getEmbeddedMapping(). getStrategy()).getNullIndicatorValue(em); if (_cols.length == 1) return cval; ((Object[]) rval)[idx++] = cval; } return super.toDataStoreValue(em, vm, store, _cols, rval, idx); }
public Object toDataStoreValue(ValueMapping vm, Object val, JDBCStore store) { OpenJPAStateManager em = store.getContext().getStateManager(val); Object rval = null; if (_cols.length > 1) rval = new Object[_cols.length]; // set null indicator column int idx = 0; if (_synthetic) { Object cval = ((EmbeddedClassStrategy) vm.getEmbeddedMapping(). getStrategy()).getNullIndicatorValue(em); if (_cols.length == 1) return cval; ((Object[]) rval)[idx++] = cval; } return super.toDataStoreValue(em, vm, store, _cols, rval, idx); }
public Object toDataStoreValue(ValueMapping vm, Object val, JDBCStore store) { OpenJPAStateManager em = store.getContext().getStateManager(val); Object rval = null; if (_cols.length > 1) rval = new Object[_cols.length]; // set null indicator column int idx = 0; if (_synthetic) { Object cval = ((EmbeddedClassStrategy) vm.getEmbeddedMapping(). getStrategy()).getNullIndicatorValue(em); if (_cols.length == 1) return cval; ((Object[]) rval)[idx++] = cval; } return super.toDataStoreValue(em, vm, store, _cols, rval, idx); }
public Object toDataStoreValue(ValueMapping vm, Object val, JDBCStore store) { OpenJPAStateManager em = store.getContext().getStateManager(val); Object rval = null; if (_cols.length > 1) rval = new Object[_cols.length]; // set null indicator column int idx = 0; if (_synthetic) { Object cval = ((EmbeddedClassStrategy) vm.getEmbeddedMapping(). getStrategy()).getNullIndicatorValue(em); if (_cols.length == 1) return cval; ((Object[]) rval)[idx++] = cval; } return super.toDataStoreValue(em, vm, store, _cols, rval, idx); }
public void copyMappingInfo(ValueMapping vm) { setValueMappedBy(vm.getValueMappedBy()); setPolymorphic(vm.getPolymorphic()); _info.copy(vm.getValueInfo()); ClassMapping embed = vm.getEmbeddedMapping(); if (embed != null && getEmbeddedMapping() != null) { FieldMapping[] tmplates = embed.getFieldMappings(); FieldMapping[] fms = getEmbeddedMapping().getFieldMappings(); if (tmplates.length == fms.length) for (int i = 0; i < fms.length; i++) fms[i].copyMappingInfo(tmplates[i]); } }
public void copyMappingInfo(ValueMapping vm) { setValueMappedBy(vm.getValueMappedBy()); setPolymorphic(vm.getPolymorphic()); _info.copy(vm.getValueInfo()); ClassMapping embed = vm.getEmbeddedMapping(); if (embed != null && getEmbeddedMapping() != null) { FieldMapping[] tmplates = embed.getFieldMappings(); FieldMapping[] fms = getEmbeddedMapping().getFieldMappings(); if (tmplates.length == fms.length) for (int i = 0; i < fms.length; i++) fms[i].copyMappingInfo(tmplates[i]); } }
public void copyMappingInfo(ValueMapping vm) { setValueMappedBy(vm.getValueMappedBy()); setPolymorphic(vm.getPolymorphic()); _info.copy(vm.getValueInfo()); ClassMapping embed = vm.getEmbeddedMapping(); if (embed != null && getEmbeddedMapping() != null) { FieldMapping[] tmplates = embed.getFieldMappings(); FieldMapping[] fms = getEmbeddedMapping().getFieldMappings(); if (tmplates.length == fms.length) for (int i = 0; i < fms.length; i++) fms[i].copyMappingInfo(tmplates[i]); } }
public void copyMappingInfo(ValueMapping vm) { setValueMappedBy(vm.getValueMappedBy()); setPolymorphic(vm.getPolymorphic()); _info.copy(vm.getValueInfo()); ClassMapping embed = vm.getEmbeddedMapping(); if (embed != null && getEmbeddedMapping() != null) { FieldMapping[] tmplates = embed.getFieldMappings(); FieldMapping[] fms = getEmbeddedMapping().getFieldMappings(); if (tmplates.length == fms.length) for (int i = 0; i < fms.length; i++) fms[i].copyMappingInfo(tmplates[i]); } }
public void copyMappingInfo(ValueMapping vm) { setValueMappedBy(vm.getValueMappedBy()); setPolymorphic(vm.getPolymorphic()); _info.copy(vm.getValueInfo()); ClassMapping embed = vm.getEmbeddedMapping(); if (embed != null && getEmbeddedMapping() != null) { FieldMapping[] tmplates = embed.getFieldMappings(); FieldMapping[] fms = getEmbeddedMapping().getFieldMappings(); if (tmplates.length == fms.length) for (int i = 0; i < fms.length; i++) fms[i].copyMappingInfo(tmplates[i]); } }