congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SetTypes.getTypeName
Code IndexAdd Tabnine to your IDE (free)

How to use
getTypeName
method
in
org.lealone.db.SetTypes

Best Java code snippets using org.lealone.db.SetTypes.getTypeName (Showing top 7 results out of 315)

origin: lealone/Lealone

/**
 * Get the value of the given property.
 *
 * @param setting the setting id
 * @param defaultValue the default value
 * @return the value as a String
 */
public String getProperty(int setting, String defaultValue) {
  String key = SetTypes.getTypeName(setting);
  String s = getProperty(key);
  return s == null ? defaultValue : s;
}
origin: lealone/Lealone

/**
 * Get the value of the given property.
 *
 * @param setting the setting id
 * @param defaultValue the default value
 * @return the value as an integer
 */
int getIntProperty(int setting, int defaultValue) {
  String key = SetTypes.getTypeName(setting);
  String s = getProperty(key, null);
  try {
    return s == null ? defaultValue : Integer.decode(s);
  } catch (NumberFormatException e) {
    return defaultValue;
  }
}
origin: lealone/Lealone

public ServerSession(Database database, User user, int id) {
  this.database = database;
  this.queryTimeout = database.getSettings().maxQueryTimeout;
  this.queryCacheSize = database.getSettings().queryCacheSize;
  this.user = user;
  this.id = id;
  Setting setting = database.findSetting(SetTypes.getTypeName(SetTypes.DEFAULT_LOCK_TIMEOUT));
  this.lockTimeout = setting == null ? Constants.INITIAL_LOCK_TIMEOUT : setting.getIntValue();
  this.currentSchemaName = Constants.SCHEMA_MAIN;
}
origin: lealone/Lealone

String name = SetTypes.getTypeName(SetTypes.CREATE_BUILD);
if (!settings.containsKey(name)) {
  Setting setting = new Setting(this, allocateObjectId(), name);
origin: lealone/Lealone

if (setting.getName().equals(SetTypes.getTypeName(SetTypes.CREATE_BUILD))) {
origin: lealone/Lealone

@Override
public int update() {
  Database database = session.getDatabase();
  String name = SetTypes.getTypeName(type);
  switch (type) {
  case SetTypes.ALLOW_LITERALS: {
origin: lealone/Lealone

} else if (readIf("SEARCH_PATH") || readIf(SetTypes.getTypeName(SetTypes.SCHEMA_SEARCH_PATH))) {
  readIfEqualOrTo();
  Set command = new Set(session, SetTypes.SCHEMA_SEARCH_PATH);
  if (isToken("LOGSIZE")) {
    currentToken = SetTypes.getTypeName(SetTypes.MAX_LOG_SIZE);
org.lealone.dbSetTypesgetTypeName

Javadoc

Get the set type name.

Popular methods of SetTypes

  • contains
  • getType
    Get the set type number.
  • getTypes

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JComboBox (javax.swing)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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