Changeset 5021 for trunk/src/core/common-queries.xml
- Timestamp:
- Jun 26, 2009, 2:07:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/common-queries.xml
r4910 r5021 3461 3461 </description> 3462 3462 </query> 3463 <query id="SET_INTENSITYTRANSFORM_ON_BIOASSAYSETS" type="HQL"> 3464 <sql> 3465 UPDATE BioAssaySetData bas 3466 SET bas.intensityTransform = :transform 3467 WHERE bas.intensityTransform IS NULL 3468 </sql> 3469 <description> 3470 An update query that sets the intensityTransform on all 3471 bioassay sets that doesn't have a value. 3463 <query id="FIND_USED_TYPES_IN_ANYTOANY" type="SQL"> 3464 <sql> 3465 SELECT [a].[from_type] FROM [AnyToAny] [a] 3466 UNION 3467 SELECT [a].[to_type] FROM [AnyToAny] [a] 3468 </sql> 3469 <description> 3470 An SQL query that selects all used item types in any-to-any 3471 links. It must select both the the 'from' and 'to' item type. 3472 </description> 3473 </query> 3474 <query id="SELECT_STRAY_ANYTOANY" type="SQL"> 3475 <sql> 3476 SELECT [a].[id] 3477 FROM [AnyToAny] [a] 3478 LEFT JOIN [{1}] [t] 3479 ON ([t].[id] = [a].[from_id] AND [a].[from_type] = :type) 3480 OR ([t].[id] = [a].[to_id] AND [a].[to_type] = :type) 3481 WHERE [t].[id] IS NULL 3482 AND ([a].[from_type] = :type OR [a].[to_type] = :type) 3483 </sql> 3484 <description> 3485 An SQL query that selects the ID of all any-to-any links were 3486 either the 'from' or 'to' item is missing. A single query 3487 is used to delete all items of a specific type (both 3488 'from' and 'to). 3489 </description> 3490 </query> 3491 <query id="DELETE_STRAY_ANYTOANY" type="HQL"> 3492 <sql> 3493 DELETE FROM AnyToAnyData 3494 WHERE id IN (:ids) 3495 </sql> 3496 <description> 3497 A HQL query that deletes all any-to-any links with the 3498 id's given in the list. 3472 3499 </description> 3473 3500 </query>
Note: See TracChangeset
for help on using the changeset viewer.