com.infoteria.asteria.flowbuilder2.sqlbuilder
Class NullTableProvider
java.lang.Object
|
+--com.infoteria.asteria.flowbuilder2.sqlbuilder.NullTableProvider
- All Implemented Interfaces:
- TableProvider
- public class NullTableProvider
- extends java.lang.Object
- implements TableProvider
何も返さないTableProvider
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullTableProvider
public NullTableProvider()
getSchemaName
public java.lang.String getSchemaName()
- Description copied from interface:
TableProvider
- デフォルトのスキーマ名
- Specified by:
getSchemaName in interface TableProvider
getTableNames
public java.lang.String[] getTableNames()
- Description copied from interface:
TableProvider
- 使用可能なテーブル名の配列
テーブル名は「スキーマ名.テーブル名」のように「.」で区切られる。
(DBによってはスキーマ名がないこともある)
- Specified by:
getTableNames in interface TableProvider
getTable
public Table getTable(java.lang.String name)
- Description copied from interface:
TableProvider
- 指定のテーブルのTableクラス
- Specified by:
getTable in interface TableProvider
isOracle
public boolean isOracle()
- Description copied from interface:
TableProvider
- TABLEの供給元がOracleである場合にtrue
(SQLの方言に対応するために必要)
- Specified by:
isOracle in interface TableProvider
isTestSupported
public boolean isTestSupported()
- Description copied from interface:
TableProvider
- selectTestがサポートされているかどうか
- Specified by:
isTestSupported in interface TableProvider
selectTest
public java.util.List selectTest(java.lang.String sql,
VariableList params,
int max,
boolean bHeader)
throws java.sql.SQLException
- Description copied from interface:
TableProvider
- select文のテスト実行。結果はString[]のListで返される。
selectTest の5番目の引数をnullにしたのと同じ動作になります。
- Specified by:
selectTest in interface TableProvider
- Following copied from interface:
com.infoteria.asteria.sqlbuilder.model.TableProvider
- Parameters:
sql - SQL文。パラメータなどはRDBGetやSQLCallで使用しているそのままの形式で埋め込んでおくparams - SQLパラメータ。SQL文中のパラメータに対応max - returnに含める最大行数bHeader - 結果のListにヘッダ行を含めるかどうか。trueの場合はListの1行目はSELECT結果ではなく列名- Returns:
- SELECT実行結果がString[]のListとして返される
selectTest
public java.util.List selectTest(java.lang.String sql,
VariableList params,
int max,
boolean bHeader,
java.util.Map sqlTypeMap)
throws java.sql.SQLException
- Description copied from interface:
TableProvider
- select文のテスト実行。結果はString[]のListで返される。
- Specified by:
selectTest in interface TableProvider
- Following copied from interface:
com.infoteria.asteria.sqlbuilder.model.TableProvider
- Parameters:
sql - SQL文。パラメータなどはRDBGetやSQLCallで使用しているそのままの形式で埋め込んでおくparams - SQLパラメータ。SQL文中のパラメータに対応max - returnに含める最大行数bHeader - 結果のListにヘッダ行を含めるかどうか。trueの場合はListの1行目はSELECT結果ではなく列名sqlTypeMap - params のそれぞれのフィールド名(String)と java.sql.Types の型(Integer)のマップ 実行時に対応する型が見つからない場合は VARCHAR 扱いになります- Returns:
- SELECT実行結果がString[]のListとして返される
supportsSchemasInformation
public com.infoteria.asteria.util.rdb.SchemasInfo supportsSchemasInformation()
throws java.sql.SQLException
- Description copied from interface:
TableProvider
- サポートしているスキーマ情報を返します
- Specified by:
supportsSchemasInformation in interface TableProvider
- Following copied from interface:
com.infoteria.asteria.sqlbuilder.model.TableProvider
- Returns:
- サポートスキーマ情報