Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2010 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.kuali.student.r2.common.infc;

Common service pattern for entities. This interface is applied to entites that are identified by a Key.

public interface HasKey 
    extends HasPrimaryKey {

Unique key to this object. Unlike an Id this key can be explicitly set by the application and is intended to be "somewhat" readable by a human. A Key:
  • A Key is used when the actual value is important
  • A Key value might be
  • A Key on occasion may be used or seen by an end user.
  • Keys are assumed to have the same values in different KS implementations
  • Key values are defined in configuration
  • Key values have significance in that they are referenced in Configuration
  • Key values are expected to be occasionally used in application code
Once an object is created with the specified key it cannot be changed. Instead the object must be deleted or in-activated and a new object created with the right key.

on updates
on updates
    public String getKey();
New to GrepCode? Check out our FAQ X