|
@@ -10,8 +10,7 @@ |
10 |
10 |
|
|
11 |
11 |
|
public abstract class ReportGO<T extends Report> |
12 |
12 |
|
extends org.litesoft.orsup.nonpublic.PersistentObjectImpl<T> |
13 |
|
- |
implements HasAttributes |
14 |
|
- |
{ |
|
13 |
+ |
implements HasAttributes { |
15 |
14 |
|
public static final String[] sValidOptionsReportType = // |
16 |
15 |
|
{ // |
17 |
16 |
|
ReportNames.poReportType_Provider_Basic, // |
|
@@ -24,13 +23,11 @@ |
24 |
23 |
|
ReportNames.poReportType_Inventory_Histogram, // |
25 |
24 |
|
}; |
26 |
25 |
|
|
27 |
|
- |
protected ReportGO( MetaDataForPO pMetaDataForPO, Transaction pTransaction ) |
28 |
|
- |
{ |
|
26 |
+ |
protected ReportGO( MetaDataForPO pMetaDataForPO, Transaction pTransaction ) { |
29 |
27 |
|
super( pMetaDataForPO, pTransaction ); |
30 |
28 |
|
} |
31 |
29 |
|
|
32 |
|
- |
protected ReportGO( MetaDataForPO pMetaDataForPO, ConstructionControl pConstructionControlExpected, ConstructionControl pConstructionControlActual ) |
33 |
|
- |
{ |
|
30 |
+ |
protected ReportGO( MetaDataForPO pMetaDataForPO, ConstructionControl pConstructionControlExpected, ConstructionControl pConstructionControlActual ) { |
34 |
31 |
|
super( pMetaDataForPO, pConstructionControlExpected, pConstructionControlActual ); |
35 |
32 |
|
} |
36 |
33 |
|
|
|
@@ -41,35 +38,29 @@ |
41 |
38 |
|
/** |
42 |
39 |
|
* The path to the output file or image of the report |
43 |
40 |
|
*/ |
44 |
|
- |
public String getOutputFile() |
45 |
|
- |
{ |
|
41 |
+ |
public String getOutputFile() { |
46 |
42 |
|
return mOutputFile; |
47 |
43 |
|
} |
48 |
44 |
|
|
49 |
|
- |
public void setOutputFile( String pOutputFile ) |
50 |
|
- |
{ |
|
45 |
+ |
public void setOutputFile( String pOutputFile ) { |
51 |
46 |
|
verifyMutability( CD_OutputFile, mOutputFile, pOutputFile ); |
52 |
47 |
|
mOutputFile = pOutputFile; |
53 |
48 |
|
} |
54 |
49 |
|
|
55 |
50 |
|
private static class AttributeAccessor_OutputFile |
56 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<Report> |
57 |
|
- |
{ |
58 |
|
- |
public AttributeAccessor_OutputFile() |
59 |
|
- |
{ |
|
51 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<Report> { |
|
52 |
+ |
public AttributeAccessor_OutputFile() { |
60 |
53 |
|
super( "OutputFile", "OutputFile", false, _String.with( MaxLength.of( 40 ), // |
61 |
54 |
|
DisplayLength.of( 20 ) ) ); |
62 |
55 |
|
} |
63 |
56 |
|
|
64 |
57 |
|
@Override |
65 |
|
- |
public Object getValueOnPO( Report pPO ) |
66 |
|
- |
{ |
|
58 |
+ |
public Object getValueOnPO( Report pPO ) { |
67 |
59 |
|
return pPO.getOutputFile(); |
68 |
60 |
|
} |
69 |
61 |
|
|
70 |
62 |
|
@Override |
71 |
|
- |
public void setValueOnPO( Report pPO, Object pValue ) |
72 |
|
- |
{ |
|
63 |
+ |
public void setValueOnPO( Report pPO, Object pValue ) { |
73 |
64 |
|
pPO.setOutputFile( to_String( pValue ) ); |
74 |
65 |
|
} |
75 |
66 |
|
} |
|
@@ -78,34 +69,28 @@ |
78 |
69 |
|
|
79 |
70 |
|
private String mReportType; |
80 |
71 |
|
|
81 |
|
- |
public String getReportType() |
82 |
|
- |
{ |
|
72 |
+ |
public String getReportType() { |
83 |
73 |
|
return mReportType; |
84 |
74 |
|
} |
85 |
75 |
|
|
86 |
|
- |
public void setReportType( String pReportType ) |
87 |
|
- |
{ |
|
76 |
+ |
public void setReportType( String pReportType ) { |
88 |
77 |
|
verifyMutability( CD_ReportType, mReportType, pReportType ); |
89 |
78 |
|
mReportType = pReportType; |
90 |
79 |
|
} |
91 |
80 |
|
|
92 |
81 |
|
private static class AttributeAccessor_ReportType |
93 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<Report> |
94 |
|
- |
{ |
95 |
|
- |
public AttributeAccessor_ReportType() |
96 |
|
- |
{ |
|
82 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<Report> { |
|
83 |
+ |
public AttributeAccessor_ReportType() { |
97 |
84 |
|
super( "ReportType", "ReportType", false, _ValidOptions.with( Options.of( sValidOptionsReportType ) ) ); |
98 |
85 |
|
} |
99 |
86 |
|
|
100 |
87 |
|
@Override |
101 |
|
- |
public Object getValueOnPO( Report pPO ) |
102 |
|
- |
{ |
|
88 |
+ |
public Object getValueOnPO( Report pPO ) { |
103 |
89 |
|
return pPO.getReportType(); |
104 |
90 |
|
} |
105 |
91 |
|
|
106 |
92 |
|
@Override |
107 |
|
- |
public void setValueOnPO( Report pPO, Object pValue ) |
108 |
|
- |
{ |
|
93 |
+ |
public void setValueOnPO( Report pPO, Object pValue ) { |
109 |
94 |
|
pPO.setReportType( to_String( pValue ) ); |
110 |
95 |
|
} |
111 |
96 |
|
} |
|
@@ -114,60 +99,50 @@ |
114 |
99 |
|
|
115 |
100 |
|
final LazyEvalCalendarYMD mRunDate = new LazyEvalCalendarYMD(); |
116 |
101 |
|
|
117 |
|
- |
public CalendarYMD getRunDate() |
118 |
|
- |
{ |
|
102 |
+ |
public CalendarYMD getRunDate() { |
119 |
103 |
|
return mRunDate.getCalendarYMD(); |
120 |
104 |
|
} |
121 |
105 |
|
|
122 |
|
- |
public void setRunDate( CalendarYMD pRunDate ) |
123 |
|
- |
{ |
|
106 |
+ |
public void setRunDate( CalendarYMD pRunDate ) { |
124 |
107 |
|
verifyMutability( CD_RunDate, mRunDate.getCalendarYMD(), pRunDate ); |
125 |
108 |
|
mRunDate.setCalendarYMD( pRunDate ); |
126 |
109 |
|
} |
127 |
110 |
|
|
128 |
111 |
|
private static class AttributeAccessor_RunDate |
129 |
|
- |
extends AttributeAccessorSCDsimplePersistedRegular<Report> |
130 |
|
- |
{ |
131 |
|
- |
public AttributeAccessor_RunDate() |
132 |
|
- |
{ |
|
112 |
+ |
extends AttributeAccessorSCDsimplePersistedRegular<Report> { |
|
113 |
+ |
public AttributeAccessor_RunDate() { |
133 |
114 |
|
super( "RunDate", "RunDate", true, _CalendarYMD ); |
134 |
115 |
|
} |
135 |
116 |
|
|
136 |
117 |
|
@Override |
137 |
|
- |
public Object getValueOnPO( Report pPO ) |
138 |
|
- |
{ |
|
118 |
+ |
public Object getValueOnPO( Report pPO ) { |
139 |
119 |
|
return pPO.getRunDate(); |
140 |
120 |
|
} |
141 |
121 |
|
|
142 |
122 |
|
@Override |
143 |
|
- |
public void setValueOnPO( Report pPO, Object pValue ) |
144 |
|
- |
{ |
|
123 |
+ |
public void setValueOnPO( Report pPO, Object pValue ) { |
145 |
124 |
|
pPO.setRunDate( to_CalendarYMD( pValue ) ); |
146 |
125 |
|
} |
147 |
126 |
|
|
148 |
127 |
|
@Override |
149 |
|
- |
public Object db_getValueOnPO( Report pPO ) |
150 |
|
- |
{ |
|
128 |
+ |
public Object db_getValueOnPO( Report pPO ) { |
151 |
129 |
|
return pPO.mRunDate.getPersistForm(); |
152 |
130 |
|
} |
153 |
131 |
|
|
154 |
132 |
|
@Override |
155 |
|
- |
public void db_setValueOnPO( Report pPO, Object pValue ) |
156 |
|
- |
{ |
|
133 |
+ |
public void db_setValueOnPO( Report pPO, Object pValue ) { |
157 |
134 |
|
pPO.mRunDate.setPersistForm( to_String( pValue ) ); |
158 |
135 |
|
} |
159 |
136 |
|
} |
160 |
137 |
|
|
161 |
138 |
|
static abstract class MyMetaData<T extends Report> |
162 |
|
- |
extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<T> |
163 |
|
- |
{ |
164 |
|
- |
MyMetaData( String pIdentifierName, String pTableName, AttributeAccessorKeySet pAttributeAccessorKeySet, AttributeAccessorSCD... pAccessorSCDs ) |
165 |
|
- |
{ |
|
139 |
+ |
extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<T> { |
|
140 |
+ |
MyMetaData( String pIdentifierName, String pTableName, AttributeAccessorKeySet pAttributeAccessorKeySet, AttributeAccessorSCD... pAccessorSCDs ) { |
166 |
141 |
|
this( null, pIdentifierName, pTableName, pAttributeAccessorKeySet, pAccessorSCDs ); |
167 |
142 |
|
} |
168 |
143 |
|
|
169 |
|
- |
MyMetaData( AttributeAccessorSCD[] pAccessorSCDs, String pIdentifierName, String pTableName, AttributeAccessorKeySet pAttributeAccessorKeySet, AttributeAccessorSCD... pMoreAccessorSCDs ) |
170 |
|
- |
{ |
|
144 |
+ |
MyMetaData( AttributeAccessorSCD[] pAccessorSCDs, String pIdentifierName, String pTableName, AttributeAccessorKeySet pAttributeAccessorKeySet, |
|
145 |
+ |
AttributeAccessorSCD... pMoreAccessorSCDs ) { |
171 |
146 |
|
super( join( pAccessorSCDs, pMoreAccessorSCDs ), pIdentifierName, pTableName, pAttributeAccessorKeySet, // |
172 |
147 |
|
|
173 |
148 |
|
// Regular |