@Override public Index addIndex(Session session, String indexName, int indexId, IndexColumn[] cols, IndexType indexType, boolean create, String indexComment) { throw DbException.getUnsupportedException("SYSTEM_RANGE"); }
/** * [Not supported] Checks if unwrap can return an object of this class. * * @param iface the class */ @Override public boolean isWrapperFor(Class<?> iface) throws SQLException { throw DbException.getUnsupportedException("isWrapperFor"); }
@Override public Value add(Value v) { throw DbException.getUnsupportedException( "manipulating TIMESTAMP WITH TIME ZONE values is unsupported"); }
@Override public Index addIndex(Session session, String indexName, int indexId, IndexColumn[] cols, IndexType indexType, boolean create, String indexComment) { throw DbException.getUnsupportedException("LINK"); }
@Override public Index addIndex(Session session, String indexName, int indexId, IndexColumn[] cols, IndexType indexType, boolean create, String indexComment) { throw DbException.getUnsupportedException("META"); }
@Override public Index addIndex(Session session, String indexName, int indexId, IndexColumn[] cols, IndexType indexType, boolean create, String indexComment) { throw DbException.getUnsupportedException("VIEW"); }
/** * [Not supported] Return an object of this class if possible. * * @param iface the class */ @Override public <T> T unwrap(Class<T> iface) throws SQLException { throw DbException.getUnsupportedException("unwrap"); }
@Override public Index addIndex(Session session, String indexName, int indexId, IndexColumn[] cols, IndexType indexType, boolean create, String indexComment) { throw DbException.getUnsupportedException("ALIAS"); }
@Override public Value subtract(Value v) { throw DbException.getUnsupportedException( "manipulating TIMESTAMP WITH TIME ZONE values is unsupported"); }
@Override public Cursor findFirstOrLast(Session session, boolean first) { // TODO optimization: could get the first or last value (in any case; // maybe not optimized) throw DbException.getUnsupportedException("LINKED"); }
@Override public Cursor findFirstOrLast(Session session, boolean first) { throw DbException.getUnsupportedException("HASH"); }
@Override public String getCurrentSchemaName() { throw DbException.getUnsupportedException("getSchema && remote session"); }
@Override public void add(Session session, Row row) { throw DbException.getUnsupportedException("META"); }
@Override public void remove(Session session) { throw DbException.getUnsupportedException("META"); }
@Override public void checkRename() { throw DbException.getUnsupportedException("META"); }
/** * Check that the given type map is either null or empty. * * @param map the type map * @throws DbException if the map is not empty */ static void checkMap(Map<String, Class<?>> map) { if (map != null && map.size() > 0) { throw DbException.getUnsupportedException("map.size > 0"); } }
private DbSettings(HashMap<String, String> s) { super(s); if (s.get("NESTED_JOINS") != null || Utils.getProperty("h2.nestedJoins", null) != null) { throw DbException.getUnsupportedException("NESTED_JOINS setting is not available since 1.4.197"); } }
private ResultSetMetaData getCheckedMetaData() throws SQLException { ResultSetMetaData meta = getMetaData(); if (meta == null) { throw DbException.getUnsupportedException( "Supported only for calling stored procedures"); } return meta; }
/** * Throw the exception that the feature is not support for the given data * type. * * @param op the operation * @return never returns normally * @throws DbException the exception */ protected DbException throwUnsupportedExceptionForType(String op) { throw DbException.getUnsupportedException( DataType.getDataType(getType()).name + " " + op); }
private void checkClustering(Column c) { if (!Constants.CLUSTERING_DISABLED .equals(session.getDatabase().getCluster()) && c.isAutoIncrement()) { throw DbException.getUnsupportedException( "CLUSTERING && auto-increment columns"); } }