org.eobjects.metamodel.schema
Enum TableType

java.lang.Object
  extended by java.lang.Enum<TableType>
      extended by org.eobjects.metamodel.schema.TableType
All Implemented Interfaces:
Serializable, Comparable<TableType>

public enum TableType
extends Enum<TableType>

Represents the various types of tables


Enum Constant Summary
ALIAS
           
GLOBAL_TEMPORARY
           
LOCAL_TEMPORARY
           
OTHER
           
SYNONYM
           
SYSTEM_TABLE
           
TABLE
           
VIEW
           
 
Field Summary
static TableType[] DEFAULT_TABLE_TYPES
           
 
Method Summary
static TableType getTableType(String literalType)
          Tries to resolve a TableType based on an incoming string/literal.
 boolean isMaterialized()
           
static TableType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TableType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TABLE

public static final TableType TABLE

VIEW

public static final TableType VIEW

SYSTEM_TABLE

public static final TableType SYSTEM_TABLE

GLOBAL_TEMPORARY

public static final TableType GLOBAL_TEMPORARY

LOCAL_TEMPORARY

public static final TableType LOCAL_TEMPORARY

ALIAS

public static final TableType ALIAS

SYNONYM

public static final TableType SYNONYM

OTHER

public static final TableType OTHER
Field Detail

DEFAULT_TABLE_TYPES

public static final TableType[] DEFAULT_TABLE_TYPES
Method Detail

values

public static TableType[] 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 (TableType c : TableType.values())
    System.out.println(c);

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

valueOf

public static TableType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isMaterialized

public boolean isMaterialized()

getTableType

public static TableType getTableType(String literalType)
Tries to resolve a TableType based on an incoming string/literal. If no fitting TableType is found, OTHER will be returned.



Copyright © 2007-2013. All Rights Reserved.