Codota Logo
DBType
Code IndexAdd Codota to your IDE (free)

How to use
DBType
in
edu.isi.karma.util

Best Java code snippets using edu.isi.karma.util.DBType (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: usc-isi-i2/Web-Karma

public ImportDatabaseTableCommand(String id, String model, String revisedId, String dbType,
    String hostname, int portNumber, String userName, String password,
    String dBorSIDName) {
  super(id, model, revisedId);
  this.dbType = DBType.valueOf(dbType);
  this.hostname = hostname;
  this.portnumber = portNumber;
  this.username = userName;
  this.password = password;
  this.dBorSIDName = dBorSIDName;
}
origin: usc-isi-i2/Web-Karma

prefObject.put(JsonKeys.dbType.name(), dbType.name());
prefObject.put(JsonKeys.hostname.name(), hostname);
prefObject.put(JsonKeys.portnumber.name(), portnumber);
origin: usc-isi-i2/Web-Karma

@Override
public UpdateContainer doIt(Workspace workspace) throws CommandException {
  setRequestedInteractionType(InteractionType.importTable);
  UpdateContainer c = super.doIt(workspace);
  try {
    // Create a new Database Import Command. The interface allows the user to import 
    // multiple tables
    ImportDatabaseTableCommand comm = new ImportDatabaseTableCommand(workspace.getFactory().getNewId("C"),
        model,
        dbType.name(), hostname, portnumber, username, password, dBorSIDName);
    workspace.getCommandHistory().addPreviewCommand(comm);
    NewDatabaseCommandUpdate upd = new NewDatabaseCommandUpdate(comm.getId());
    c.add(upd);
  } catch (Throwable e) {
    String message = e.getMessage().replaceAll("\n", "").replaceAll("\"", "\\\"");
    ErrorUpdate errUpdt = new ErrorUpdate(message);
    c.add(errUpdt);
  }
  return c;
}
origin: usc-isi-i2/Web-Karma

public ImportSQLCommand(String id, String model, String dbType,
    String hostname, int portNumber, String userName, String password,
    String dBorSIDName, String query) {
  super(id, model);
  this.dbType = DBType.valueOf(dbType);
  this.hostname = hostname;
  this.portnumber = portNumber;
  this.username = userName;
  this.password = password;
  this.dBorSIDName = dBorSIDName;
  this.query = query;
}
origin: usc-isi-i2/Web-Karma

@Override
public UpdateContainer doIt(Workspace workspace) throws CommandException {
  setRequestedInteractionType(InteractionType.importSQL);
  UpdateContainer c = super.doIt(workspace);
  try {
    // Create a new Database Import Command. The interface allows the user to import 
    // multiple tables
    ImportSQLCommand comm = new ImportSQLCommand(workspace.getFactory().getNewId("C"), model,
        dbType.name(), hostname, portnumber, username, password, dBorSIDName, query);
    workspace.getCommandHistory().addPreviewCommand(comm);
    c.add(new InfoUpdate("Sucessfully imported data using SQL"));
    c.add(new SQLCommandUpdate(comm.getId()));
  } catch (Throwable e) {
    String message = e.getMessage().replaceAll("\n", "").replaceAll("\"", "\\\"");
    ErrorUpdate errUpdt = new ErrorUpdate(message);
    c.add(errUpdt);
  }
  return c;
}
origin: usc-isi-i2/Web-Karma

public ImportSQLCommand(String id, String model, String revisedId, String dbType,
    String hostname, int portNumber, String userName, String password,
    String dBorSIDName, String query) {
  super(id, model, revisedId);
  this.dbType = DBType.valueOf(dbType);
  this.hostname = hostname;
  this.portnumber = portNumber;
  this.username = userName;
  this.password = password;
  this.dBorSIDName = dBorSIDName;
  this.query = query;
}
origin: usc-isi-i2/Web-Karma

srcInfo.setAttributeValue(InfoAttribute.dbType, dbType.name());
srcInfo.setAttributeValue(InfoAttribute.hostname, hostname);
srcInfo.setAttributeValue(InfoAttribute.portnumber, String.valueOf(portnumber));
origin: usc-isi-i2/Web-Karma

public ImportDatabaseTableCommand(String id, String model, String dbType,
    String hostname, int portNumber, String userName, String password,
    String dBorSIDName) {
  super(id, model);
  this.dbType = DBType.valueOf(dbType);
  this.hostname = hostname;
  this.portnumber = portNumber;
  this.username = userName;
  this.password = password;
  this.dBorSIDName = dBorSIDName;
}
origin: usc-isi-i2/Web-Karma

srcInfo.setAttributeValue(InfoAttribute.dbType, dbType.name());
srcInfo.setAttributeValue(InfoAttribute.hostname, hostname);
srcInfo.setAttributeValue(InfoAttribute.portnumber, String.valueOf(portnumber));
origin: usc-isi-i2/Web-Karma

dbType = DBType.valueOf(dbtypeStr);
if (dbType == null) {
  logger.error("Unidentified database type. Valid values: "
origin: usc-isi-i2/Web-Karma

dbType = DBType.valueOf(request.getParameter("dBType"));
hostname = request.getParameter("hostname");
username = request.getParameter("username");
origin: usc-isi-i2/Web-Karma

switch (type) {
  case generateTableList: {
    dbType = DBType.valueOf(request.getParameter("dBType"));
    hostname = request.getParameter("hostname");
    username = request.getParameter("username");
edu.isi.karma.utilDBType

Javadoc

Class DBType

Most used methods

  • name
  • valueOf

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • requestLocationUpdates (LocationManager)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now