    View Javadoc
    1   /*
    2    * Copyright (c) 2003
    3    * Information Desire GmbH
    4    * All rights reserved.
    5    */
    6   package com.infodesire.infobit.dao;
    7
    8   import com.infodesire.infobit.data.Script;
    9   import com.infodesire.infobit.data.Keyworded;
    10  import com.infodesire.infobit.data.Indexable;
    11  import com.infodesire.infobit.data.Infobit;
    12
    13  import java.util.Map;
    14  import java.util.HashMap;
    15  import java.util.Collections;
    16  /***
    17   * @author               konstantin
    18   * @created              August 19, 2003
    19   * @version              $Revision: 1.5 $
    20   * @hibernate.subclass   discriminator-value="Script"
    21   */
    22  class ScriptImpl extends ContentImpl implements Script, Keyworded, Indexable {
    23
    24      /***
    25       */
    26      private Infobit _template;
    27
    28      /***
    29       */
    30      private Map     _links = new HashMap();
    31
    32
    33      /***
    34       * Gets the Template attribute of the Script object
    35       *
    36       * @return                  The Template value
    37       * @hibernate.many-to-one   cascade="none" column="templateid"
    38       *      not-null="false" class="com.infodesire.infobit.dao.InfobitImpl"
    39       *      outer-join="true"
    40       */
    41      public Infobit getTemplate() {
    42          return _template;
    43      }
    44
    45
    46      /***
    47       * We do not like idea of modifying links of script with dirty hands...
    48       *
    49       * @return   The Links value
    50       */
    51      public Map getLinks() {
    52          return Collections.unmodifiableMap(getLinksImpl());
    53      }
    54
    55
    56
    57      /***
    58       * Sets the Template attribute of the Script object
    59       *
    60       * @param template  The new Template value
    61       */
    62      public void setTemplate(Infobit template) {
    63          _template = template;
    64      }
    65
    66
    67      /***
    68       * Gets the Links attribute of the Script object ( mapped via merge file due
    69       * to xdoclet incapability )
    70       *
    71       * @return                              The Links value
    72       * @hibernate.collection-many-to-many
    73       *      class="com.infodesire.infobit.dao.InfobitImpl"
    74       * @hibernate.map                       cascade="all" lazy="true"
    75       *      table="links"
    76       * @hibernate.collection-index          column="linkname" type="string"
    77       * @hibernate.collection-key            column="script_id"
    78       */
    79      Map getLinksImpl() {
    80          return _links;
    81      }
    82
    83
    84      /***
    85       * Sets the Links attribute of the Script object
    86       *
    87       * @param links  The new Links value
    88       */
    89      void setLinksImpl(Map links) {
    90          _links = links;
    91      }
    92
    93  }
    94

This page was automatically generated by Maven