KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > annotations > BatchSize


1 //$Id: BatchSize.java,v 1.2 2005/02/26 00:57:38 epbernard Exp $
2
package org.hibernate.annotations;
3
4 import static java.lang.annotation.ElementType.TYPE JavaDoc;
5 import static java.lang.annotation.ElementType.METHOD JavaDoc;
6 import static java.lang.annotation.ElementType.FIELD JavaDoc;
7
8 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
9
10 import java.lang.annotation.Target JavaDoc;
11 import java.lang.annotation.Retention JavaDoc;
12
13 /**
14  * Batch size for SQL loading
15  *
16  * @author Emmanuel Bernard
17  */

18 @Target JavaDoc({TYPE, METHOD, FIELD}) @Retention JavaDoc(RUNTIME)
19 public @interface BatchSize {
20     /** Strictly positive integer */
21     int size();
22 }
23
Popular Tags