1 10 11 package com.triactive.jdo.store; 12 13 14 class PrimaryKeyIdentifier extends SQLIdentifier 15 { 16 public PrimaryKeyIdentifier(BaseTable table) 17 { 18 super(table.getStoreManager().getDatabaseAdapter()); 19 20 this.javaName = null; 21 22 String baseID = truncate(table.getName().getSQLIdentifier(), getMaxLength() - 4); 23 24 setSQLIdentifier(baseID + "_PK"); 25 } 26 27 28 protected int getMaxLength() 29 { 30 return dba.getMaxConstraintNameLength(); 31 } 32 } 33 | Popular Tags |