src/org/openbravo/erpCommon/ad_callouts/SL_IsDefault_data.xsql
author RM packaging bot <staff.rm@openbravo.com>
Wed, 25 May 2011 10:31:25 +0000
changeset 9449 d467781fb9a6
parent 9072 79e55dfc8af0
permissions -rw-r--r--
Update AD_MODULE version to 2.50MP30
asier@978
     1
<?xml version="1.0" encoding="UTF-8" ?>
asier@978
     2
<!--
asier@978
     3
 *************************************************************************
asier@978
     4
 * The contents of this file are subject to the Openbravo  Public  License
priya@9072
     5
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
asier@978
     6
 * Version 1.1  with a permitted attribution clause; you may not  use this
asier@978
     7
 * file except in compliance with the License. You  may  obtain  a copy of
asier@978
     8
 * the License at http://www.openbravo.com/legal/license.html 
asier@978
     9
 * Software distributed under the License  is  distributed  on  an "AS IS"
asier@978
    10
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
asier@978
    11
 * License for the specific  language  governing  rights  and  limitations
asier@978
    12
 * under the License. 
asier@978
    13
 * The Original Code is Openbravo ERP. 
ggi@6701
    14
 * The Initial Developer of the Original Code is Openbravo SLU 
ggi@6701
    15
 * All portions are Copyright (C) 2008 Openbravo SLU 
asier@978
    16
 * All Rights Reserved. 
asier@978
    17
 * Contributor(s):  ______________________________________.
asier@978
    18
 ************************************************************************
asier@978
    19
-->
asier@978
    20
asier@978
    21
asier@978
    22
asier@978
    23
asier@978
    24
asier@978
    25
<SqlClass name="SLIsDefaultData" package="org.openbravo.erpCommon.ad_callouts">
asier@978
    26
  <SqlMethod name="select" type="preparedStatement" return="multiple">
asier@978
    27
    <SqlMethodComment></SqlMethodComment>
asier@978
    28
    <Sql>
asier@978
    29
      <![CDATA[
asier@978
    30
      SELECT TableName, ColumnName, '' as total
asier@978
    31
        FROM AD_TABLE T, AD_Column C
juanpablo@1605
    32
       WHERE T.AD_Table_ID = ?
asier@978
    33
         AND C.AD_Table_ID = T.AD_Table_ID
asier@978
    34
         AND (C.Iskey = 'Y' or C.IsSecondaryKey = 'Y')         
asier@978
    35
      ]]>
asier@978
    36
    </Sql>
asier@978
    37
    <Parameter name="tableId"/>
asier@978
    38
  </SqlMethod>
asier@978
    39
  
asier@978
    40
  <SqlMethod name="selectHasDefaults" type="preparedStatement" return="string">
asier@978
    41
    <SqlMethodComment></SqlMethodComment>
asier@978
    42
    <Sql>
asier@978
    43
      <![CDATA[
asier@978
    44
      SELECT count(*) as total
asier@978
    45
        FROM AD_Window
asier@978
    46
       WHERE isDefault = 'Y'
asier@978
    47
         AND 1=1 AND 2=2
asier@978
    48
         AND 3=3 AND 4=4
juanpablo@1605
    49
         AND AD_Org_ID = ?
asier@978
    50
      ]]>
asier@978
    51
    </Sql>
asier@978
    52
    <Parameter name="tablename" type="replace" optional="true" after="FROM " text="AD_Window"/>
asier@978
    53
    <Parameter name="parentClause" type="replace" optional="true" after="1=1 " text="AND 2=2"/>
asier@978
    54
    <Parameter name="currentClause" type="replace" optional="true" after="3=3 " text="AND 4=4"/>
asier@978
    55
    <Parameter name="orgId"/>
asier@978
    56
  </SqlMethod>
asier@978
    57
  
asier@978
    58
</SqlClass>