Package org.apache.ojb.broker.accesslayer.conversions

Examples of org.apache.ojb.broker.accesslayer.conversions.FieldConversion


                }
                else
                {
                    FieldDescriptor fd = this.getFieldRef();
                    Object value = null;
                    FieldConversion conversion = null;
                    if (fd != null)
                    {
                        conversion = fd.getFieldConversion();
                        value = fd.getPersistentField().get(objekt);
                        if (conversion != null)
                        {
                            value = conversion.javaToSql(value);
                        }
                    }
                    return value;
                }
            case SOURCE_VALUE :
View Full Code Here


    public void saveValue(Object objekt, Object value)
    {
        if ((this.fieldSource == SOURCE_FIELD) && (this.returnedByProcedure))
        {
            FieldDescriptor fd = this.getFieldRef();
            FieldConversion conversion = null;
            if (fd != null)
            {
                conversion = fd.getFieldConversion();
                if (conversion == null)
                {
                    fd.getPersistentField().set(objekt, value);
                }
                else
                {
                    fd.getPersistentField().set(objekt, conversion.sqlToJava(value));
                }
            }
        }
    }
View Full Code Here

                }
                else
                {
                    FieldDescriptor fd = this.getFieldRef();
                    Object value = null;
                    FieldConversion conversion = null;
                    if (fd != null)
                    {
                        conversion = fd.getFieldConversion();
                        value = fd.getPersistentField().get(objekt);
                        if (conversion != null)
                        {
                            value = conversion.javaToSql(value);
                        }
                    }
                    return value;
                }
            case SOURCE_VALUE :
View Full Code Here

    public void saveValue(Object objekt, Object value)
    {
        if ((this.fieldSource == SOURCE_FIELD) && (this.returnedByProcedure))
        {
            FieldDescriptor fd = this.getFieldRef();
            FieldConversion conversion = null;
            if (fd != null)
            {
                conversion = fd.getFieldConversion();
                if (conversion == null)
                {
                    fd.getPersistentField().set(objekt, value);
                }
                else
                {
                    fd.getPersistentField().set(objekt, conversion.sqlToJava(value));
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.accesslayer.conversions.FieldConversion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.