|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.doma.extension.gen.GlobalFactory
public class GlobalFactory
グローバルなファクトリです。
| コンストラクタの概要 | |
|---|---|
GlobalFactory()
|
|
| メソッドの概要 | |
|---|---|
DaoDelegateDescFactory |
createDaoDelegateDescFactory()
Daoデリゲート記述のファクトリを作成します。 |
DaoDescFactory |
createDaoDescFactory(String packageName,
String suffix,
String configClassName)
Dao記述のファクトリを作成します。 |
DataSource |
createDataSource(Driver driver,
String user,
String password,
String url)
データソースを作成します。 |
EntityDescFactory |
createEntityDescFactory(String packageName,
Class<?> superclass,
EntityPropertyDescFactory entityPropertyDescFactory,
NamingType namingType,
String originalStatesPropertyName,
boolean showCatalogName,
boolean showSchemaName,
boolean showTableName,
boolean showDbComment,
boolean useAccessor,
boolean useListener)
エンティティ記述のファクトリを作成します。 |
EntityListenerDescFactory |
createEntityListenerDescFactory(String packageName,
String superclassName)
|
EntityPropertyClassNameResolver |
createEntityPropertyClassNameResolver(File propertyFile)
エンティティプロパティのクラス名リゾルバを作成します。 |
EntityPropertyDescFactory |
createEntityPropertyDescFactory(GenDialect dialect,
EntityPropertyClassNameResolver propertyClassNameResolver,
String versionColumnNamePattern,
GenerationType generationType,
Long initialValue,
Long allocationSize,
boolean showColumnName)
エンティティプロパティ記述のファクトリを作成します。 |
Generator |
createGenerator(String templateEncoding,
File templatePrimaryDir)
ジェネレータを作成します。 |
SqlDescFactory |
createSqlDescFactory(File templatePrimaryDir,
GenDialect dialect)
SQL記述ファクトリを作成します。 |
SqlTestDescFactory |
createSqlTestDescFactory(String sqlTestClassName,
boolean abstrct,
String dialectClassName,
String driverClassName,
String url,
String user,
String password,
Set<File> sqlFiles)
SQLテスト記述ファクトリを作成します。 |
TableMetaReader |
createTableMetaReader(GenDialect dialect,
DataSource dataSource,
String schemaName,
String tableNamePattern,
String ignoredTableNamePattern,
List<String> tableTypes)
データソースメタデータのファクトリを作成します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public GlobalFactory()
| メソッドの詳細 |
|---|
public DataSource createDataSource(Driver driver,
String user,
String password,
String url)
driver - JDBCドライバーuser - ユーザーpassword - パスワードurl - 接続URL
public TableMetaReader createTableMetaReader(GenDialect dialect,
DataSource dataSource,
String schemaName,
String tableNamePattern,
String ignoredTableNamePattern,
List<String> tableTypes)
dialect - 方言dataSource - データソースschemaName - スキーマ名tableNamePattern - 読み取り対象とするテーブル名のパターンignoredTableNamePattern - 読み取り非対象とするテーブル名のパターンtableTypes - テーブルの型のリスト
public EntityPropertyDescFactory createEntityPropertyDescFactory(GenDialect dialect,
EntityPropertyClassNameResolver propertyClassNameResolver,
String versionColumnNamePattern,
GenerationType generationType,
Long initialValue,
Long allocationSize,
boolean showColumnName)
dialect - 方言propertyClassNameResolver - プロパティクラス名のリゾルバversionColumnNamePattern - バージョンカラム名パターンgenerationType - 識別子を生成する方法initialValue - 識別子の初期値allocationSize - 識別子の割り当てサイズshowColumnName - カラム名を表示する場合 true
public EntityDescFactory createEntityDescFactory(String packageName,
Class<?> superclass,
EntityPropertyDescFactory entityPropertyDescFactory,
NamingType namingType,
String originalStatesPropertyName,
boolean showCatalogName,
boolean showSchemaName,
boolean showTableName,
boolean showDbComment,
boolean useAccessor,
boolean useListener)
packageName - パッケージ名superclass - スーパークラスentityPropertyDescFactory - エンティティプロパティ記述のファクトリnamingType - ネーミング規約showCatalogName - カタログ名を表示する場合 trueshowSchemaName - スキーマ名を表示する場合 trueshowTableName - テーブル名を表示する場合 trueshowDbComment - データベースのコメントを表示する場合 trueuseAccessor - アクセッサーを使用する場合 true
public EntityListenerDescFactory createEntityListenerDescFactory(String packageName,
String superclassName)
public DaoDescFactory createDaoDescFactory(String packageName,
String suffix,
String configClassName)
packageName - パッケージ名suffix - サフィックスconfigClassName - 設定クラス名
public DaoDelegateDescFactory createDaoDelegateDescFactory()
public EntityPropertyClassNameResolver createEntityPropertyClassNameResolver(File propertyFile)
propertyFile - プロパティファイル
public SqlTestDescFactory createSqlTestDescFactory(String sqlTestClassName,
boolean abstrct,
String dialectClassName,
String driverClassName,
String url,
String user,
String password,
Set<File> sqlFiles)
sqlTestClassName - SQLのテストクラス名abstrct - 抽象クラスの場合truedialectClassName - org.seasar.doma.jdbc.dialect.Dialectのサブクラスの名前driverClassName - Driver のサブクラスの名前url - JDBC接続URLuser - JDBC接続ユーザpassword - JDBC接続パスワードsqlFiles - テスト対象のSQLファイルのセット
public SqlDescFactory createSqlDescFactory(File templatePrimaryDir,
GenDialect dialect)
templatePrimaryDir - テンプレートを格納するプライマリディレクトリ、使用しない場合 nulldialect - 方言
public Generator createGenerator(String templateEncoding,
File templatePrimaryDir)
templateEncoding - テンプレートファイルのエンコーディングtemplatePrimaryDir - テンプレートファイルを格納したプライマリディレクトリ、プライマリディレクトリを使用しない場合null
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||