public boolean isSingleKey(){
  String[] keys=getKeyColumns();
  return keys.length == 1;
}

public boolean isSingleKey ( ) { String [ ] keys = getKeyColumns ( ) ; return keys . length == 1 ; }
table has a single key
