com.infoteria.asteria.flowlibrary2.property
Class ConnectionProperty

java.lang.Object
  |
  +--com.infoteria.asteria.flowlibrary2.property.ConnectionProperty
All Implemented Interfaces:
Cloneable, Property

public class ConnectionProperty
extends Object
implements Property, Cloneable

コネクション型のプロパティクラスです。


Constructor Summary
ConnectionProperty(String type, String name)
          ConnectionProperty(type, name, true) と同じです。
ConnectionProperty(String type, String name, boolean required)
          コンストラクタ
 
Method Summary
 void assign(Property prop)
           
 String getConnectionName()
          コネクション名を返します。
 String getConnectionType()
          コネクションタイプを返します。
 ConnectionEntry getEntry(ExecuteContext context)
          このプロパティが参照するコネクションのConnectionEntryを返します。
コネクションが見つからない場合はnullを返します。
 String getName()
           
 PropertyType getType()
          プロパティ型を返します。
常にPropertyType.CONNECTIONを返します。
 String getValue()
          コネクション名を返します。
 void init(ExecuteContext context)
           
 boolean isMapable()
           
 boolean isNull()
           
 boolean isRequired()
           
 boolean isUse()
          このコネクションプロパティを使用するかどうかを返します。
 void setUse(boolean b)
          このコネクションプロパティを使用するかどうかを設定します。
通常はUseConnectionPropertyによってコンパイル時に設定されます。
 void setValue(String value)
          コネクション名を設定します。
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.infoteria.asteria.flowlibrary2.property.Property
clone
 

Constructor Detail

ConnectionProperty

public ConnectionProperty(String type,
                          String name)
ConnectionProperty(type, name, true) と同じです。

ConnectionProperty

public ConnectionProperty(String type,
                          String name,
                          boolean required)
コンストラクタ
Parameters:
type - コネクションタイプ
name - プロパティ名
required - このプロパティが必須プロパティの場合はtrue
Method Detail

getName

public String getName()
Description copied from interface: Property
プロパティ名を返します。
Specified by:
getName in interface Property

getType

public PropertyType getType()
プロパティ型を返します。
常にPropertyType.CONNECTIONを返します。
Specified by:
getType in interface Property

getConnectionType

public String getConnectionType()
コネクションタイプを返します。

isRequired

public boolean isRequired()
Description copied from interface: Property
このプロパティが必須プロパティの場合はtrueを返します。
Specified by:
isRequired in interface Property

isMapable

public boolean isMapable()
Description copied from interface: Property
このプロパティがマッパーでのMapping可能な場合はtrueを返します。
Specified by:
isMapable in interface Property

toString

public String toString()
Description copied from interface: Property
プロパティ値を文字列として返します。
Specified by:
toString in interface Property
Overrides:
toString in class Object

getValue

public String getValue()
コネクション名を返します。

getConnectionName

public String getConnectionName()
コネクション名を返します。

setValue

public void setValue(String value)
コネクション名を設定します。

isNull

public boolean isNull()
Description copied from interface: Property
このプロパティの値がnullの場合はtrueを返します。
Specified by:
isNull in interface Property

assign

public void assign(Property prop)
Description copied from interface: Property
このプロパティの内容を引数のPropertyにコピーします。
引数となるPropertyのクラスはメソッド呼び出しを行うクラスと同一でなければなりません。
Specified by:
assign in interface Property

getEntry

public ConnectionEntry getEntry(ExecuteContext context)
このプロパティが参照するコネクションのConnectionEntryを返します。
コネクションが見つからない場合はnullを返します。

init

public void init(ExecuteContext context)
Description copied from interface: Property
プロパティを実行コンテキストで初期化します。
Specified by:
init in interface Property

isUse

public boolean isUse()
このコネクションプロパティを使用するかどうかを返します。

setUse

public void setUse(boolean b)
このコネクションプロパティを使用するかどうかを設定します。
通常はUseConnectionPropertyによってコンパイル時に設定されます。