com.unboundid.ldap.sdk.persist.LDAPEntryField Maven / Gradle / Ivy
/*
* Copyright 2009-2017 UnboundID Corp.
* All Rights Reserved.
*/
/*
* Copyright (C) 2009-2017 UnboundID Corp.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPLv2 only)
* or the terms of the GNU Lesser General Public License (LGPLv2.1 only)
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see .
*/
package com.unboundid.ldap.sdk.persist;
import java.lang.annotation.ElementType;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation type may be used to mark a field whose value should be the
* full entry from which the corresponding object was initialized. This
* annotation type should only be used for at most one field in a given class,
* and that class must be marked with the {@link LDAPObject} annotation type.
* The field marked with this annotation type must have a type of
* {@link com.unboundid.ldap.sdk.ReadOnlyEntry}. Objects which may be altered
* using modify operations through the persistence framework should contain a
* field with this annotation to make it possible to accurately determine
* exactly what changes need to be made to the entry in the directory.
*/
@Documented()
@Retention(RetentionPolicy.RUNTIME)
@Target(value={ElementType.FIELD})
public @interface LDAPEntryField
{
}