ID, NAME, LOCATION, COUNTRY, VIM_ID, VIM_NAME, STATUS,
TOTAL_CPU,
TOTAL_MEMORY, TOTAL_DISK,
USED_CPU, USED_MEMORY, USED_DISK
delete from site
where ID =
#{id,jdbcType=VARCHAR}
insert into site (ID, NAME, LOCATION,
COUNTRY, VIM_ID,
VIM_NAME, STATUS,TOTAL_CPU, TOTAL_MEMORY, TOTAL_DISK,
USED_CPU,
USED_MEMORY, USED_DISK)
values (#{id,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR},
#{location,jdbcType=VARCHAR},
#{country,jdbcType=VARCHAR}, #{vimId,jdbcType=VARCHAR},
#{vimName,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR},
#{totalCPU,jdbcType=VARCHAR}, #{totalMemory,jdbcType=VARCHAR},
#{totalDisk,jdbcType=VARCHAR},
#{usedCPU,jdbcType=VARCHAR},
#{usedMemory,jdbcType=VARCHAR},
#{usedDisk,jdbcType=VARCHAR})
insert into site
ID,
NAME,
LOCATION,
COUNTRY,
VIM_ID,
VIM_NAME,
STATUS,
TOTAL_CPU,
TOTAL_MEMORY,
TOTAL_DISK,
USED_CPU,
USED_MEMORY,
USED_DISK,
#{id,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR},
#{location,jdbcType=VARCHAR},
#{country,jdbcType=VARCHAR},
#{vimId,jdbcType=VARCHAR},
#{vimName,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR},
#{totalCPU,jdbcType=VARCHAR},
#{totalMemory,jdbcType=VARCHAR},
#{totalDisk,jdbcType=VARCHAR},
#{usedCPU,jdbcType=VARCHAR},
#{usedMemory,jdbcType=VARCHAR},
#{usedDisk,jdbcType=VARCHAR},
update site
NAME = #{name,jdbcType=VARCHAR},
LOCATION = #{location,jdbcType=VARCHAR},
COUNTRY = #{country,jdbcType=VARCHAR},
VIM_ID = #{vimId,jdbcType=VARCHAR},
VIM_NAME = #{vimName,jdbcType=VARCHAR},
STATUS = #{status,jdbcType=VARCHAR},
TOTAL_CPU = #{totalCPU,jdbcType=VARCHAR},
TOTAL_MEMORY = #{totalMemory,jdbcType=VARCHAR},
TOTAL_DISK = #{totalDisk,jdbcType=VARCHAR},
USED_CPU = #{usedCPU,jdbcType=VARCHAR},
USED_MEMORY = #{usedMemory,jdbcType=VARCHAR},
USED_DISK = #{usedDisk,jdbcType=VARCHAR},
where ID = #{id,jdbcType=VARCHAR}
update site
set NAME = #{name,jdbcType=VARCHAR},
LOCATION
= #{location,jdbcType=VARCHAR},
COUNTRY = #{country,jdbcType=VARCHAR},
VIM_ID = #{vimId,jdbcType=VARCHAR},
VIM_NAME =
#{vimName,jdbcType=VARCHAR},
STATUS = #{status,jdbcType=VARCHAR},
TOTAL_CPU = #{totalCPU,jdbcType=VARCHAR},
TOTAL_MEMORY =
#{totalMemory,jdbcType=VARCHAR},
TOTAL_DISK =
#{totalDisk,jdbcType=VARCHAR},
USED_CPU = #{usedCPU,jdbcType=VARCHAR},
USED_MEMORY = #{usedMemory,jdbcType=VARCHAR},
USED_DISK =
#{usedDisk,jdbcType=VARCHAR}
where ID = #{id,jdbcType=VARCHAR}
update site
ID = #{id,jdbcType=VARCHAR},
NAME = #{name,jdbcType=VARCHAR},
LOCATION = #{location,jdbcType=VARCHAR},
COUNTRY = #{country,jdbcType=VARCHAR},
VIM_NAME = #{vimName,jdbcType=VARCHAR},
STATUS = #{status,jdbcType=VARCHAR},
TOTAL_CPU = #{totalCPU,jdbcType=VARCHAR},
TOTAL_MEMORY = #{totalMemory,jdbcType=VARCHAR},
TOTAL_DISK = #{totalDisk,jdbcType=VARCHAR},
USED_CPU = #{usedCPU,jdbcType=VARCHAR},
USED_MEMORY = #{usedMemory,jdbcType=VARCHAR},
USED_DISK = #{usedDisk,jdbcType=VARCHAR},
where VIM_ID = #{vimId,jdbcType=VARCHAR}