Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/PoVoGenerator/Generator/src/org/litesoft/generator/GenerateVO.java

Diff revisions: vs.
  @@ -4,32 +4,25 @@
4 4 import org.litesoft.aokeyhole.objects.*;
5 5 import org.litesoft.codegen.*;
6 6
7 - public class GenerateVO extends AbstractVOFileGenerator
8 - {
9 - public GenerateVO( ErrorSinc pErrorSinc, ObjectMetaData pObjectMetaData, DerivedObjectTuple pDerivedFromObject, ObjectRef pObjectRef, ObjectRef pParentObjectRef )
10 - {
7 + public class GenerateVO extends AbstractVOFileGenerator {
8 + public GenerateVO( ErrorSinc pErrorSinc, ObjectMetaData pObjectMetaData, DerivedObjectTuple pDerivedFromObject, ObjectRef pObjectRef,
9 + ObjectRef pParentObjectRef ) {
11 10 super( pErrorSinc, pObjectMetaData, pDerivedFromObject, pObjectRef, "", pParentObjectRef );
12 11 }
13 12
14 13 @Override
15 - protected void LLaddClassDefinition()
16 - {
17 - if ( mIsParent )
18 - {
14 + protected void LLaddClassDefinition() {
15 + if ( mIsParent ) {
19 16 makeClassAbstract();
20 17 addClassDefinition( mClassName + "<T extends " + mObjectName + "<T>>", mClassName + "GO<T>" );
21 - }
22 - else
23 - {
18 + } else {
24 19 addClassDefinition( mClassName, mClassName + "GO" );
25 20 }
26 21 }
27 22
28 23 @Override
29 - protected void LLaddClassBody()
30 - {
31 - if ( mIsParent )
32 - {
24 + protected void LLaddClassBody() {
25 + if ( mIsParent ) {
33 26 addLine( "protected " + mClassName + "( " + mObjectName + "MetaData<T> pMetaData ) // For Serialization" ); // constructor w/ comment
34 27 addBlockStart();
35 28 addLine( "super( pMetaData );" );
  @@ -37,9 +30,7 @@
37 30 addConstructorProtected( mClassName, mObjectName + "MetaData<T> pMetaData", "boolean pNew", "org.litesoft.bo.views.TransactionSet pTransactionSet" );
38 31 addLine( "super( pMetaData, pNew, pTransactionSet );" );
39 32 addBlockEnd();
40 - }
41 - else
42 - {
33 + } else {
43 34 addLine( "@Deprecated" );
44 35 addLine( "protected " + mClassName + "() // For Serialization" ); // constructor w/ comment
45 36 addBlockStart();