Id

Id

Simple ID generator. ID equals GenerationContext.getID(), starting at 0. Starting point can be modified withmin parameter

Attributes
Name Description Required Min Max Allowed Values
name (Class)Name of this element. Used to identify plugin Class. Full name is required. Example: com.en.myPluginPackage.myPuginClass no 0 1
id Identification String of this element. May be used to uniquely identify a field within the children of an Element. no 0 1
Nodes
Name Description Required Min Max Allowed Values
min Content type: Long
Start offset for ID's. If min = 5, generated ID's will range from [5,6,..,n].
Default: 0
no 0 1

Examples

  1. Default IDs

    Generates IDs starting at 0 (default).

    Schema config for Default IDs
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!--
    /*******************************************************************************
    * Copyright (c) 2013, bankmark and/or its affiliates. All rights reserved.
    * bankmark UG PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    ******************************************************************************/
    --><schema xmlns:doc="http://bankmark.de/pdgf/doc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="demo" xsi:noNamespaceSchemaLocation="structure/pdgfSchema.xsd">
      <!-- All data is derived from this starting seed.
           If this seed is the same, the generated data will the same on each
           computer/node/platform.
           Change this seed to generate a different data set.-->
      <seed>1234567890L</seed>
    
      <rng name="PdgfDefaultRandom"/>
    
      <!--Default Scale factor for all tables -->
      <property name="SF" type="double">1</property>
    
      <table name="ID">
        <!-- if tables should scale with -SF command line argument.
             Specify your scaling formula here: -->
        <size>10 * ${SF}</size>
    
        <!--Default IDs-->
          <!--Generates IDs starting at 0 (default).-->
          <field name="id" size="" type="NUMERIC">
            <gen_Id>
            </gen_Id>
          </field>
          </table>
    </schema>
    
    Output for Default IDs
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
  2. 90s IDs

    Generates IDs starting at 90.

    Schema config for 90s IDs
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!--
    /*******************************************************************************
    * Copyright (c) 2013, bankmark and/or its affiliates. All rights reserved.
    * bankmark UG PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    ******************************************************************************/
    --><schema xmlns:doc="http://bankmark.de/pdgf/doc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="demo" xsi:noNamespaceSchemaLocation="structure/pdgfSchema.xsd">
      <!-- All data is derived from this starting seed.
           If this seed is the same, the generated data will the same on each
           computer/node/platform.
           Change this seed to generate a different data set.-->
      <seed>1234567890L</seed>
    
      <rng name="PdgfDefaultRandom"/>
    
      <!--Default Scale factor for all tables -->
      <property name="SF" type="double">1</property>
    
      <table name="ID">
        <!-- if tables should scale with -SF command line argument.
             Specify your scaling formula here: -->
        <size>10 * ${SF}</size>
    
        <!--90s IDs-->
          <!--Generates IDs starting at 90.-->
          <field name="id_90" size="" type="NUMERIC">
            <gen_Id>
              <min>90</min>
            </gen_Id>
          </field>
          </table>
    </schema>
    
    Output for 90s IDs
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
2.7-83fb0 | 2020-04-22