report-codegen.xml 14.7 KB
<?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="65535" 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="alert-summary" table="alert_summary" alias="as">
    <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="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>
  <entity name="alteration" table="alteration" alias="a2">
    <member name="id" field="id" value-type="int" length="10" nullable="false" key="true" auto-increment="true" />
    <member name="type" field="type" value-type="String" length="64" nullable="false" />
    <member name="title" field="title" value-type="String" length="128" nullable="false" />
    <member name="domain" field="domain" value-type="String" length="128" nullable="false" />
    <member name="hostname" field="hostname" value-type="String" length="128" nullable="false" />
    <member name="ip" field="ip" value-type="String" length="128" />
    <member name="date" field="date" value-type="Date" nullable="false" />
    <member name="user" field="user" value-type="String" length="45" nullable="false" />
    <member name="alt-group" field="alt_group" value-type="String" length="45" />
    <member name="content" field="content" value-type="String" length="65535" nullable="false" />
    <member name="url" field="url" value-type="String" length="200" />
    <member name="status" field="status" value-type="int" length="3" />
    <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" />
    <index name="ind_date_domain_host" members="date ASC, domain ASC, hostname 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="baseline" table="baseline" alias="b">
    <member name="id" field="id" value-type="int" length="10" nullable="false" key="true" auto-increment="true" />
    <member name="report-name" field="report_name" value-type="String" length="100" />
    <member name="index-key" field="index_key" value-type="String" length="100" />
    <member name="report-period" field="report_period" value-type="Date" />
    <member name="data" field="data" value-type="byte[]" length="65535" />
    <member name="creation-date" field="creation_date" value-type="Date" />
    <var name="key-id" value-type="int" key-member="id" />
    <primary-key name="PRIMARY" members="id" />
    <index name="ix_indexkey_reportperiod" members="index_key ASC, report_period ASC" />
    <index name="ix_reportperiod" members="report_period 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="config-modification" table="config_modification" alias="cm">
    <member name="id" field="id" value-type="int" length="10" nullable="false" key="true" auto-increment="true" />
    <member name="user-name" field="user_name" value-type="String" length="64" nullable="false" />
    <member name="account-name" field="account_name" value-type="String" length="64" nullable="false" />
    <member name="action-name" field="action_name" value-type="String" length="64" nullable="false" />
    <member name="argument" field="argument" value-type="String" length="2147483647" />
    <member name="date" field="date" value-type="Date" 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="overload" table="overload" alias="o">
    <member name="id" field="id" value-type="int" length="10" nullable="false" key="true" auto-increment="true" />
    <member name="report-id" field="report_id" value-type="int" length="10" nullable="false" />
    <member name="report-type" field="report_type" value-type="int" length="3" nullable="false" />
    <member name="report-size" field="report_size" value-type="double" length="22" nullable="false" />
    <member name="period" field="period" value-type="Date" 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" />
    <index name="period" members="period 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="topology-graph" table="topologyGraph" alias="t">
    <member name="id" field="id" value-type="int" length="10" nullable="false" key="true" auto-increment="true" />
    <member name="ip" field="ip" value-type="String" length="50" nullable="false" />
    <member name="period" field="period" value-type="Date" nullable="false" />
    <member name="type" field="type" value-type="int" length="3" nullable="false" />
    <member name="content" field="content" value-type="byte[]" length="2147483647" />
    <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" />
    <index name="period" members="period 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>