org.milyn.scribe.annotation
Annotation Type Flush


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

Indicates that this method can flush. What 'flush' means depends on the implementation.

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

name

public abstract String name
The name of the flush 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 flush method of the DAO. Only one method can be set to the default flush method. If only one method with the Flush annotation is present then that method is automatically the default method.

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


Copyright © 2018. All rights reserved.