com.cloudera.api.model
Enum ApiScmDbInfo.ScmDbType

java.lang.Object
  extended by java.lang.Enum<ApiScmDbInfo.ScmDbType>
      extended by com.cloudera.api.model.ApiScmDbInfo.ScmDbType
All Implemented Interfaces:
Serializable, Comparable<ApiScmDbInfo.ScmDbType>
Enclosing class:
ApiScmDbInfo

public static enum ApiScmDbInfo.ScmDbType
extends Enum<ApiScmDbInfo.ScmDbType>

Enum for Cloudera Manager DB type. Note that DERBY and SQLITE3 are not supported DBs


Enum Constant Summary
DERBY
          derby db, not supported
HSQL
          hsql db, in memory version
MYSQL
          mysql db
ORACLE
          oracle db
POSTGRESQL
          postgresql db
SQLITE3
          sqlite3 db, not supported
 
Method Summary
static ApiScmDbInfo.ScmDbType convert(String str)
           
static ApiScmDbInfo.ScmDbType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ApiScmDbInfo.ScmDbType[] 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

MYSQL

public static final ApiScmDbInfo.ScmDbType MYSQL
mysql db


POSTGRESQL

public static final ApiScmDbInfo.ScmDbType POSTGRESQL
postgresql db


HSQL

public static final ApiScmDbInfo.ScmDbType HSQL
hsql db, in memory version


ORACLE

public static final ApiScmDbInfo.ScmDbType ORACLE
oracle db


DERBY

public static final ApiScmDbInfo.ScmDbType DERBY
derby db, not supported


SQLITE3

public static final ApiScmDbInfo.ScmDbType SQLITE3
sqlite3 db, not supported

Method Detail

values

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

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

valueOf

public static ApiScmDbInfo.ScmDbType 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

convert

public static ApiScmDbInfo.ScmDbType convert(String str)


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.