クラス org.objectweb.cjdbc.common.sql.DropRequest

org.objectweb.cjdbc.common.sql.DropRequestに対する継承グラフ

Inheritance graph
[凡例]
org.objectweb.cjdbc.common.sql.DropRequestのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

説明

An DropRequest is an SQL request with the following syntax:

  DROP TABLE table-name
 

作者:
Julie Marguerite

Mathieu Peltier

バージョン:
1.0

DropRequest.java44 行で定義されています。

Public メソッド

 DropRequest (String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator, DatabaseSchema schema, int granularity, boolean isCaseSensitive) throws SQLException
 DropRequest (String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator)
void parse (DatabaseSchema schema, int granularity, boolean isCaseSensitive) throws SQLException
void cloneParsing (AbstractRequest request)
boolean isInsert ()
boolean isUpdate ()
boolean isDelete ()
boolean isCreate ()
boolean isDrop ()
void debug ()
boolean isAlter ()


コンストラクタとデストラクタ

org.objectweb.cjdbc.common.sql.DropRequest.DropRequest String  sqlQuery,
boolean  escapeProcessing,
int  timeout,
String  lineSeparator,
DatabaseSchema  schema,
int  granularity,
boolean  isCaseSensitive
throws SQLException
 

Creates a new DropRequest instance. The caller must give an SQL request, without any leading or trailing spaces and beginning with 'drop table ' (it will not be checked).

If the syntax is incorrect an exception is thrown.

引数:
sqlQuery a String value
escapeProcessing should the driver to escape processing before sending to the database ?
timeout an int value
lineSeparator the line separator used in the query
schema a DatabaseSchema value
granularity parsing granularity as defined in ParsingGranularities
isCaseSensitive true if parsing is case sensitive
例外:
SQLException if an error occurs
DropRequest.java65 行で定義されています。

参照先 org.objectweb.cjdbc.common.sql.DropRequest.parse().

00068 { 00069 this(sqlQuery, escapeProcessing, timeout, lineSeparator); 00070 parse(schema, granularity, isCaseSensitive); 00071 }

org.objectweb.cjdbc.common.sql.DropRequest.DropRequest String  sqlQuery,
boolean  escapeProcessing,
int  timeout,
String  lineSeparator
 

Creates a new DropRequest instance. The caller must give an SQL request, without any leading or trailing spaces and beginning with 'create table ' (it will not be checked).

The request is not parsed but it can be done later by a call to parse(DatabaseSchema, int, boolean).

引数:
sqlQuery the SQL request
escapeProcessing should the driver to escape processing before sending to the database ?
timeout an int value
lineSeparator the line separator used in the query
参照:
parse
DropRequest.java88 行で定義されています。
00090 { 00091 super(sqlQuery, escapeProcessing, timeout, lineSeparator); 00092 cacheable = RequestType.UNCACHEABLE; 00093 isParsed = false; 00094 }


メソッド

void org.objectweb.cjdbc.common.sql.DropRequest.cloneParsing AbstractRequest  request  )  [virtual]
 

参照:
AbstractRequest.cloneParsing(AbstractRequest)

org.objectweb.cjdbc.common.sql.AbstractRequestを実装しています.

DropRequest.java137 行で定義されています。

参照先 org.objectweb.cjdbc.common.sql.AbstractWriteRequest.cloneTableNameAndColumns(), と org.objectweb.cjdbc.common.sql.AbstractRequest.isParsed.

00138 { 00139 if (!request.isParsed()) 00140 return; 00141 cloneTableNameAndColumns((AbstractWriteRequest) request); 00142 isParsed = true; 00143 }

void org.objectweb.cjdbc.common.sql.DropRequest.debug  ) 
 

Displays some debugging information about this request.

org.objectweb.cjdbc.common.sql.AbstractRequestを再定義しています。

DropRequest.java193 行で定義されています。

00194 { 00195 super.debug(); 00196 if (tableName != null) 00197 System.out.println("Dropped table '" + tableName + "'"); 00198 else 00199 System.out.println("No information about dropped table"); 00200 00201 System.out.println(); 00202 }

