org.seasar.doma.jdbc.entity
クラス BasicPropertyType<E,V>

java.lang.Object
  上位を拡張 org.seasar.doma.jdbc.entity.BasicPropertyType<E,V>
すべての実装されたインタフェース:
org.seasar.doma.internal.jdbc.criteria.ColumnCriterion<V>, org.seasar.doma.internal.jdbc.criteria.Criterion<V>, org.seasar.doma.internal.jdbc.criteria.OrderItemCriterion<V>, EntityPropertyType<E,V>
直系の既知のサブクラス:
AssignedIdPropertyType, GeneratedIdPropertyType, VersionPropertyType

public abstract class BasicPropertyType<E,V>
extends java.lang.Object
implements EntityPropertyType<E,V>

基本のプロパティ型です。

作成者:
taedium

フィールドの概要
protected  java.lang.String columnName
          カラム名
protected  java.lang.Class<V> entityPropertyClass
          プロパティのクラス
protected  boolean insertable
          挿入可能かどうか
protected  java.lang.String name
          プロパティの名前
protected  boolean updatable
          更新可能かどうか
 
コンストラクタの概要
protected BasicPropertyType(java.lang.Class<V> entityPropertyClass, java.lang.String name, java.lang.String columnName, boolean insertable, boolean updatable)
          インスタンスを構築します。
 
メソッドの概要
<R,P,TH extends java.lang.Throwable>
R
accept(org.seasar.doma.internal.jdbc.criteria.CriterionVisitor<R,P,TH> visitor, P p)
           
 java.lang.String getColumnName()
          カラム名を返します。
 java.lang.String getName()
          プロパティの名前を返します。
 java.lang.Class<V> getType()
           
 boolean isId()
          識別子かどうかを返します。
 boolean isInsertable()
          挿入可能かどうかを返します。
 boolean isUpdatable()
          更新可能かどうかを返します。
 boolean isVersion()
          バージョンかどうかを返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.seasar.doma.jdbc.entity.EntityPropertyType から継承されたメソッド
getWrapper
 

フィールドの詳細

entityPropertyClass

protected final java.lang.Class<V> entityPropertyClass
プロパティのクラス


name

protected final java.lang.String name
プロパティの名前


columnName

protected final java.lang.String columnName
カラム名


insertable

protected final boolean insertable
挿入可能かどうか


updatable

protected final boolean updatable
更新可能かどうか

コンストラクタの詳細

BasicPropertyType

protected BasicPropertyType(java.lang.Class<V> entityPropertyClass,
                            java.lang.String name,
                            java.lang.String columnName,
                            boolean insertable,
                            boolean updatable)
インスタンスを構築します。

パラメータ:
entityPropertyClass - プロパティのクラス
name - プロパティの名前
columnName - カラム名
insertable - 挿入可能かどうか
updatable - 更新可能かどうか
メソッドの詳細

getName

public java.lang.String getName()
インタフェース EntityPropertyType の記述:
プロパティの名前を返します。

定義:
インタフェース EntityPropertyType<E,V> 内の getName
戻り値:
名前

getColumnName

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

定義:
インタフェース EntityPropertyType<E,V> 内の getColumnName
戻り値:
カラム名

isId

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

定義:
インタフェース EntityPropertyType<E,V> 内の isId
戻り値:
識別子の場合 true

isVersion

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

定義:
インタフェース EntityPropertyType<E,V> 内の isVersion
戻り値:
バージョンの場合 true

isInsertable

public boolean isInsertable()
インタフェース EntityPropertyType の記述:
挿入可能かどうかを返します。

定義:
インタフェース EntityPropertyType<E,V> 内の isInsertable
戻り値:
挿入可能の場合 true

isUpdatable

public boolean isUpdatable()
インタフェース EntityPropertyType の記述:
更新可能かどうかを返します。

定義:
インタフェース EntityPropertyType<E,V> 内の isUpdatable
戻り値:
更新可能の場合 true

getType

public java.lang.Class<V> getType()
定義:
インタフェース org.seasar.doma.internal.jdbc.criteria.ColumnCriterion<V> 内の getType

accept

public <R,P,TH extends java.lang.Throwable> R accept(org.seasar.doma.internal.jdbc.criteria.CriterionVisitor<R,P,TH> visitor,
                                                     P p)
         throws TH extends java.lang.Throwable
定義:
インタフェース org.seasar.doma.internal.jdbc.criteria.Criterion<V> 内の accept
例外:
TH extends java.lang.Throwable


Copyright © 2009-2010 The Seasar Foundation. All Rights Reserved.