jp.go.nict.langrid.wrapper.common.db.dao
クラス AdjacencyPairDao
java.lang.Object
jp.go.nict.langrid.wrapper.common.db.dao.AbstractDao
jp.go.nict.langrid.wrapper.common.db.dao.BasicEntityDao<T,U>
jp.go.nict.langrid.wrapper.common.db.dao.CategorizedEntityDao<AdjacencyPair,BasicEntityTable<AdjacencyPair>>
jp.go.nict.langrid.wrapper.common.db.dao.AdjacencyPairDao
public class AdjacencyPairDao
- extends CategorizedEntityDao<AdjacencyPair,BasicEntityTable<AdjacencyPair>>
- バージョン:
- $Revision: 6168 $
- 作成者:
- Takao Nakaguchi, $Author: Takao Nakaguchi $
メソッドの概要 |
long |
addAdjacencyPair(Language language,
String firstTurn,
String[] secondTurns,
long[] categoryIds)
|
long |
addFirstTurn(Language[] languages,
String[] firstTurns)
|
long |
addSecondTurn(long firstTurnId,
Language[] languages,
String[] secondTurns)
|
boolean |
deleteFirstTurn(long firstTurnId)
|
boolean |
deleteSecondTurn(long firstTurnId,
long secondTurnId)
|
Collection<AdjacencyPair> |
searchAdjacencyPairs(Language language,
Language[] subLanguages,
String matchingValue,
MatchingMethod matchingMethod,
long[] categoryIds)
隣接応答対を検索する。 |
void |
updateFirstTurn(long firstTurnId,
Language[] languages,
String[] firstTurns)
|
void |
updateFirstTurnCategories(long firstTurnId,
long[] categoryIds)
|
void |
updateSecondTurn(long firstTurnId,
long secondTurnId,
Language[] languages,
String[] secondTurns)
|
クラス jp.go.nict.langrid.wrapper.common.db.dao.CategorizedEntityDao から継承されたメソッド |
addCategory, delete, deleteCategory, getCategoryTable, getMappingTable, listCategories, searchCategories, searchCategoryIds, searchEntitiesOfCategories, updateCategory, updateEntityCategories |
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdjacencyPairDao
public AdjacencyPairDao(ConnectionManager connectionManager,
DbDictionary dbDictionary,
String tableNamePrefix,
int maxCount)
- コンストラクタ。
- パラメータ:
connectionManager
- コネクションマネージャdbDictionary
- DBディクショナリtableNamePrefix
- テーブル名maxCount
- 検索時の最大件数
searchAdjacencyPairs
public Collection<AdjacencyPair> searchAdjacencyPairs(Language language,
Language[] subLanguages,
String matchingValue,
MatchingMethod matchingMethod,
long[] categoryIds)
throws DaoException
- 隣接応答対を検索する。
- パラメータ:
language
- 言語firstTurn
- 検索する発話文matchingMethod
- マッチング方法categoryIds
- カテゴリID。省略時null又は空配列
- 戻り値:
- 検索結果
- 例外:
DaoException
- 処理に失敗した
addAdjacencyPair
public long addAdjacencyPair(Language language,
String firstTurn,
String[] secondTurns,
long[] categoryIds)
throws DaoException
- 例外:
DaoException
addFirstTurn
public long addFirstTurn(Language[] languages,
String[] firstTurns)
throws DaoException
- 例外:
DaoException
addSecondTurn
public long addSecondTurn(long firstTurnId,
Language[] languages,
String[] secondTurns)
throws DaoException
- 例外:
DaoException
updateFirstTurn
public void updateFirstTurn(long firstTurnId,
Language[] languages,
String[] firstTurns)
throws DaoException
- 例外:
DaoException
updateSecondTurn
public void updateSecondTurn(long firstTurnId,
long secondTurnId,
Language[] languages,
String[] secondTurns)
throws DaoException
- 例外:
DaoException
updateFirstTurnCategories
public void updateFirstTurnCategories(long firstTurnId,
long[] categoryIds)
throws DaoException
- 例外:
DaoException
deleteFirstTurn
public boolean deleteFirstTurn(long firstTurnId)
throws DaoException
- 例外:
DaoException
deleteSecondTurn
public boolean deleteSecondTurn(long firstTurnId,
long secondTurnId)
throws DaoException
- 例外:
DaoException