![JAR search and dependency download from the Maven repository](/logo.png)
org.kuali.student.r2.common.infc.HasKey Maven / Gradle / Ivy
/**
* 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
*
* http://www.osedu.org/licenses/ECL-2.0
*
* 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.
*
* @author nwright
*/
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 kuali.org.School
* - 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.
*
* @name Key
* @readOnly on updates
* @required on updates
*/
public String getKey();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy