19 package com.mysql.clusterj.jpatest.model;
24 static final int PK_MODULUS = 3;
27 static final long PRETTY_BIG_NUMBER = 1000000000000000L;
29 protected static long getPK1(
int index) {
30 return PRETTY_BIG_NUMBER * ((index / PK_MODULUS / PK_MODULUS) % PK_MODULUS);
33 protected static long getPK2(
int index) {
34 return PRETTY_BIG_NUMBER * ((index / PK_MODULUS) % PK_MODULUS);
37 protected static String getPK3(
int index) {
38 return "" + (index % PK_MODULUS);
41 protected static String getValue(
int index) {
42 return "Value " +
index;