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

org.bsc.bean.PrimaryKey Maven / Gradle / Ivy

package org.bsc.bean;


/**
 *
 * class for support of composite primary key
 *
 * @author Bartolomeo Sorrentino
 * @version 1.3
 */

public class PrimaryKey {
  private java.util.ArrayList keys;

  protected PrimaryKey() {
    keys = new java.util.ArrayList();
  }

  /**
   *
   */
  public PropertyDescriptorPK get( int index ) {
    return keys.get(index);
  }

  /**
   *
   */
  public int getKeyCount() {
    return keys.size();
  }

  protected void add( PropertyDescriptorPK pk ) {
    keys.add(pk);
  }

  /**
   * create a param list using primary key
   * NB
   * 
   * last character is a comma
   * 
* * @param sb string buffer to append result * @return */ protected StringBuilder appendToPropertyValues( StringBuilder sb ) { for( int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy