org.milyn.scribe.annotation
Annotation Type Insert


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

Indicates that this method inserts entities.

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

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 insert method of the DAO.
 String name
          The name of the insert operation.
 

name

public abstract String name
The name of the insert 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 insert method of the DAO. Only one method can be set to the default insert 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 insert method
Default:
false


Copyright © 2014. All Rights Reserved.