All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.dal.jdbc.alarm-codegen.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<entities>
  <entity name="alert" table="alert" alias="a">
    <member name="id" field="id" value-type="int" length="10" nullable="false" key="true" auto-increment="true" />
    <member name="domain" field="domain" value-type="String" length="128" nullable="false" />
    <member name="alert-time" field="alert_time" value-type="Date" nullable="false" />
    <member name="category" field="category" value-type="String" length="64" nullable="false" />
    <member name="type" field="type" value-type="String" length="64" nullable="false" />
    <member name="content" field="content" value-type="String" length="200" nullable="false" />
    <member name="metric" field="metric" value-type="String" length="128" nullable="false" />
    <member name="creation-date" field="creation_date" value-type="Date" nullable="false" />
    <var name="key-id" value-type="int" key-member="id" />
    <primary-key name="PRIMARY" members="id" />
    <readsets>
      <readset name="FULL" all="true" />
    </readsets>
    <updatesets>
      <updateset name="FULL" all="true" />
    </updatesets>
    <query-defs>
      <query name="find-by-PK" type="SELECT">
        <param name="key-id" />
        <statement><![CDATA[SELECT <FIELDS/>
        FROM <TABLE/>
        WHERE <FIELD name='id'/> = ${key-id}]]></statement>
      </query>
      <query name="insert" type="INSERT">
        <statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
        VALUES(<VALUES/>)]]></statement>
      </query>
      <query name="update-by-PK" type="UPDATE">
        <param name="key-id" />
        <statement><![CDATA[UPDATE <TABLE/>
        SET <FIELDS/>
        WHERE <FIELD name='id'/> = ${key-id}]]></statement>
      </query>
      <query name="delete-by-PK" type="DELETE">
        <param name="key-id" />
        <statement><![CDATA[DELETE FROM <TABLE/>
        WHERE <FIELD name='id'/> = ${key-id}]]></statement>
      </query>
    </query-defs>
  </entity>
  <entity name="server-alarm-rule" table="server_alarm_rule" alias="sar">
    <member name="id" field="id" value-type="int" length="10" nullable="false" key="true" auto-increment="true" />
    <member name="category" field="category" value-type="String" length="50" nullable="false" />
    <member name="end-point" field="endPoint" value-type="String" length="200" nullable="false" />
    <member name="measurement" field="measurement" value-type="String" length="200" nullable="false" />
    <member name="tags" field="tags" value-type="String" length="200" nullable="false" />
    <member name="content" field="content" value-type="String" length="200" nullable="false" />
    <member name="type" field="type" value-type="String" length="20" nullable="false" />
    <member name="creator" field="creator" value-type="String" length="100" />
    <member name="creation-date" field="creation_date" value-type="Date" nullable="false" />
    <member name="updatetime" field="updatetime" value-type="Date" nullable="false" />
    <var name="key-id" value-type="int" key-member="id" />
    <primary-key name="PRIMARY" members="id" />
    <index name="updatetime" members="updatetime ASC" />
    <readsets>
      <readset name="FULL" all="true" />
    </readsets>
    <updatesets>
      <updateset name="FULL" all="true" />
    </updatesets>
    <query-defs>
      <query name="find-by-PK" type="SELECT">
        <param name="key-id" />
        <statement><![CDATA[SELECT <FIELDS/>
        FROM <TABLE/>
        WHERE <FIELD name='id'/> = ${key-id}]]></statement>
      </query>
      <query name="insert" type="INSERT">
        <statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
        VALUES(<VALUES/>)]]></statement>
      </query>
      <query name="update-by-PK" type="UPDATE">
        <param name="key-id" />
        <statement><![CDATA[UPDATE <TABLE/>
        SET <FIELDS/>
        WHERE <FIELD name='id'/> = ${key-id}]]></statement>
      </query>
      <query name="delete-by-PK" type="DELETE">
        <param name="key-id" />
        <statement><![CDATA[DELETE FROM <TABLE/>
        WHERE <FIELD name='id'/> = ${key-id}]]></statement>
      </query>
    </query-defs>
  </entity>
  <entity name="user-define-rule" table="user_define_rule" alias="udr">
    <member name="id" field="id" value-type="int" length="10" nullable="false" key="true" auto-increment="true" />
    <member name="content" field="content" value-type="String" length="65535" nullable="false" />
    <member name="creation-date" field="creation_date" value-type="Date" nullable="false" />
    <var name="key-id" value-type="int" key-member="id" />
    <primary-key name="PRIMARY" members="id" />
    <readsets>
      <readset name="FULL" all="true" />
    </readsets>
    <updatesets>
      <updateset name="FULL" all="true" />
    </updatesets>
    <query-defs>
      <query name="find-by-PK" type="SELECT">
        <param name="key-id" />
        <statement><![CDATA[SELECT <FIELDS/>
        FROM <TABLE/>
        WHERE <FIELD name='id'/> = ${key-id}]]></statement>
      </query>
      <query name="insert" type="INSERT">
        <statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
        VALUES(<VALUES/>)]]></statement>
      </query>
      <query name="update-by-PK" type="UPDATE">
        <param name="key-id" />
        <statement><![CDATA[UPDATE <TABLE/>
        SET <FIELDS/>
        WHERE <FIELD name='id'/> = ${key-id}]]></statement>
      </query>
      <query name="delete-by-PK" type="DELETE">
        <param name="key-id" />
        <statement><![CDATA[DELETE FROM <TABLE/>
        WHERE <FIELD name='id'/> = ${key-id}]]></statement>
      </query>
    </query-defs>
  </entity>
</entities>





© 2015 - 2025 Weber Informatics LLC | Privacy Policy