|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=SOURCE) @Target(value=TYPE) public @interface RowType
Annotation marking that annotated class is a Java representation of a database row (analogous of %ROWTYPE in PL/SQL). Preprocessor generates getter methods and implementations for such classes to provide access to database row fields.
Annotation can be applied to:
Example 1 - nested classes usage:
@SQLG public class Test extends GBase { @RowType public abstract static class DataRow { ... } @RowType public interface ValueRow { ... } }Example 2 - top-level classes usage:
@RowType public class DataRow { ... }In both cases whole body of class is overwritten by preprocessor, but additional annotations/extends/implements are left as is.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |