/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package singleton;

/**
 *
 * @author user
 */

public class PrimaryKey {
	private static PrimaryKey pk;
	private static int cournter;
	private PrimaryKey(){
		// code here
	}
	public static PrimaryKey getInstance(){
		if(pk==null){
			pk = new PrimaryKey();
		}
		return pk;
	}
	public int getPK(){
		return cournter++;
	}
}