Extension SDK 9.0.5

oracle.jdeveloper.cm.ds.db
Class Ddl

java.lang.Object
  extended byoracle.jdeveloper.cm.ds.db.Ddl

public class Ddl
extends java.lang.Object

Class for the DDL to create an object. Typically this will contain fragments of DDL statements for secondary objects. For Primary objects, it will contain the complete DDL necessary for the creation of the Object. The DDL is not one single script. Different aspects of the creation are handled by seperate scripts. For example, table creation has one script to handle the basic creation of the tables and columns. Another script alters the table to add the constraints. When the DDL fragments for an object are created, they are returned as an instance of a Ddl class. This is a HashTable. The file extension of the DDL script is used as the key.


Field Summary
static java.lang.String ACO
           
static java.lang.String CMC
           
static java.lang.String CMT
           
static java.lang.String CONCC
           
static java.lang.String CONFK
           
static java.lang.String CONUK
           
static java.lang.String DROP
           
static java.lang.String IND
           
static java.lang.String SYN
           
static java.lang.String TAB
           
static java.lang.String TRG
           
static java.lang.String VW
           
 
Constructor Summary
Ddl()
           
 
Method Summary
 Ddl append(Ddl appendThis)
          appends one set of DDL to another
 boolean containsKey(java.lang.String key)
          true if this key is in the table
 java.lang.String get(java.lang.String key)
          gets an SQL string.
 java.lang.String[] getAddConstraints()
          Get the DDL for constraints.
 java.lang.String[] getArray(java.lang.String key)
          gets an array of SQL strings.
 java.util.List getArrayList(java.lang.String key)
          gets a List of SQL strings.
 java.lang.String getCreateTable()
          Get the DDL for create table
 java.lang.String getDdl()
          gets all the DDL concatenated into a string SQL*Plus settings first, then create table! SQL*Plus settings are not duplicated.
 java.lang.String getSqlTerminator()
          get the current SQL statement terminator
 boolean isArray(java.lang.String ddlType)
          returns true if this DDL type is held as an array of Strings
 java.util.Set keySet()
           
 void put(java.lang.String key, java.util.ArrayList sqla)
          add an ArrayList of SQL strings to the key
 void put(java.lang.String key, java.lang.String sql)
          adds an SQL string to the key
 void put(java.lang.String key, java.lang.String[] sqla)
          adds an array of SQL strings to the key
 void setSqlTerminator(java.lang.String terminator)
          set an alternative SQL statement terminator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACO

public static final java.lang.String ACO
See Also:
Constant Field Values

CMT

public static final java.lang.String CMT
See Also:
Constant Field Values

CMC

public static final java.lang.String CMC
See Also:
Constant Field Values

CONUK

public static final java.lang.String CONUK
See Also:
Constant Field Values

CONFK

public static final java.lang.String CONFK
See Also:
Constant Field Values

CONCC

public static final java.lang.String CONCC
See Also:
Constant Field Values

IND

public static final java.lang.String IND
See Also:
Constant Field Values

SYN

public static final java.lang.String SYN
See Also:
Constant Field Values

TAB

public static final java.lang.String TAB
See Also:
Constant Field Values

TRG

public static final java.lang.String TRG
See Also:
Constant Field Values

VW

public static final java.lang.String VW
See Also:
Constant Field Values

DROP

public static final java.lang.String DROP
See Also:
Constant Field Values
Constructor Detail

Ddl

public Ddl()
Method Detail

setSqlTerminator

public void setSqlTerminator(java.lang.String terminator)
set an alternative SQL statement terminator


getSqlTerminator

public java.lang.String getSqlTerminator()
get the current SQL statement terminator


isArray

public boolean isArray(java.lang.String ddlType)
returns true if this DDL type is held as an array of Strings


containsKey

public boolean containsKey(java.lang.String key)
true if this key is in the table


put

public void put(java.lang.String key,
                java.lang.String sql)
adds an SQL string to the key


put

public void put(java.lang.String key,
                java.lang.String[] sqla)
adds an array of SQL strings to the key


put

public void put(java.lang.String key,
                java.util.ArrayList sqla)
add an ArrayList of SQL strings to the key


get

public java.lang.String get(java.lang.String key)
gets an SQL string. This method needs more work so that it can handle a key to an array of SQL strings. In this case it should return the concatenated Strings seperated by semi-colons


getArray

public java.lang.String[] getArray(java.lang.String key)
gets an array of SQL strings. This method handles a single string by converting it to an array.


getArrayList

public java.util.List getArrayList(java.lang.String key)
gets a List of SQL strings. This method handles a single string by converting it to an array.


getCreateTable

public java.lang.String getCreateTable()
Get the DDL for create table


getAddConstraints

public java.lang.String[] getAddConstraints()
Get the DDL for constraints. This is an array of alter table statements, one for each constraint


keySet

public java.util.Set keySet()

getDdl

public java.lang.String getDdl()
gets all the DDL concatenated into a string SQL*Plus settings first, then create table! SQL*Plus settings are not duplicated.


append

public Ddl append(Ddl appendThis)
appends one set of DDL to another


Extension SDK

 

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