Package org.jooq.exception

Examples of org.jooq.exception.SQLDialectNotSupportedException


                break;
            }

            default:
                throw new SQLDialectNotSupportedException("UDTs not supported in dialect " + context.getDialect());
        }
    }
View Full Code Here


                if (array.getDataType().getType().isArray() && array instanceof Param) {
                    return simulate();
                }

                else {
                    throw new SQLDialectNotSupportedException("ARRAY TABLE is not supported for " + configuration.getDialect());
                }
            }
        }
    }
View Full Code Here

                context.keyword("table(").sql(function).sql(")");
                break;
            }

            default:
                throw new SQLDialectNotSupportedException("FUNCTION TABLE is not supported for " + context.getDialect());
        }
    }
View Full Code Here

            case HSQLDB:
                context.bind(function);
                break;

            default:
                throw new SQLDialectNotSupportedException("FUNCTION TABLE is not supported for " + context.getDialect());
        }
    }
View Full Code Here

                }

                // Some dialects can't really handle this clause. Simulation
                // should be done in two steps
                case H2: {
                    throw new SQLDialectNotSupportedException("The ON DUPLICATE KEY UPDATE clause cannot be simulated for " + context.getDialect());
                }

                // Some databases allow for simulating this clause using a
                // MERGE statement
                case DB2:
                case HSQLDB:
                case ORACLE:
                case SQLSERVER:
                case SYBASE: {
                    context.sql(toMerge());
                    break;
                }

                default:
                    throw new SQLDialectNotSupportedException("The ON DUPLICATE KEY UPDATE clause cannot be simulated for " + context.getDialect());
            }
        }
    }
View Full Code Here

                }

                // Some dialects can't really handle this clause. Simulation
                // is done in two steps
                case H2: {
                    throw new SQLDialectNotSupportedException("The ON DUPLICATE KEY UPDATE clause cannot be simulated for " + context.getDialect());
                }

                // Some databases allow for simulating this clause using a
                // MERGE statement
                case DB2:
                case HSQLDB:
                case ORACLE:
                case SQLSERVER:
                case SYBASE: {
                    context.bind(toMerge());
                    break;
                }

                default:
                    throw new SQLDialectNotSupportedException("The ON DUPLICATE KEY UPDATE clause cannot be simulated for " + context.getDialect());
            }
        }
    }
View Full Code Here

        }

        if (result == null) {
            // #366 Don't log a warning here. The warning is logged when
            // catching the exception in jOOQ-codegen
            throw new SQLDialectNotSupportedException("Type " + typeName + " is not supported in dialect " + dialect, false);
        }

        return result;
    }
View Full Code Here

                    return (DataType<T>) sqlDataTypesByType.get(type);
                }

                // All other data types are illegal
                else {
                    throw new SQLDialectNotSupportedException("Type " + type + " is not supported in dialect " + dialect);
                }
            }

            return (DataType<T>) result;
        }
View Full Code Here

                // [#1161] Use reflection to avoid compile-time on ojdbc
                return on(getDriverConnection(getConfiguration())).call("createARRAY", getName(), get()).get();
            }

            default:
                throw new SQLDialectNotSupportedException("Cannot create Array for dialect : " + dialect);
        }
    }
View Full Code Here

        }

        if (result == null) {
            // [#366] Don't log a warning here. The warning is logged when
            // catching the exception in jOOQ-codegen
            throw new SQLDialectNotSupportedException("Type " + typeName + " is not supported in dialect " + dialect, false);
        }

        return result;
    }
View Full Code Here

TOP

Related Classes of org.jooq.exception.SQLDialectNotSupportedException

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.