org.basex.core.proc
Class Insert

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.core.AbstractProcess
          extended by org.basex.core.Process
              extended by org.basex.core.proc.Insert

public final class Insert
extends Process

Inserts an element into the database.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.core.Process
args
 
Constructor Summary
Insert(boolean g, Commands.CmdUpdate t, java.lang.String... a)
          Constructor for GUI updates.
Insert(Commands.CmdUpdate t, java.lang.String... a)
          Constructor.
 
Method Summary
static boolean check(byte[] name)
          Checks the validity of the specified name.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.core.Process
args, data, error, execute, execute, info, info, info, name, output, printing, result, updating
 
Methods inherited from class org.basex.core.Progress
checkStop, det, detail, prog, progress, progress, stop, title
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Insert

public Insert(Commands.CmdUpdate t,
              java.lang.String... a)
Constructor.

Parameters:
t - insertion type
a - arguments

Insert

public Insert(boolean g,
              Commands.CmdUpdate t,
              java.lang.String... a)
Constructor for GUI updates.

Parameters:
g - gui flag
t - insertion type
a - arguments
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Process

check

public static boolean check(byte[] name)
Checks the validity of the specified name.

Parameters:
name - name to be checked
Returns:
result of check