org.mtzky.lucene.descriptor
クラス BeanDocumentDesc<E>

java.lang.Object
  上位を拡張 org.mtzky.lucene.descriptor.AbstractLuceneDocumentDesc<E>
      上位を拡張 org.mtzky.lucene.descriptor.BeanDocumentDesc<E>
すべての実装されたインタフェース:
LuceneDocumentDesc<E>

public class BeanDocumentDesc<E>
extends AbstractLuceneDocumentDesc<E>

Bean class descriptor for LuceneIndex.

作成者:
mtzky

フィールドの概要
protected static LuceneFieldStrategyFactory DEFAULT_STRATEGY_FACTORY
           
 
コンストラクタの概要
BeanDocumentDesc(Class<E> beanClass)
           
BeanDocumentDesc(Class<E> beanClass, BeanPropertyConfig... configs)
           
BeanDocumentDesc(Class<E> beanClass, LuceneFieldStrategyFactory strategyFactory)
           
BeanDocumentDesc(Class<E> beanClass, LuceneFieldStrategyFactory strategyFactory, BeanPropertyConfig... configs)
           
 
メソッドの概要
 Document createDocument(E bean)
           Creates Document from entity.
 E createEntity(Document document)
           Creates entity from Document.
 
クラス org.mtzky.lucene.descriptor.AbstractLuceneDocumentDesc から継承されたメソッド
getAnalyzer, getIdName, getIdTermByEntity, getIdTermByValue
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_STRATEGY_FACTORY

protected static final LuceneFieldStrategyFactory DEFAULT_STRATEGY_FACTORY
コンストラクタの詳細

BeanDocumentDesc

public BeanDocumentDesc(Class<E> beanClass)
パラメータ:
beanClass -

BeanDocumentDesc

public BeanDocumentDesc(Class<E> beanClass,
                        LuceneFieldStrategyFactory strategyFactory)
パラメータ:
beanClass -
strategyFactory - LuceneFieldStrategyFactory

BeanDocumentDesc

public BeanDocumentDesc(Class<E> beanClass,
                        BeanPropertyConfig... configs)
パラメータ:
beanClass -
configs -

BeanDocumentDesc

public BeanDocumentDesc(Class<E> beanClass,
                        LuceneFieldStrategyFactory strategyFactory,
                        BeanPropertyConfig... configs)
パラメータ:
beanClass -
strategyFactory - LuceneFieldStrategyFactory
configs -
メソッドの詳細

createDocument

public Document createDocument(E bean)
インタフェース LuceneDocumentDesc の記述:

Creates Document from entity.

戻り値:
Document

createEntity

public E createEntity(Document document)
インタフェース LuceneDocumentDesc の記述:

Creates entity from Document.

戻り値:
entity


Copyright (C) 2010-2011 Mtzky. AllRights Reserved.