org.jumpmind.symmetric.service.impl.registration-service-sql.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of symmetric-ds Show documentation
Show all versions of symmetric-ds Show documentation
SymmetricDS is an open source database synchronization solution. It is platform-independent,
web-enabled, and database-agnostic. SymmetricDS was first built to replicate changes between 'retail store'
databases and ad centralized 'corporate' database.
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd" default-lazy-init="true"> <util:map id="registrationServiceSql"> <entry key="findNodeToRegisterSql"> <value> select min(c.node_id) from $[sym.sync.table.prefix]_node c inner join $[sym.sync.table.prefix]_node_security s on c.node_id = s.node_id where s.registration_enabled = 1 and c.node_group_id = ? and c.external_id = ? </value> </entry> <entry key="registerNodeSql"> <value> update $[sym.sync.table.prefix]_node set sync_enabled = 1, heartbeat_time = current_timestamp, sync_url = ?, schema_version = ?, database_type = ?, database_version = ?, symmetric_version = ? where node_id = ? </value> </entry> <entry key="registerNodeSecuritySql"> <value> update $[sym.sync.table.prefix]_node_security set registration_enabled = 0, registration_time = current_timestamp where node_id = ? </value> </entry> <entry key="reopenRegistrationSql"> <value> update $[sym.sync.table.prefix]_node_security set node_password = ?, registration_enabled = 1, registration_time = null where node_id = ? </value> </entry> <entry key="openRegistrationNodeSecuritySql"> <value> insert into $[sym.sync.table.prefix]_node_security (node_id, node_password, registration_enabled, created_at_node_id) values (?, ?, 1, ?) </value> </entry> <entry key="getRegistrationRedirectUrlSql"> <value> select sync_url from $[sym.sync.table.prefix]_node n inner join $[sym.sync.table.prefix]_registration_redirect r on n.node_id=r.registration_node_id where r.registrant_external_id=? </value> </entry> <entry key="insertRegistrationRedirectUrlSql"> <value> insert into $[sym.sync.table.prefix]_registration_redirect (registration_node_id, registrant_external_id) values (?, ?) </value> </entry> <entry key="updateRegistrationRedirectUrlSql"> <value> update $[sym.sync.table.prefix]_registration_redirect set registration_node_id=? where registrant_external_id=? </value> </entry> <entry key="getRegistrationRedirectSql"> <value> select registrant_external_id, registration_node_id from $[sym.sync.table.prefix]_registration_redirect </value> </entry> </util:map> </beans>