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

JETSPEED-INF.ojb.profiler_repository.xml Maven / Gradle / Ivy

There is a newer version: 2.3.1
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
   - P R O F I L I N G  R U L E
-->	
 <descriptor-repository version="1.0">
   <class-descriptor class="org.apache.jetspeed.profiler.rules.impl.AbstractProfilingRule">
      <extent-class class-ref="org.apache.jetspeed.profiler.rules.impl.StandardProfilingRule" />
      <extent-class class-ref="org.apache.jetspeed.profiler.rules.impl.RoleFallbackProfilingRule" />
   </class-descriptor>
          
<class-descriptor
    class="org.apache.jetspeed.profiler.rules.impl.StandardProfilingRule"
    table="PROFILING_RULE"
>     
    <field-descriptor
     name="id"
     column="RULE_ID"
     jdbc-type="VARCHAR"
     primarykey="true"
     autoincrement="false"         
    />
    <field-descriptor
     name="ojbConcreteClass"
     column="CLASS_NAME"
     jdbc-type="VARCHAR"
    />
    <field-descriptor
     name="title"
     column="TITLE"
     jdbc-type="VARCHAR"
    />    
      <collection-descriptor
         name="criteria"
         element-class-ref="org.apache.jetspeed.profiler.rules.impl.RuleCriterionImpl" 
         auto-delete="object"
         auto-update = "object"
         auto-retrieve = "true"
       >
       <inverse-foreignkey field-ref="ruleId"/>
       <orderby name="fallbackOrder" sort="ASC"/>
      </collection-descriptor>


</class-descriptor>

<class-descriptor
    class="org.apache.jetspeed.profiler.rules.impl.RoleFallbackProfilingRule"
    table="PROFILING_RULE"
>     
    <field-descriptor
     name="id"
     column="RULE_ID"
     jdbc-type="VARCHAR"
     primarykey="true"
     autoincrement="false"         
    />
    <field-descriptor
     name="ojbConcreteClass"
     column="CLASS_NAME"
     jdbc-type="VARCHAR"
    />
    <field-descriptor
     name="title"
     column="TITLE"
     jdbc-type="VARCHAR"
    />    
    <collection-descriptor
         name="criteria"
         element-class-ref="org.apache.jetspeed.profiler.rules.impl.RuleCriterionImpl" 
         auto-retrieve="true"
         auto-update="object"
         auto-delete="object"
    >
    <inverse-foreignkey field-ref="ruleId"/>
    <orderby name="fallbackOrder" sort="ASC"/>       
    </collection-descriptor>
</class-descriptor>

<!--
   - R U L E  C R I T E R I O N
-->	

<class-descriptor
    class="org.apache.jetspeed.profiler.rules.impl.RuleCriterionImpl"
    table="RULE_CRITERION"
>     
    <field-descriptor
     name="id"
     column="CRITERION_ID"
     jdbc-type="VARCHAR"
     primarykey="true"
     autoincrement="true"         
    />
    <field-descriptor
     name="ruleId"
     column="RULE_ID"
     jdbc-type="VARCHAR"
    />
    <field-descriptor
     name="fallbackOrder"
     column="FALLBACK_ORDER"
     jdbc-type="INTEGER"
    />    
    <field-descriptor
     name="type"
     column="REQUEST_TYPE"
     jdbc-type="VARCHAR"
    />    
    <field-descriptor
     name="name"
     column="NAME"
     jdbc-type="VARCHAR"
    />    
    <field-descriptor
     name="value"
     column="COLUMN_VALUE"
     jdbc-type="VARCHAR"
    />    
    <field-descriptor 
        name="fallbackType" 
        jdbc-type="INTEGER"
        column="FALLBACK_TYPE" 
    />

</class-descriptor>

<!--
   - P R I N C I P A L  R U L E
-->	

<class-descriptor
    class="org.apache.jetspeed.profiler.rules.impl.PrincipalRuleImpl"
    table="PRINCIPAL_RULE_ASSOC"
>     
    <field-descriptor
     name="principalName"
     column="PRINCIPAL_NAME"
     jdbc-type="VARCHAR"
     primarykey="true"
     autoincrement="false"           
    />
    <field-descriptor
     name="locatorName"
     column="LOCATOR_NAME"
     jdbc-type="VARCHAR"
     primarykey="true"
     autoincrement="false"           
    />    
    <field-descriptor
     name="ruleId"
     column="RULE_ID"
     jdbc-type="VARCHAR"
    />
    <reference-descriptor 
      name="profilingRule" 
      class-ref="org.apache.jetspeed.profiler.rules.impl.AbstractProfilingRule" 
      auto-delete="false"  
      auto-retrieve="true"  
      >
     <foreignkey field-ref="ruleId"/>
    </reference-descriptor>

</class-descriptor>

</descriptor-repository>      




© 2015 - 2024 Weber Informatics LLC | Privacy Policy