this.keyGeneratorKeys = keyGeneratorKeys;
}
@SuppressWarnings("unchecked")
public void populateKeyGeneratorKeys(EntityManager em) {
DynamicQuery getKeysQuery = new DynamicQuery();
getKeysQuery.append("select t.entityKey from Tmodel t").pad().WHERE().pad();
DynamicQuery.Parameter pubParam = new DynamicQuery.Parameter("t.authorizedName",
getAuthorizedName(),
DynamicQuery.PREDICATE_EQUALS);
DynamicQuery.Parameter keyParam = new DynamicQuery.Parameter("UPPER(t.entityKey)",
(DynamicQuery.WILDCARD + KeyGenerator.KEYGENERATOR_SUFFIX).toUpperCase(),
DynamicQuery.PREDICATE_LIKE);
getKeysQuery.appendGroupedAnd(pubParam, keyParam);
Query qry = getKeysQuery.buildJPAQuery(em);
keyGeneratorKeys = qry.getResultList();
}