org.seasar.doma.jdbc.entity
クラス BasicProperty<D extends Domain<?,?>>

java.lang.Object
  上位を拡張 org.seasar.doma.jdbc.entity.BasicProperty<D>
すべての実装されたインタフェース:
EntityProperty<D>
直系の既知のサブクラス:
AssignedIdProperty, GeneratedIdProperty, VersionProperty

public class BasicProperty<D extends Domain<?,?>>
extends Object
implements EntityProperty<D>

基本のプロパティです。

作成者:
taedium

フィールドの概要
protected  String columnName
          カラム名
protected  D domain
          ドメイン
protected  boolean insertable
          INSERT文に含める対象かどうか
protected  String name
          名前
protected  boolean updatable
          UPDATE文のSET句に含める対象かどうか
 
コンストラクタの概要
BasicProperty(String name, String columnName, D domain, boolean insertable, boolean updatable)
          インスタンスを構築します。
 
メソッドの概要
 String getColumnName()
          カラム名を返します。
 D getDomain()
          ドメインを返します。
 String getName()
          名前を返します。
 boolean isId()
          識別子かどうかを返します。
 boolean isInsertable()
          INSERT文に含める対象かどうかを返します。
 boolean isTransient()
          非永続性かどうかを返します。
 boolean isUpdatable()
          UPDATE文のSET句に含める対象かどうかを返します。
 boolean isVersion()
          バージョンかどうかを返します。
 String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

name

protected final String name
名前


columnName

protected final String columnName
カラム名


domain

protected final D extends Domain<?,?> domain
ドメイン


insertable

protected final boolean insertable
INSERT文に含める対象かどうか


updatable

protected final boolean updatable
UPDATE文のSET句に含める対象かどうか

コンストラクタの詳細

BasicProperty

public BasicProperty(String name,
                     String columnName,
                     D domain,
                     boolean insertable,
                     boolean updatable)
インスタンスを構築します。

パラメータ:
name - 名前
columnName - カラム名
domain - ドメイン
insertable - INSERT文に含める対象かどうか
updatable - UPDATE文のSET句に含める対象かどうか
例外:
DomaNullPointerException - name もしくは domainnull の場合
メソッドの詳細

getName

public String getName()
インタフェース EntityProperty の記述:
名前を返します。

定義:
インタフェース EntityProperty<D extends Domain<?,?>> 内の getName
戻り値:
名前

getColumnName

public String getColumnName()
インタフェース EntityProperty の記述:
カラム名を返します。

定義:
インタフェース EntityProperty<D extends Domain<?,?>> 内の getColumnName
戻り値:
カラム名、存在しない場合 null

getDomain

public D getDomain()
インタフェース EntityProperty の記述:
ドメインを返します。

定義:
インタフェース EntityProperty<D extends Domain<?,?>> 内の getDomain
戻り値:
ドメイン

isId

public boolean isId()
インタフェース EntityProperty の記述:
識別子かどうかを返します。

定義:
インタフェース EntityProperty<D extends Domain<?,?>> 内の isId
戻り値:
識別子の場合 true

isVersion

public boolean isVersion()
インタフェース EntityProperty の記述:
バージョンかどうかを返します。

定義:
インタフェース EntityProperty<D extends Domain<?,?>> 内の isVersion
戻り値:
バージョンの場合 true

isInsertable

public boolean isInsertable()
インタフェース EntityProperty の記述:
INSERT文に含める対象かどうかを返します。

定義:
インタフェース EntityProperty<D extends Domain<?,?>> 内の isInsertable
戻り値:
INSERT文に含める対象の場合 true

isUpdatable

public boolean isUpdatable()
インタフェース EntityProperty の記述:
UPDATE文のSET句に含める対象かどうかを返します。

定義:
インタフェース EntityProperty<D extends Domain<?,?>> 内の isUpdatable
戻り値:
UPDATE文のSET句に含める対象の場合 true

isTransient

public boolean isTransient()
インタフェース EntityProperty の記述:
非永続性かどうかを返します。

定義:
インタフェース EntityProperty<D extends Domain<?,?>> 内の isTransient
戻り値:
非永続性の場合 true

toString

public String toString()
オーバーライド:
クラス Object 内の toString


Copyright © 2009 The Seasar Foundation. All Rights Reserved.