org.milyn.scribe.annotation
Annotation Type Update


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Update

Indicates that this method updates entities.

The method must have only one parameter. This parameter is for the entity that is going to be updated.

This annotation should only be used on classes that are annotated with the Dao annotation.

Author:
maurice.zeijen@smies.com

Optional Element Summary
 boolean isDefault
          If this method is the default update method of the DAO.
 String name
          The name of the update operation.
 

name

public abstract String name
The name of the update operation. If it is not set then the name of the method will be the name of the operation.

Returns:
the operation name
Default:
""

isDefault

public abstract boolean isDefault
If this method is the default update method of the DAO. Only one method can be set to the default update method. If only one method with the Delete annotation is present then that method is automatically the default method.

Returns:
if the method is the default update method
Default:
false


Copyright © 2011. All Rights Reserved.