congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WebServer.isCommandHistoryAllowed
Code IndexAdd Tabnine to your IDE (free)

How to use
isCommandHistoryAllowed
method
in
org.h2.server.web.WebServer

Best Java code snippets using org.h2.server.web.WebServer.isCommandHistoryAllowed (Showing top 3 results out of 315)

origin: com.h2database/h2

/**
 * Add a SQL statement to the history.
 *
 * @param sql the SQL statement
 */
void addCommand(String sql) {
  if (sql == null) {
    return;
  }
  sql = sql.trim();
  if (sql.length() == 0) {
    return;
  }
  if (commandHistory.size() > MAX_HISTORY) {
    commandHistory.remove(0);
  }
  int idx = commandHistory.indexOf(sql);
  if (idx >= 0) {
    commandHistory.remove(idx);
  }
  commandHistory.add(sql);
  if (server.isCommandHistoryAllowed()) {
    server.saveCommandHistoryList(commandHistory);
  }
}
origin: org.wowtools/h2

/**
 * Add a SQL statement to the history.
 *
 * @param sql the SQL statement
 */
void addCommand(String sql) {
  if (sql == null) {
    return;
  }
  sql = sql.trim();
  if (sql.length() == 0) {
    return;
  }
  if (commandHistory.size() > MAX_HISTORY) {
    commandHistory.remove(0);
  }
  int idx = commandHistory.indexOf(sql);
  if (idx >= 0) {
    commandHistory.remove(idx);
  }
  commandHistory.add(sql);
  if (server.isCommandHistoryAllowed()) {
    server.saveCommandHistoryList(commandHistory);
  }
}
origin: com.eventsourcing/h2

/**
 * Add a SQL statement to the history.
 *
 * @param sql the SQL statement
 */
void addCommand(String sql) {
  if (sql == null) {
    return;
  }
  sql = sql.trim();
  if (sql.length() == 0) {
    return;
  }
  if (commandHistory.size() > MAX_HISTORY) {
    commandHistory.remove(0);
  }
  int idx = commandHistory.indexOf(sql);
  if (idx >= 0) {
    commandHistory.remove(idx);
  }
  commandHistory.add(sql);
  if (server.isCommandHistoryAllowed()) {
    server.saveCommandHistoryList(commandHistory);
  }
}
org.h2.server.webWebServerisCommandHistoryAllowed

Popular methods of WebServer

  • <init>
  • getSession
    Get the web session object for the given session id.
  • init
  • addSession
    Create a session with a given connection.
  • getAllowOthers
  • getFile
    Read the given file from the file system or from the resources.
  • getStartDateTime
  • setAllowChunked
  • setAllowOthers
  • createNewSession
    Create a new web session id and object.
  • generateSessionId
  • getConnection
  • generateSessionId,
  • getConnection,
  • getPort,
  • getSSL,
  • getSessions,
  • getSetting,
  • getSettingNames,
  • getSettings,
  • loadProperties,
  • readTranslations

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Menu (java.awt)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Reference (javax.naming)
  • BoxLayout (javax.swing)
  • CodeWhisperer 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