jp.go.nict.langrid.dao
インタフェース ResourceTypeDao

既知の実装クラスの一覧:
HibernateResourceTypeDao, P2PGridBasisResourceMetaAttributeDao, P2PGridBasisResourceTypeDao

public interface ResourceTypeDao

リソースタイプ情報の管理を行うDAOクラスのインターフェース。

バージョン:
$Revision: 12255 $
作成者:
Takao Nakaguchi, $Author:nakaguchi $

メソッドの概要
 void addResourceMetaAttribute(ResourceMetaAttribute metaAttribute)
          リソースメタ属性を追加する。
 void addResourceType(ResourceType resourceType)
          リソースタイプを追加する。
 void clear()
          登録されているリソースタイプを全て消去する。
 void deleteResourceMetaAttribute(String domainId)
          指定したdomainの全リソースタイプを削除する。
 void deleteResourceMetaAttribute(String domainId, String attributeName)
          リソースタイプを削除する。
 void deleteResourceType(String domainId)
          指定したdomainの全リソースタイプを削除する。
 void deleteResourceType(String domainId, String resourceTypeId)
          リソースタイプを削除する。
 ResourceMetaAttribute getResourceMetaAttribute(String domainId, String attributeName)
          リソースメタ属性を取得する。
 ResourceType getResourceType(String domainId, String resourceTypeId)
          resourceTypeIdで指定されたリソースタイプを取得する。
 boolean isResourceMetaAttributeExist(String domainId, String resourceMetaAttributeId)
          メタアトリビュートが存在するかどうかを返す。
 boolean isResourceTypeExist(String domainId, String resourceTypeId)
          リソースタイプが存在するかどうかを返す。
 List<ResourceMetaAttribute> listAllResourceMetaAttributes()
          全リソースメタ属性を列挙する。
 List<ResourceMetaAttribute> listAllResourceMetaAttributes(String domainId)
          指定したドメインIDの全リソースメタ属性を列挙する。
 List<ResourceType> listAllResourceTypes()
          全リソースタイプを列挙する。
 List<ResourceType> listAllResourceTypes(String domainId)
          特定ドメインの全リソースタイプを列挙する。
 

メソッドの詳細

clear

void clear()
           throws DaoException
登録されているリソースタイプを全て消去する。

例外:
DaoException - 情報の削除に失敗した

listAllResourceTypes

List<ResourceType> listAllResourceTypes()
                                        throws DaoException
全リソースタイプを列挙する。

戻り値:
検索結果
例外:
DaoException - 処理に失敗した

listAllResourceTypes

List<ResourceType> listAllResourceTypes(String domainId)
                                        throws DaoException
特定ドメインの全リソースタイプを列挙する。

戻り値:
検索結果
例外:
DaoException - 処理に失敗した

addResourceType

void addResourceType(ResourceType resourceType)
                     throws DaoException
リソースタイプを追加する。

パラメータ:
resourceType - 追加するリソースタイプの情報
例外:
DaoException - 情報の書き出しに失敗した

deleteResourceType

void deleteResourceType(String domainId,
                        String resourceTypeId)
                        throws DaoException
リソースタイプを削除する。

パラメータ:
domainId - 削除するリソースタイプのドメインID
resourceTypeId - 削除するリソースタイプのリソースタイプID
例外:
DaoException - 情報の読み込みに失敗した

deleteResourceType

void deleteResourceType(String domainId)
                        throws DaoException
指定したdomainの全リソースタイプを削除する。

パラメータ:
domainId - 削除するリソースタイプのドメインID
例外:
DaoException - 情報の読み込みに失敗した

getResourceType

ResourceType getResourceType(String domainId,
                             String resourceTypeId)
                             throws DaoException
resourceTypeIdで指定されたリソースタイプを取得する。

パラメータ:
domainId - 取得するリソースタイプのドメインID
resourceTypeId - 取得するリソースタイプのリソースタイプID
戻り値:
ドメイン情報
例外:
DaoException - 情報の読み込みに失敗した

isResourceTypeExist

boolean isResourceTypeExist(String domainId,
                            String resourceTypeId)
                            throws DaoException
リソースタイプが存在するかどうかを返す。

パラメータ:
domainId - 取得するリソースタイプのドメインID
resourceTypeId - 取得するリソースタイプのリソースタイプID
戻り値:
存在する場合true
例外:
DaoException - 処理に失敗した

listAllResourceMetaAttributes

List<ResourceMetaAttribute> listAllResourceMetaAttributes()
                                                          throws DaoException
全リソースメタ属性を列挙する。

戻り値:
検索結果
例外:
DaoException - 処理に失敗した

listAllResourceMetaAttributes

List<ResourceMetaAttribute> listAllResourceMetaAttributes(String domainId)
                                                          throws DaoException
指定したドメインIDの全リソースメタ属性を列挙する。

パラメータ:
domainId - ドメインID
戻り値:
検索結果
例外:
DaoException - 処理に失敗した

addResourceMetaAttribute

void addResourceMetaAttribute(ResourceMetaAttribute metaAttribute)
                              throws DaoException
リソースメタ属性を追加する。

パラメータ:
metaAttribute - 追加するリソースメタ属性の情報
例外:
DaoException - 処理に失敗した

deleteResourceMetaAttribute

void deleteResourceMetaAttribute(String domainId,
                                 String attributeName)
                                 throws DaoException
リソースタイプを削除する。

パラメータ:
domainId - ドメインID
attributeName - 属性名
例外:
DaoException - 処理に失敗した

deleteResourceMetaAttribute

void deleteResourceMetaAttribute(String domainId)
                                 throws DaoException
指定したdomainの全リソースタイプを削除する。

パラメータ:
domainId - ドメインID
例外:
DaoException - 処理に失敗した

getResourceMetaAttribute

ResourceMetaAttribute getResourceMetaAttribute(String domainId,
                                               String attributeName)
                                               throws DaoException
リソースメタ属性を取得する。

パラメータ:
domainId - ドメインID
attributeName - 属性名
戻り値:
リソースメタ属性
例外:
DaoException - 処理に失敗した

isResourceMetaAttributeExist

boolean isResourceMetaAttributeExist(String domainId,
                                     String resourceMetaAttributeId)
                                     throws DaoException
メタアトリビュートが存在するかどうかを返す。

パラメータ:
domainId - 取得するメタアトリビュートのドメインID
resourceMetaAttributeId - 取得するメタアトリビュートのID
戻り値:
存在する場合true
例外:
DaoException - 処理に失敗した