INSERT INTO cluster ( cluster_name, zookeeper, bootstrap_servers, security_properties ) VALUES ( #{clusterName}, #{zookeeper}, #{bootstrapServers}, #{securityProperties} ) UPDATE cluster SET cluster_name=#{clusterName}, bootstrap_servers=#{bootstrapServers}, security_properties=#{securityProperties}, status=#{status} WHERE id = #{id}