uk.ac.starlink.table.jdbc
Class WriteMode

java.lang.Object
  extended byuk.ac.starlink.table.jdbc.WriteMode

public class WriteMode
extends Object

Defines how records are written to a database table.

Since:
11 Dec 2007

Field Summary
static WriteMode APPEND
          WriteMode which appends to an existing table.
static WriteMode CREATE
          WriteMode which creates a new database table before writing.
static WriteMode DROP_CREATE
          WriteMode which creates a new database table before writing.
 
Method Summary
static WriteMode[] getAllModes()
          Returns an array of all known write modes.
 String getDescription()
          Returns a short description of this mode's operation.
 String toString()
          Returns this mode's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATE

public static final WriteMode CREATE
WriteMode which creates a new database table before writing. It is an error if a table of the same name already exists.


DROP_CREATE

public static final WriteMode DROP_CREATE
WriteMode which creates a new database table before writing. If a table of the same name already exists, it is dropped first.


APPEND

public static final WriteMode APPEND
WriteMode which appends to an existing table. An error results if the named table has the wrong structure for the data being written.

Method Detail

getDescription

public String getDescription()
Returns a short description of this mode's operation.

Returns:
description

toString

public String toString()
Returns this mode's name.


getAllModes

public static WriteMode[] getAllModes()
Returns an array of all known write modes.

Returns:
write mode array

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.