boolean org.objectweb.cjdbc.common.sql.DropRequest.isAlter  )  [virtual]
 

参照:
org.objectweb.cjdbc.common.sql.AbstractWriteRequest.isAlter()

org.objectweb.cjdbc.common.sql.AbstractWriteRequestを実装しています.

DropRequest.java206 行で定義されています。

00207 { 00208 return false; 00209 }

boolean org.objectweb.cjdbc.common.sql.DropRequest.isCreate  )  [virtual]
 

戻り値:
false
参照:
org.objectweb.cjdbc.common.sql.AbstractWriteRequest.isCreate()

org.objectweb.cjdbc.common.sql.AbstractWriteRequestを実装しています.

DropRequest.java176 行で定義されています。

00177 { 00178 return false; 00179 }

boolean org.objectweb.cjdbc.common.sql.DropRequest.isDelete  )  [virtual]
 

戻り値:
false
参照:
org.objectweb.cjdbc.common.sql.AbstractWriteRequest.isDelete()

org.objectweb.cjdbc.common.sql.AbstractWriteRequestを実装しています.

DropRequest.java167 行で定義されています。

00168 { 00169 return false; 00170 }

boolean org.objectweb.cjdbc.common.sql.DropRequest.isDrop  )  [virtual]
 

戻り値:
true
参照:
org.objectweb.cjdbc.common.sql.AbstractWriteRequest.isDrop()

org.objectweb.cjdbc.common.sql.AbstractWriteRequestを実装しています.

DropRequest.java185 行で定義されています。

00186 { 00187 return true; 00188 }

boolean org.objectweb.cjdbc.common.sql.DropRequest.isInsert  )  [virtual]
 

戻り値:
false
参照:
org.objectweb.cjdbc.common.sql.AbstractWriteRequest.isInsert()

org.objectweb.cjdbc.common.sql.AbstractWriteRequestを実装しています.

DropRequest.java149 行で定義されています。

00150 { 00151 return false; 00152 }

boolean org.objectweb.cjdbc.common.sql.DropRequest.isUpdate  )  [virtual]
 

戻り値:
false
参照:
org.objectweb.cjdbc.common.sql.AbstractWriteRequest.isUpdate()

org.objectweb.cjdbc.common.sql.AbstractWriteRequestを実装しています.

DropRequest.java158 行で定義されています。

00159 { 00160 return false; 00161 }

void org.objectweb.cjdbc.common.sql.DropRequest.parse DatabaseSchema  schema,
int  granularity,
boolean  isCaseSensitive
throws SQLException [virtual]
 

参照:
org.objectweb.cjdbc.common.sql.AbstractRequest.parse(org.objectweb.cjdbc.common.sql.schema.DatabaseSchema, int, boolean)

org.objectweb.cjdbc.common.sql.AbstractRequestを実装しています.

DropRequest.java100 行で定義されています。

参照先 org.objectweb.cjdbc.common.sql.schema.DatabaseTable.getName().

参照元 org.objectweb.cjdbc.common.sql.DropRequest.DropRequest().

00102 { 00103 if (granularity == ParsingGranularities.NO_PARSING) 00104 { 00105 isParsed = true; 00106 return; 00107 } 00108 00109 String originalSQL = this.trimCarriageReturn(); 00110 String dropTable = originalSQL.toLowerCase(); 00111 00112 // Strip 'drop (temporary) table ' 00113 int tableIdx = dropTable.indexOf("table"); 00114 if (isCaseSensitive) 00115 dropTable = originalSQL.substring(tableIdx + 5).trim(); 00116 else 00117 dropTable = dropTable.substring(tableIdx + 5).trim(); 00118 00119 if (schema == null) 00120 tableName = dropTable; 00121 else 00122 { 00123 // Get the table on which DROP occurs 00124 DatabaseTable t = schema.getTable(dropTable, isCaseSensitive); 00125 if (t == null) 00126 throw new SQLException("Unknown table '" + dropTable 00127 + "' in this DROP statement '" + sqlQuery + "'"); 00128 else 00129 tableName = t.getName(); 00130 } 00131 isParsed = true; 00132 }


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:17 2004に生成されました。 doxygen 1.3.8