javatools.database
Enum DBWordNet.Table

java.lang.Object
  extended by java.lang.Enum<DBWordNet.Table>
      extended by javatools.database.DBWordNet.Table
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DBWordNet.Table>
Enclosing class:
DBWordNet

public static enum DBWordNet.Table
extends java.lang.Enum<DBWordNet.Table>

One enum per SQL table


Enum Constant Summary
ANTONYMY
           
ATTRIBUTE
           
CAUSE
           
CLASS
           
ENTAILMENT
           
FRAME
           
GLOSSES
           
HYPONYMY
           
MEREONYMY_M
           
MEREONYMY_P
           
MEREONYMY_S
           
MORPH
           
PARTICIPLE
           
PERTAIN
           
SEEALSO
           
SIMILARITY
           
SYNSETS
           
VERBROUP
           
 
Method Summary
 java.lang.Object[] getAttributes()
          Returns an alternating sequence of attribute name (String) and attribute type (from java.sql.Types)
 java.lang.String getFile()
          Returns the filename this table was loaded from
 void load(Database db, java.io.File wordNetFolder)
          Loads this table to a given database from a folder with the Prolog version of WordNet
static DBWordNet.Table valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DBWordNet.Table[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SYNSETS

public static final DBWordNet.Table SYNSETS

GLOSSES

public static final DBWordNet.Table GLOSSES

HYPONYMY

public static final DBWordNet.Table HYPONYMY

ENTAILMENT

public static final DBWordNet.Table ENTAILMENT

SIMILARITY

public static final DBWordNet.Table SIMILARITY

MEREONYMY_M

public static final DBWordNet.Table MEREONYMY_M

MEREONYMY_S

public static final DBWordNet.Table MEREONYMY_S

MEREONYMY_P

public static final DBWordNet.Table MEREONYMY_P

MORPH

public static final DBWordNet.Table MORPH

CLASS

public static final DBWordNet.Table CLASS

ANTONYMY

public static final DBWordNet.Table ANTONYMY

SEEALSO

public static final DBWordNet.Table SEEALSO

PARTICIPLE

public static final DBWordNet.Table PARTICIPLE

PERTAIN

public static final DBWordNet.Table PERTAIN

CAUSE

public static final DBWordNet.Table CAUSE

VERBROUP

public static final DBWordNet.Table VERBROUP

ATTRIBUTE

public static final DBWordNet.Table ATTRIBUTE

FRAME

public static final DBWordNet.Table FRAME
Method Detail

values

public static DBWordNet.Table[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DBWordNet.Table c : DBWordNet.Table.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DBWordNet.Table valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getAttributes

public java.lang.Object[] getAttributes()
Returns an alternating sequence of attribute name (String) and attribute type (from java.sql.Types)


getFile

public java.lang.String getFile()
Returns the filename this table was loaded from


load

public void load(Database db,
                 java.io.File wordNetFolder)
          throws java.io.IOException,
                 java.sql.SQLException
Loads this table to a given database from a folder with the Prolog version of WordNet

Throws:
java.io.IOException
java.sql.SQLException