litesoft
Diff Revisions
49
vs
151
for /trunk/Java/core/Server/src/org/litesoft/orsup/base/AttributeAccessorSCD.java
|
@@ -1,11 +1,11 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt |
2 |
2 |
|
package org.litesoft.orsup.base; |
3 |
3 |
|
|
|
4 |
+ |
import java.sql.*; |
|
5 |
+ |
|
4 |
6 |
|
import org.litesoft.bo.attributes.*; |
5 |
7 |
|
import org.litesoft.util.*; |
6 |
8 |
|
|
7 |
|
- |
import java.sql.*; |
8 |
|
- |
|
9 |
9 |
|
public abstract class AttributeAccessorSCD<Owner extends PersistentObject> extends SupplimentedSCD |
10 |
10 |
|
{ |
11 |
11 |
|
public static final AttributeAccessorSCD[] EMPTY_ARRAY = new AttributeAccessorSCD[0]; |
|
@@ -91,8 +91,7 @@ |
91 |
91 |
|
return to_UtilDate( pValue ); |
92 |
92 |
|
} |
93 |
93 |
|
|
94 |
|
- |
throw new IllegalArgumentException( |
95 |
|
- |
"unexpected value; expected: " + pTargetType + " but got: " + Utils.classNameOf( pValue ) ); |
|
94 |
+ |
throw new IllegalArgumentException( "unexpected value; expected: " + pTargetType + " but got: " + Utils.classNameOf( pValue ) ); |
96 |
95 |
|
} |
97 |
96 |
|
|
98 |
97 |
|
public static AttributeAccessorSCD[] append( AttributeAccessorSCD[] pOrig, AttributeAccessorSCD pNew ) |
|
@@ -114,8 +113,7 @@ |
114 |
113 |
|
/** |
115 |
114 |
|
* Intended mainly for cleaning up after junit tests that might dynamically insert attributes |
116 |
115 |
|
*/ |
117 |
|
- |
public static AttributeAccessorSCD[] remove( AttributeAccessorSCD[] pOrig, |
118 |
|
- |
AttributeAccessorSCD pToRemove ) |
|
116 |
+ |
public static AttributeAccessorSCD[] remove( AttributeAccessorSCD[] pOrig, AttributeAccessorSCD pToRemove ) |
119 |
117 |
|
{ |
120 |
118 |
|
if ( (pToRemove != null) && !Utils.isNullOrEmpty( pOrig ) ) |
121 |
119 |
|
{ |