Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/DATT/src/org/litesoft/datt/server/pos/StoryUpdate.java

Diff revisions: vs.
  @@ -7,54 +7,43 @@
7 7 import org.litesoft.orsup.base.*;
8 8 import org.litesoft.orsup.transact.*;
9 9
10 - public class StoryUpdate extends StoryUpdateGO
11 - {
12 - public StoryUpdate( Transaction pTransaction )
13 - {
10 + public class StoryUpdate extends StoryUpdateGO {
11 + public StoryUpdate( Transaction pTransaction ) {
14 12 super( pTransaction );
15 13 }
16 14
17 - public StoryUpdate( ConstructionControl pConstructionControl )
18 - {
15 + public StoryUpdate( ConstructionControl pConstructionControl ) {
19 16 super( pConstructionControl );
20 17 }
21 18
22 - public StoryUpdate( Transaction pTransaction, User pChanger )
23 - {
19 + public StoryUpdate( Transaction pTransaction, User pChanger ) {
24 20 this( pTransaction );
25 21 setByWhom( pChanger );
26 22 }
27 23
28 - public StoryUpdate( Transaction pTransaction, User pChanger, String pMessage )
29 - {
24 + public StoryUpdate( Transaction pTransaction, User pChanger, String pMessage ) {
30 25 this( pTransaction, pChanger );
31 26 setMessage( pMessage );
32 27 }
33 28
34 29 @Override
35 - public int compareTo( PersistentObject pOther )
36 - {
37 - if ( pOther instanceof StoryUpdate )
38 - {
30 + public int compareTo( PersistentObject pOther ) {
31 + if ( pOther instanceof StoryUpdate ) {
39 32 StoryUpdate them = (StoryUpdate) pOther;
40 33 return CompareSupport.compare( them.getCreated(), this.getCreated() );
41 34 }
42 35 return getPersistentObjectURL().compareTo( pOther.getPersistentObjectURL() );
43 36 }
44 37
45 - public void toString( StringBuilder pSb )
46 - {
47 - if ( pSb.length() != 0 )
48 - {
38 + public void toString( StringBuilder pSb ) {
39 + if ( pSb.length() != 0 ) {
49 40 pSb.append( '\n' );
50 41 }
51 42 pSb.append( TypeConverter.to_SimpleTimestamp( TimeRes.ToMIN, getCreated() ) ).append( " - " ).append( getByWhom() ).append( '\n' );
52 - if ( Strings.isNotNullOrEmpty( getMessage() ) )
53 - {
43 + if ( Strings.isNotNullOrEmpty( getMessage() ) ) {
54 44 pSb.append( " " ).append( getMessage() ).append( '\n' );
55 45 }
56 - for ( StoryChange zChange : getChanges() )
57 - {
46 + for ( StoryChange zChange : getChanges() ) {
58 47 pSb.append( " " ).append( zChange ).append( '\n' );
59 48 }
60 49 }