Tabnine Logo
DbException.getUnsupportedException
Code IndexAdd Tabnine to your IDE (free)

How to use
getUnsupportedException
method
in
org.h2.message.DbException

Best Java code snippets using org.h2.message.DbException.getUnsupportedException (Showing top 20 results out of 315)

origin: com.h2database/h2

@Override
public Index addIndex(Session session, String indexName,
    int indexId, IndexColumn[] cols, IndexType indexType,
    boolean create, String indexComment) {
  throw DbException.getUnsupportedException("SYSTEM_RANGE");
}
origin: com.h2database/h2

/**
 * [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");
}
origin: com.h2database/h2

@Override
public Value add(Value v) {
  throw DbException.getUnsupportedException(
      "manipulating TIMESTAMP WITH TIME ZONE values is unsupported");
}
origin: com.h2database/h2

@Override
public Index addIndex(Session session, String indexName, int indexId,
    IndexColumn[] cols, IndexType indexType, boolean create,
    String indexComment) {
  throw DbException.getUnsupportedException("LINK");
}
origin: com.h2database/h2

@Override
public Index addIndex(Session session, String indexName, int indexId,
    IndexColumn[] cols, IndexType indexType, boolean create,
    String indexComment) {
  throw DbException.getUnsupportedException("META");
}
origin: com.h2database/h2

@Override
public Index addIndex(Session session, String indexName, int indexId,
    IndexColumn[] cols, IndexType indexType, boolean create,
    String indexComment) {
  throw DbException.getUnsupportedException("VIEW");
}
origin: com.h2database/h2

/**
 * [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");
}
origin: com.h2database/h2

@Override
public Index addIndex(Session session, String indexName, int indexId,
    IndexColumn[] cols, IndexType indexType, boolean create,
    String indexComment) {
  throw DbException.getUnsupportedException("ALIAS");
}
origin: com.h2database/h2

@Override
public Value subtract(Value v) {
  throw DbException.getUnsupportedException(
      "manipulating TIMESTAMP WITH TIME ZONE values is unsupported");
}
origin: com.h2database/h2

@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");
}
origin: com.h2database/h2

@Override
public Cursor findFirstOrLast(Session session, boolean first) {
  throw DbException.getUnsupportedException("HASH");
}
origin: com.h2database/h2

@Override
public String getCurrentSchemaName() {
  throw DbException.getUnsupportedException("getSchema && remote session");
}
origin: com.h2database/h2

@Override
public void add(Session session, Row row) {
  throw DbException.getUnsupportedException("META");
}
origin: com.h2database/h2

@Override
public void remove(Session session) {
  throw DbException.getUnsupportedException("META");
}
origin: com.h2database/h2

@Override
public void checkRename() {
  throw DbException.getUnsupportedException("META");
}
origin: com.h2database/h2

/**
 * 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");
  }
}
origin: com.h2database/h2

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");
  }
}
origin: com.h2database/h2

private ResultSetMetaData getCheckedMetaData() throws SQLException {
  ResultSetMetaData meta = getMetaData();
  if (meta == null) {
    throw DbException.getUnsupportedException(
        "Supported only for calling stored procedures");
  }
  return meta;
}
origin: com.h2database/h2

/**
 * 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);
}
origin: com.h2database/h2

private void checkClustering(Column c) {
  if (!Constants.CLUSTERING_DISABLED
      .equals(session.getDatabase().getCluster())
      && c.isAutoIncrement()) {
    throw DbException.getUnsupportedException(
        "CLUSTERING && auto-increment columns");
  }
}
org.h2.messageDbExceptiongetUnsupportedException

Javadoc

Gets a SQL exception meaning this feature is not supported.

Popular methods of DbException

  • throwInternalError
    Throw an internal error. This method seems to return an exception object, so that it can be used ins
  • convert
    Convert a throwable to an SQL exception using the default mapping. All errors except the following a
  • get
    Create a database exception for a specific error code.
  • <init>
  • addSQL
    Set the SQL statement of the given exception. This method may create a new object.
  • convertIOException
    Convert an IO exception to a database exception.
  • convertInvocation
    Convert an InvocationTarget exception to a database exception.
  • convertToIOException
    Convert an exception to an IO exception.
  • getCause
  • getErrorCode
    Get the error code.
  • getInvalidValueException
    Gets a SQL exception meaning this value is invalid.
  • getJdbcSQLException
    Gets the SQL exception object for a specific error code.
  • getInvalidValueException,
  • getJdbcSQLException,
  • getMessage,
  • getSQLException,
  • getSource,
  • getSyntaxError,
  • printStackTrace,
  • setSource,
  • toSQLException

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JList (javax.swing)
  • JTable (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now