Extension SDK

oracle.jdeveloper.cm.ds.db
Class DatabaseObjectType

java.lang.Object
  |
  +--oracle.jdeveloper.cm.ds.db.DatabaseObjectType

public class DatabaseObjectType
extends java.lang.Object

Constants for the Database Object Types, as well as a few static utility methods. The class is immutable, like java.lang.Integer

See Also:
Integer

Field Summary
static int BLOCK
          Constant: Anonymous PL/SQL Block
static int CATALOG
          Constant: Database Catalog
static int COLUMN
          Constant: Column in a TABLE
static int[][] DB_TYPE_IMAGE
          Two dimensional array of images for each type.
static java.lang.String[] DISPLAY_DB_TYPE_NAMES
          Display Name for the different database object types
static int FUNCTION
          Constant: Oracle Function
static int IMAGE_FOLDER
          Constant: Folder Image
static int IMAGE_NODE
          Constant: Node Image
static int INDEX
          Constant: Table Index
static int INVALID_TYPE
          Constant: Invalid value for type
static int JAVA_CLASS
          Constant: Oracle deployed Java class
static int JAVA_RESOURCE
          Constant: Oracle deployed Java resource
static int JAVA_SOURCE
          Constant: Oracle deployed Java source
static int JSERVER_OBJECTS
          Constant: Oracle objects bound to the JNDI namespace within Aurora
static int LIBRARY
          Constant: Oracle PL/SQL Library Unit
static int PACKAGE
          Constant: Oracle Package Specification
static int PACKAGE_BODY
          Constant: Oracle Package Body
static int PROCEDURE
          Constant: Procedure
static int SCHEMA
          Constant: Schema (aka User)
static int SEQUENCE
          Constant: Sequence
static int SYNONYM
          Constant: Synonym
static int TABLE
          Constant: Table
static int TRIGGER
          Constant: Oracle Trigger
static int TYPE
          Constant: Oracle Object Type Specification
static int TYPE_BODY
          Constant: Oracle Object Type Body
static int VIEW
          Constant: View
 
Constructor Summary
DatabaseObjectType(int type)
          Constructor
 
Method Summary
static java.lang.String getArgusNameForType(int type)
          Get the Argus name for a type.
static int getArgusTypeForName(java.lang.String name)
          Get the Argus object type for a name.
static java.lang.String getDbNameForType(int type)
          Get the Database's name for a dbObjectType.
static int getDbTypeForName(java.lang.String name)
          Get the Database's object type for a name.
static java.lang.String getDisplayName(int dbObjectType)
          Utility method to obtain the display name fo ra given object type
static javax.swing.Icon getIcon(int dbObjectType, int nodeType)
          Utility method to get an Icon for the object type.
 int getType()
          Gets the int constant representing the type this class represents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_TYPE

public static final int INVALID_TYPE
Constant: Invalid value for type

See Also:
Constant Field Values

PACKAGE

public static final int PACKAGE
Constant: Oracle Package Specification

See Also:
Constant Field Values

PACKAGE_BODY

public static final int PACKAGE_BODY
Constant: Oracle Package Body

See Also:
Constant Field Values

FUNCTION

public static final int FUNCTION
Constant: Oracle Function

See Also:
Constant Field Values

PROCEDURE

public static final int PROCEDURE
Constant: Procedure

See Also:
Constant Field Values

TYPE

public static final int TYPE
Constant: Oracle Object Type Specification

See Also:
Constant Field Values

TYPE_BODY

public static final int TYPE_BODY
Constant: Oracle Object Type Body

See Also:
Constant Field Values

TABLE

public static final int TABLE
Constant: Table

See Also:
Constant Field Values

VIEW

public static final int VIEW
Constant: View

See Also:
Constant Field Values

TRIGGER

public static final int TRIGGER
Constant: Oracle Trigger

See Also:
Constant Field Values

JAVA_CLASS

