{
/* there can be only one PK in truth, but the model allows more than one. */
List<PrimaryKeyConstraint> pks = constraints.getPrimaryKeyConstraints();
if (pks != null && pks.size() == 1)
{
PrimaryKeyConstraint pk = pks.get(0);
buf.append("\tCONSTRAINT [");
buf.append(pk.getConstraintName());
buf.append("] PRIMARY KEY ");
buf.append(pk.isClustered() ? "CLUSTERED" : "NONCLUSTERED");
buf.append("\n\t(\n\t\t");
Object[] cols = pk.getConstraintColumns();
for (int i = 0; i < cols.length; i++)
{
buf.append("[");
buf.append((String) cols[i]);
buf.append("]");