Package org.apache.ojb.broker

Examples of org.apache.ojb.broker.OJBRuntimeException


                    //m.setAccessible(true);
                    result = m.invoke(toCopy, null);
                }
                catch(Exception e)
                {
                    throw new OJBRuntimeException("Can't invoke method 'clone' on object: " + toCopy, e);
                }
            }
            return result;
        }
View Full Code Here


                result = JdbcTypesHelper.getJdbcTypeByReflection(m_PersistentField.getType().getName());
            }
            catch(Exception e)
            {
                String eol = SystemUtils.LINE_SEPARATOR;
                throw new OJBRuntimeException("Can't automatically assign a jdbc field-type for field: "
                        + eol + this.toXML() + eol + "in class: " + eol + getClassDescriptor(), e);
            }
        }
        else
        {
            try
            {
                result = JdbcTypesHelper.getJdbcTypeByName(columnType);
            }
            catch(Exception e)
            {
                String eol = SystemUtils.LINE_SEPARATOR;
                throw new OJBRuntimeException("Can't assign the specified jdbc field-type '"+columnType+"' for field: "
                        + eol + this.toXML() + eol + "in class: " + eol + getClassDescriptor(), e);
            }
        }
        return result;
    }
View Full Code Here

        {
            m_access = access;
        }
        else
        {
            throw new OJBRuntimeException("Try to set unkown field 'access' value: " + access);
        }
    }
View Full Code Here

    {
        JdbcType result = null;
        result = (JdbcType) jdbcObjectTypesFromName.get(typeName.toLowerCase());
        if (result == null)
        {
            throw new OJBRuntimeException("The type " + typeName + " can not be handled by OJB." +
                    " Please specify only types as defined by java.sql.Types.");
        }
        return result;
    }
View Full Code Here

//#ifdef JDBC30
        else if (fieldType.equalsIgnoreCase(URL.class.getName()))
            result = getJdbcTypeByName("datalink");
//#endif
        else
            throw new OJBRuntimeException("The type " + fieldType + " can not be handled by OJB automatically."
                    + " Please specify a type as defined by java.sql.Types in your field-descriptor");
        return result;
    }
View Full Code Here

                        }
                    }

                    if (fkfd == null)
          {
                        throw new OJBRuntimeException("Incorrect or not found field reference name '"
                                + fk + "' in descriptor " + this + " for class-descriptor '"
                                + (cld != null ? cld.getClassNameOfObject() + "'" : "'null'"));
          }
          ret.add(fkfd);
        }
View Full Code Here

            */
            return CASCADE_LINK;
        }
        else
        {
            throw new OJBRuntimeException("Invalid value! Given value was '" + cascade
                    + "', expected values are: " + RepositoryTags.CASCADE_NONE_STR + ", "
                    + RepositoryTags.CASCADE_LINK_STR + ", " + RepositoryTags.CASCADE_OBJECT_STR
                    + " ('false' and 'true' are deprecated but still valid)");
        }
    }
View Full Code Here

        {
            return CASCADE_NONE;
        }
        else
        {
            throw new OJBRuntimeException("Invalid value! Given value was '" + cascade
                    + "', expected values are: " + RepositoryTags.CASCADE_NONE_STR + ", "
                    + RepositoryTags.CASCADE_LINK_STR + ", " + RepositoryTags.CASCADE_OBJECT_STR
                    + " ('false' and 'true' are deprecated but still valid)");
        }
    }
View Full Code Here

        {
            colIterator = new ArrayIterator(collectionOrArray);
        }
        else
        {
            throw new OJBRuntimeException( "Given object collection of type " + collectionOrArray.getClass()
                + " can not be managed by OJB. Use Array, Collection or ManageableCollection instead!");
        }
        return colIterator;
    }
View Full Code Here

        {
            getConfigurator().configure(tx);
        }
        catch (ConfigurationException e)
        {
            throw new OJBRuntimeException("Cannot create new intern odmg transaction", e);
        }
        return tx;
    }
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.OJBRuntimeException

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.