Package org.jdbf.engine.mapping

Examples of org.jdbf.engine.mapping.MappingException


    try{
          PropertyDescriptor pd = new PropertyDescriptor(propName,object.getClass());
        c =  pd.getPropertyType();
        }
        catch(IntrospectionException e){           
      throw new MappingException(e);
        }
    return c;
    }
View Full Code Here


        PropertyDescriptor pd = new PropertyDescriptor(propName,object.getClass());
        method = pd.getReadMethod();
    }
    catch (IntrospectionException e) {
     
      throw new MappingException(e);
    }
    return method;
    }
View Full Code Here

        method = ReflectionManager.getReadMethod(object, propName);
        value = method.invoke(object, null);
    }
    catch (InvocationTargetException e) {
        throw new MappingException("field.invokeTarget",method.getName());
    }
    catch (Exception e) {
        throw new MappingException(e);
    }
    return value;
    }
View Full Code Here

            //Return the Method object
          PropertyDescriptor pd = new PropertyDescriptor(propName,object.getClass());
        method = pd.getWriteMethod();
        }
        catch(IntrospectionException e){
            throw new MappingException(e);
        }
   
    return method;
    }
View Full Code Here

    try {
        //invoke the setter method
            method.invoke(object, new Object[]{value});
        }
    catch (InvocationTargetException e) {
            throw new MappingException("mapping.noSuchMethod",
                 object.getClass().getName(),method.getName()
                  );
      }
        catch (Exception e) {
            throw new MappingException(e);
        }
    }
View Full Code Here

            // invoke the settter method
            method.invoke(object, new Object[]{value});
        }
        catch (NoSuchMethodException e) {
           
      throw new MappingException("mapping.noSuchMethod",
               object.getClass().getName(),method.getName());       
        }
        catch (InvocationTargetException e) {
           
      throw new MappingException("field.invokeTarget",
                            method.getName());     
        }
        catch (Exception e) {           
      throw new MappingException(e);     
        }
    }
View Full Code Here

                invokeWriteMethod(object, method, value);
            }
        }
        catch (Exception e) {
           
      throw new MappingException(e);
        }

        return object;
    }
View Full Code Here

   */
  public static int getSQLType(String type) throws MappingException{
    Integer sqlType = (Integer) TYPES.get(type)
    if( sqlType == null){
      logger.throwing(className,"getSQLType",
          new MappingException("mapping.invalidType",type));
           
      //return -1;
      throw new MappingException("mapping.invalidType",type);
    }
    else
      return sqlType.intValue();
  }
View Full Code Here

   * @throws MappingException
   *
   */
  public String getSelectInsertIdStatement()throws MappingException{
    logger.throwing(className,"getSelectInsertIdStatement",
              new MappingException("mapping.autoIncrementNotSupported"));
    throw new MappingException("mapping.autoIncrementNotSupported");
    //return null;
    //throw new MappingException("mapping.autoIncrementNotSupported");
  }
View Full Code Here

   * @throws MappingException
   *
   */
  public String getSelectSequenceStatement(String name)throws MappingException{
    logger.throwing(className,"getSelectInsertIdStatement",
              new MappingException("mapping.sequenceNotSupported"));
             
    throw new MappingException("mapping.sequenceNotSupported");
    //return null;
   
  }
View Full Code Here

TOP

Related Classes of org.jdbf.engine.mapping.MappingException

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.