Package cascading

Examples of cascading.CascadingException


      {
      setScheme( schemeClass.getConstructor( Fields.class ).newInstance( fields ) );
      }
    catch( Exception exception )
      {
      throw new CascadingException( "unable to create specified scheme: " + schemeClass.getName(), exception );
      }
    }
View Full Code Here


      return value;

    if( from == Long.class || from == long.class )
      return ( (Long) value ).intValue();

    throw new CascadingException( "unknown type coercion requested from: " + Util.getTypeName( from ) );
    }
View Full Code Here

      return new java.sql.Timestamp( date.getJdbcTimestamp( DateTimeUtil.defaultZone ) );

    if( to == java.sql.Time.class )
      return new java.sql.Time( date.getJdbcTime( DateTimeUtil.defaultZone ) );

    throw new CascadingException( "unknown type coercion requested, from: " + Util.getTypeName( from ) + " to: " + Util.getTypeName( to ) );
    }
View Full Code Here

      {
      return loader.loadClass( typeString );
      }
    catch( ClassNotFoundException exception )
      {
      throw new CascadingException( "unable to load class: " + typeString, exception );
      }
    }
View Full Code Here

      return constructor.newInstance();
      }
    catch( Exception exception )
      {
      throw new CascadingException( "unable to create new instance of: " + type.getName(), exception );
      }
    }
View Full Code Here

      return method.invoke( null, parameters );
      }
    catch( Exception exception )
      {
      throw new CascadingException( "unable to invoke static method: " + type.getName() + "." + methodName, exception );
      }
    }
View Full Code Here

      return (T) field.get( null );
      }
    catch( Exception exception )
      {
      throw new CascadingException( "unable to get static field: " + type.getName() + "." + fieldName, exception );
      }
    }
View Full Code Here

      return (T) method.invoke( target, parameters );
      }
    catch( Exception exception )
      {
      throw new CascadingException( "unable to invoke instance method: " + target.getClass().getName() + "." + methodName, exception );
      }
    }
View Full Code Here

      return value;

    if( from == Long.class || from == long.class )
      return ( (Long) value ).intValue();

    throw new CascadingException( "unknown type coercion requested from: " + Util.getTypeName( from ) );
    }
View Full Code Here

      return new java.sql.Timestamp( date.getJdbcTimestamp( DateTimeUtil.defaultZone ) );

    if( to == java.sql.Time.class )
      return new java.sql.Time( date.getJdbcTime( DateTimeUtil.defaultZone ) );

    throw new CascadingException( "unknown type coercion requested, from: " + Util.getTypeName( from ) + " to: " + Util.getTypeName( to ) );
    }
View Full Code Here

TOP

Related Classes of cascading.CascadingException

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.