litesoft
Diff Revisions
810
vs
811
for /trunk/Java/core/Server/src/org/litesoft/orsup/otherattributeaccessors/AttributeAccessorSCDtoOneVariable.java
|
@@ -2,10 +2,10 @@ |
2 |
2 |
|
package org.litesoft.orsup.otherattributeaccessors; |
3 |
3 |
|
|
4 |
4 |
|
import org.litesoft.bo.attributes.*; |
|
5 |
+ |
import org.litesoft.core.typeutils.*; |
5 |
6 |
|
import org.litesoft.orsup.base.*; |
6 |
7 |
|
import org.litesoft.orsup.lazyload.*; |
7 |
8 |
|
import org.litesoft.orsup.nonpublic.*; |
8 |
|
- |
import org.litesoft.util.*; |
9 |
9 |
|
|
10 |
10 |
|
public abstract class AttributeAccessorSCDtoOneVariable<Owner extends PersistentObjectImpl> extends AbstractAttributeAccessorSCDtoOne<Owner, PersistentObjectImpl> implements ToVariable |
11 |
11 |
|
{ |
|
@@ -25,7 +25,8 @@ |
25 |
25 |
|
{ |
26 |
26 |
|
if ( !(pValue instanceof String) ) |
27 |
27 |
|
{ |
28 |
|
- |
throw new IllegalArgumentException( "Direct setting of a Variable To One relationship is Not Supported for type (" + Utils.classNameOf( pValue ) + ") w/ value: " + pValue ); |
|
28 |
+ |
throw new IllegalArgumentException( "Direct setting of a Variable To One relationship is Not Supported for type (" + Objects |
|
29 |
+ |
.classNameOf( pValue ) + ") w/ value: " + pValue ); |
29 |
30 |
|
} |
30 |
31 |
|
pValue = new PO_VarURLstringHelper( pValue.toString() ); |
31 |
32 |
|
} |
|
@@ -80,7 +81,7 @@ |
80 |
81 |
|
{ |
81 |
82 |
|
if ( !(pValue instanceof String) ) |
82 |
83 |
|
{ |
83 |
|
- |
throw new IllegalArgumentException( "Variable To One relationship is stored as a String, Not type (" + Utils.classNameOf( pValue ) + ") w/ value: " + pValue ); |
|
84 |
+ |
throw new IllegalArgumentException( "Variable To One relationship is stored as a String, Not type (" + Objects.classNameOf( pValue ) + ") w/ value: " + pValue ); |
84 |
85 |
|
} |
85 |
86 |
|
PO_VarURLstringHelper varURLstring = new PO_VarURLstringHelper( pValue.toString() ); |
86 |
87 |
|
value = varURLstring.toString(); |