Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/core/Anywhere/src/org/litesoft/bo/change/IChangeTrackingObject.java

Diff revisions: vs.
  @@ -1,38 +1,38 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.bo.change;
3 -
4 - import org.litesoft.bo.*;
5 -
6 - import java.io.*;
7 -
8 - public interface IChangeTrackingObject extends BoAccessor,
9 - Serializable {
10 - public static final int INITIAL_CHANGE_NUMBER = 0;
11 -
12 - public void initialize();
13 -
14 - public boolean isChangeAllowed();
15 -
16 - public int getChangeNumber();
17 -
18 - public boolean isDirty();
19 -
20 - public void requestDelete();
21 -
22 - public boolean isDeleteRequested();
23 -
24 - public boolean isNew();
25 -
26 - public boolean isAnyAttributeChanged();
27 -
28 - /**
29 - * @return if Attribute exists && it has changed
30 - */
31 - public boolean isAttributeChanged( String pAttributeName );
32 -
33 - public String[] getChangedAttributeNames();
34 -
35 - public boolean isOriginalValueAvailableFor( String pAttributeName );
36 -
37 - public Object getOriginalValueFor( String pAttributeName );
38 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.bo.change;
3 +
4 + import org.litesoft.bo.*;
5 +
6 + import java.io.*;
7 +
8 + public interface IChangeTrackingObject extends BoAccessor,
9 + Serializable {
10 + public static final int INITIAL_CHANGE_NUMBER = 0;
11 +
12 + public void initialize();
13 +
14 + public boolean isChangeAllowed();
15 +
16 + public int getChangeNumber();
17 +
18 + public boolean isDirty();
19 +
20 + public void requestDelete();
21 +
22 + public boolean isDeleteRequested();
23 +
24 + public boolean isNew();
25 +
26 + public boolean isAnyAttributeChanged();
27 +
28 + /**
29 + * @return if Attribute exists && it has changed
30 + */
31 + public boolean isAttributeChanged( String pAttributeName );
32 +
33 + public String[] getChangedAttributeNames();
34 +
35 + public boolean isOriginalValueAvailableFor( String pAttributeName );
36 +
37 + public Object getOriginalValueFor( String pAttributeName );
38 + }