/** * No-op. */ public void removeHome(Object primaryKey) throws RemoteException, RemoveException { throw new UnreachableStatementException(); }
/** * No-op. */ public void removeHome(Handle handle) throws RemoteException, RemoveException { throw new UnreachableStatementException(); }
/** * @throws Error Not yet implemented */ public void removeLocalHome(Invocation mi) throws RemoteException, RemoveException { throw new UnreachableStatementException(); }
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new UnreachableStatementException(); } } }
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new UnreachableStatementException(); } }
@Override public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new UnreachableStatementException(); } }
@Override public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new UnreachableStatementException(); } } }
@Override public IdMetaDataImpl clone() { try { return (IdMetaDataImpl) super.clone(); } catch (CloneNotSupportedException e) { throw new UnreachableStatementException("clone"); } }
@Override public IdMetaDataImpl clone() { try { return (IdMetaDataImpl) super.clone(); } catch (CloneNotSupportedException e) { throw new UnreachableStatementException("clone"); } }
/** * Get the wrapper class for the given primitive type. * * @param type Primitive class. * @return Wrapper class for primitive. * * @exception IllegalArgumentException Type is not a primitive class */ public static Class getPrimitiveWrapper(final Class type) { if (!type.isPrimitive()) { throw new IllegalArgumentException("type is not a primitive class"); } for (int i = 0; i < PRIMITIVE_WRAPPER_MAP.length; i += 2) { if (type.equals(PRIMITIVE_WRAPPER_MAP[i])) return PRIMITIVE_WRAPPER_MAP[i + 1]; } // should never get here, if we do then PRIMITIVE_WRAPPER_MAP // needs to be updated to include the missing mapping throw new UnreachableStatementException(); }
/** * Get the openType. * * @return the openType. */ public OpenType getOpenType() { if (openType != null) return openType; if (composite != null) return composite.getCompositeType(); throw new UnreachableStatementException(); } }
/** * Get the openType. * * @return the openType. */ public OpenType getOpenType() { if (openType != null) return openType; if (composite != null) return composite.getCompositeType(); throw new UnreachableStatementException(); } }
else if (CtClass.shortType.equals(type)) return Short.class.getName(); throw new UnreachableStatementException();
private Object handleObjectInvocation(String name, Object[] args) throws Throwable { if ("equals".equals(name)) { Object object = args[0]; if (object == null || object instanceof Proxy == false) return false; InvocationHandler handler = Proxy.getInvocationHandler(object); if (handler == this) return true; if (handler == null || handler instanceof CompositeDataInvocationHandler == false) return false; CompositeDataInvocationHandler other = (CompositeDataInvocationHandler) handler; return getCompositeData().equals(other.getCompositeData()); } else if ("hashCode".equals(name)) return getCompositeData().hashCode(); else if ("toString".equals(name)) return getCompositeData().toString(); throw new UnreachableStatementException(); } }
private Object handleObjectInvocation(String name, Object[] args) throws Throwable { if ("equals".equals(name)) { Object object = args[0]; if (object == null || object instanceof Proxy == false) return false; InvocationHandler handler = Proxy.getInvocationHandler(object); if (handler == this) return true; if (handler == null || handler instanceof CompositeValueInvocationHandler == false) return false; CompositeValueInvocationHandler other = (CompositeValueInvocationHandler) handler; return getCompositeValue().equals(other.getCompositeValue()); } else if ("hashCode".equals(name)) return getCompositeValue().hashCode(); else if ("toString".equals(name)) return getCompositeValue().toString(); throw new UnreachableStatementException(); }
private Object handleObjectInvocation(String name, Object[] args) throws Throwable { if ("equals".equals(name)) { Object object = args[0]; if (object == null || object instanceof Proxy == false) return false; InvocationHandler handler = Proxy.getInvocationHandler(object); if (handler == this) return true; if (handler == null || handler instanceof CompositeValueInvocationHandler == false) return false; CompositeValueInvocationHandler other = (CompositeValueInvocationHandler) handler; return getCompositeValue().equals(other.getCompositeValue()); } else if ("hashCode".equals(name)) return getCompositeValue().hashCode(); else if ("toString".equals(name)) return getCompositeValue().toString(); throw new UnreachableStatementException(); }
private Object handleObjectInvocation(String name, Object[] args) throws Throwable { if ("equals".equals(name)) { Object object = args[0]; if (object == null || object instanceof Proxy == false) return false; InvocationHandler handler = Proxy.getInvocationHandler(object); if (handler == this) return true; if (handler == null || handler instanceof CompositeDataInvocationHandler == false) return false; CompositeDataInvocationHandler other = (CompositeDataInvocationHandler) handler; return getCompositeData().equals(other.getCompositeData()); } else if ("hashCode".equals(name)) return getCompositeData().hashCode(); else if ("toString".equals(name)) return getCompositeData().toString(); throw new UnreachableStatementException(); } }
/** * Unbox a primitive * * @param buffer the buffer * @param primitive the primitive */ protected void unbox(JBossStringBuilder buffer, CtClass primitive) { if (CtClass.booleanType.equals(primitive)) buffer.append(".booleanValue()"); else if (CtClass.byteType.equals(primitive)) buffer.append(".byteValue()"); else if (CtClass.charType.equals(primitive)) buffer.append(".charValue()"); else if (CtClass.doubleType.equals(primitive)) buffer.append(".doubleValue()"); else if (CtClass.floatType.equals(primitive)) buffer.append(".floatValue()"); else if (CtClass.intType.equals(primitive)) buffer.append(".intValue()"); else if (CtClass.longType.equals(primitive)) buffer.append(".longValue()"); else if (CtClass.shortType.equals(primitive)) buffer.append(".shortValue()"); else { throw new UnreachableStatementException(); } }