insert into alf_prop_class (java_class_name, java_class_name_short, java_class_name_crc)
values (#{javaClassName}, #{javaClassNameShort}, #{javaClassNameCrc})
insert into alf_prop_class (id, java_class_name, java_class_name_short, java_class_name_crc)
values (#{id}, #{javaClassName}, #{javaClassNameShort}, #{javaClassNameCrc})
insert into alf_prop_string_value (string_value, string_end_lower, string_crc)
values (#{stringValue}, #{stringEndLower}, #{stringCrc})
insert into alf_prop_string_value (id, string_value, string_end_lower, string_crc)
values (#{id}, #{stringValue}, #{stringEndLower}, #{stringCrc})
insert into alf_prop_double_value (double_value)
values (#{doubleValue})
insert into alf_prop_double_value (id, double_value)
values (#{id}, #{doubleValue})
insert into alf_prop_serializable_value (serializable_value)
values (?)
insert into alf_prop_serializable_value (id, serializable_value)
values (?, ?)
insert into alf_prop_value (actual_type_id, persisted_type, long_value)
values (#{actualTypeId}, #{persistedType}, #{longValue})
insert into alf_prop_value (id, actual_type_id, persisted_type, long_value)
values (#{id}, #{actualTypeId}, #{persistedType}, #{longValue})
insert into alf_prop_root (version)
values (?)
insert into alf_prop_root (id, version)
values (?, ?)
insert into alf_prop_unique_ctx (version, value1_prop_id, value2_prop_id, value3_prop_id, prop1_id)
values (#{version}, #{value1PropId}, #{value2PropId}, #{value3PropId}, #{propertyId,jdbcType=BIGINT})
insert into alf_prop_unique_ctx (id, version, value1_prop_id, value2_prop_id, value3_prop_id, prop1_id)
values (#{id}, #{version}, #{value1PropId}, #{value2PropId}, #{value3PropId}, #{propertyId,jdbcType=BIGINT})
insert into alf_prop_date_value
(
date_value,
full_year, half_of_year, quarter_of_year,
month_of_year,
week_of_year, week_of_month,
day_of_year, day_of_month, day_of_week
)
values
(
#{dateValue},
#{fullYear}, #{halfOfYear}, #{quarterOfYear},
#{monthOfYear},
#{weekOfYear}, #{weekOfMonth},
#{dayOfYear}, #{dayOfMonth}, #{dayOfWeek}
)
update
alf_prop_root
set
version = #{version}
where
id = #{id}
and version = (#{version} - 1)
delete from
alf_prop_root
where
id = #{id}
insert into alf_prop_link
(
root_prop_id, prop_index, contained_in, key_prop_id, value_prop_id
)
values
(
#{rootPropId}, #{propIndex}, #{containedIn}, #{keyPropId}, #{valuePropId}
)
delete from
alf_prop_link
where
root_prop_id = #{id}
update
alf_prop_unique_ctx
set
version = #{version},
value1_prop_id = #{value1PropId},
value2_prop_id = #{value2PropId},
value3_prop_id = #{value3PropId},
prop1_id = #{propertyId,jdbcType=BIGINT}
where
id = #{id}
and version = (#{version} - 1)
delete from
alf_prop_unique_ctx
where
id = #{id}
delete from
alf_prop_unique_ctx
where
value1_prop_id = #{value1PropId}
and value2_prop_id = #{value2PropId}
and value3_prop_id = #{value3PropId}