public static final int JAVA_CLASS
Constant: Oracle deployed Java class

See Also:
Constant Field Values

JAVA_RESOURCE

public static final int JAVA_RESOURCE
Constant: Oracle deployed Java resource

See Also:
Constant Field Values

JAVA_SOURCE

public static final int JAVA_SOURCE
Constant: Oracle deployed Java source

See Also:
Constant Field Values

SEQUENCE

public static final int SEQUENCE
Constant: Sequence

See Also:
Constant Field Values

SYNONYM

public static final int SYNONYM
Constant: Synonym

See Also:
Constant Field Values

SCHEMA

public static final int SCHEMA
Constant: Schema (aka User)

See Also:
Constant Field Values

JSERVER_OBJECTS

public static final int JSERVER_OBJECTS
Constant: Oracle objects bound to the JNDI namespace within Aurora

See Also:
Constant Field Values

INDEX

public static final int INDEX
Constant: Table Index

See Also:
Constant Field Values

LIBRARY

public static final int LIBRARY
Constant: Oracle PL/SQL Library Unit

See Also:
Constant Field Values

CATALOG

public static final int CATALOG
Constant: Database Catalog

See Also:
Constant Field Values

BLOCK

public static final int BLOCK
Constant: Anonymous PL/SQL Block

See Also:
Constant Field Values

COLUMN

public static final int COLUMN
Constant: Column in a TABLE

See Also:
Constant Field Values

IMAGE_FOLDER

public static final int IMAGE_FOLDER
Constant: Folder Image

See Also:
Constant Field Values

IMAGE_NODE

public static final int IMAGE_NODE
Constant: Node Image

See Also:
Constant Field Values

DISPLAY_DB_TYPE_NAMES

public static final java.lang.String[] DISPLAY_DB_TYPE_NAMES
Display Name for the different database object types


DB_TYPE_IMAGE

public static final int[][] DB_TYPE_IMAGE
Two dimensional array of images for each type. [0] is the folder image [1] is the node image

Constructor Detail

DatabaseObjectType

public DatabaseObjectType(int type)
Constructor

Parameters:
type - The integer constant type of which this class instance represents
Method Detail

getType

public int getType()
Gets the int constant representing the type this class represents.

Returns:
int The int constant of the database type for this class

getDbNameForType

public static final java.lang.String getDbNameForType(int type)
Get the Database's name for a dbObjectType. If the type is not found, then null is returned. This class is the inverse of getDbTypeForName

Returns:
String Database's name for a type

See Also:
getDbTypeForName(String)

getArgusNameForType

public static final java.lang.String getArgusNameForType(int type)
Get the Argus name for a type. If the type is not found, then null is returned. This class is the inverse of getArgusTypeForName

Returns:
String The Argus style name for a type

See Also:
getArgusTypeForName(String)

getDbTypeForName

public static final int getDbTypeForName(java.lang.String name)
Get the Database's object type for a name. This class is the inverse of getDbNameForType

Returns:
int Database object type for a name, if no matching type constant is found, then INVALID_TYPE is returned.

See Also:
getDbNameForType(int), INVALID_TYPE

getArgusTypeForName

public static final int getArgusTypeForName(java.lang.String name)
Get the Argus object type for a name. This class is the inverse of getArgusNameForType

Returns:
int Database object type for a name, if no matching type constant is found, then INVALID_TYPE is returned.

See Also:
getArgusNameForType(int), INVALID_TYPE

getIcon

public static final javax.swing.Icon getIcon(int dbObjectType,
                                             int nodeType)
Utility method to get an Icon for the object type.

Parameters:
dbObjectType - Type of database object
nodeType - IMAGE_FOLDER or IMAGE_NODE

getDisplayName

public static final java.lang.String getDisplayName(int dbObjectType)
Utility method to obtain the display name fo ra given object type

Parameters:
dbObjectType - Type of database object

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.