| 1 | | | #copyrightHeader() |
| 2 | | | |
| 3 | | | package ${package}; |
| 4 | | | |
| 5 | | | #set($imports = $cmpgen.buildHelperImportList($stmt)) |
| 6 | | | #foreach($import in $imports) |
| 7 | | | import ${import}; |
| 8 | | | #end |
| 9 | | | |
| 10 | | | /** |
| 11 | | | * Read only view to a typed $baseName. |
| 12 | | | * @author fawkeZ (jCoderZ.org) $cmpgen.getVersion() |
| 13 | | | */ |
| 14 | | | public interface ${baseName}Value |
| 15 | | | extends java.io.Serializable |
| 16 | | | { |
| 17 | | | #foreach($column in $stmt.getColumns()) |
| 18 | | | #if(!$column.isSkipInInterface()) |
| 19 | | | #computeFields() |
| 20 | | | #if(!$column.isPeriodDefined()) |
| 21 | | | #if($column.getLoadMethod()) |
| 22 | | | /** |
| 23 | | | * Returns the ${javaFieldName}. |
| 24 | | | * @return the ${javaFieldName}. |
| 25 | | | */ |
| 26 | | | $complexType get$javaFieldName (); |
| 27 | | | |
| 28 | | | #else |
| 29 | | | /** |
| 30 | | | * Returns the ${javaFieldName}. |
| 31 | | | * @return the ${javaFieldName}. |
| 32 | | | */ |
| 33 | | | $javaType $simpleGetterName (); |
| 34 | | | |
| 35 | | | #end |
| 36 | | | #else |
| 37 | | | /** |
| 38 | | | * Returns the $column.getPeriodFieldName(). |
| 39 | | | * @return the $column.getPeriodFieldName(). |
| 40 | | | */ |
| 41 | | | Period get$column.getPeriodFieldName() (); |
| 42 | | | |
| 43 | | | #end |
| 44 | | | #end |
| 45 | | | #end |
| 46 | | | |
| 47 | | | ${baseName}Data toData (); |