added setPrimaryKey & getPrimaryKey method for record class