Code Search for Developers
 
 
  

DomainEntityPersisterLocal.java from Texai at Krugle


Show DomainEntityPersisterLocal.java syntax highlighted

/**
 * DomainEntityPersisterLocal.java
 *
 * Created on October 31, 2006, 11:28 AM
 *
 * Description: This is the business interface for DomainEntityPersister enterprise bean.
 *
 * Copyright (C) 2006 Stephen L. Reed.
 *
 * This program is free software; you can redistribute it and/or modify it under the terms
 * of the GNU General Public License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with this program;
 * if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

package org.texai.kb.ejb.session;

import javax.ejb.Local;
import org.texai.kb.ejb.session.shared.AssociationEditorLocal;
import org.texai.kb.ejb.session.shared.AssociationFinderLocal;
import org.texai.kb.ejb.session.shared.TermDefinitionAccessorLocal;
import org.texai.kb.ejb.session.shared.TermDeleterFacadeLocal;
import org.texai.kb.ejb.session.shared.TermFinderFacadeLocal;
import org.texai.kb.entity.AtomicTerm;
import org.texai.kb.entity.AbstractReifiedTerm;


/**
 * This is the business interface for DomainEntityPersister enterprise bean.
 */
@Local
public interface DomainEntityPersisterLocal {
  
  /** Persists the given domain entity as propositions in the knowledge base.
   *
   * @param domainEntity the domain entity
   * @param creator the creator
   * @param creationPurpose the creation purpose
   * @return the instance term that represents the domain entity
   */
  AtomicTerm persistDomainEntity(
          final Object domainEntity,
          final AbstractReifiedTerm creator,
          final AbstractReifiedTerm creationPurpose);
  
  /** Persists the given domain entity class as propositions in the knowledge base. 
   *
   * @param domainEntityClass the domain entity class
   * @param creator the creator
   * @param creationPurpose the creation purpose
   * @return the term that represents the domain entity class
   */
  AtomicTerm persistDomainEntityClass(
          final Class domainEntityClass,
          final AbstractReifiedTerm creator,
          final AbstractReifiedTerm creationPurpose);
  
  /** Sets the indicator to validate persisted gafs as a well-formed formulas.
   *
   * @param validateWellFormedFormula the indicator to validate persisted gafs as a well-formed formulas
   */
  void setValidateWellFormedFormula(boolean validateWellFormedFormula);
  
  /** Sets the term finder during out-of-the-container unit testing.
   *
   * @param termFinderFacade the term finder
   */
  void setTermFinderFacade(final TermFinderFacadeLocal termFinderFacade);
  
  /** Sets the term deleter during out-of-the-container unit testing.
   *
   * @param termDeleterFacade the term deleter
   */
  void setTermDeleterFacade(final TermDeleterFacadeLocal termDeleterFacade);
  
  /** Sets the association finder during out-of-the-container unit testing.
   *
   * @param associationFinder the association finder
   */
  void setAssociationFinder(final AssociationFinderLocal associationFinder);
  
  /** Sets the association editor during out-of-the-container unit testing.
   *
   * @param associationEditor the association editor
   */
  void setAssociationEditor(final AssociationEditorLocal associationEditor);

    /** Sets the term definition accessor during out-of-the-container unit testing.
   *
   * @param termDefinitionAccessor the term definition accessor
   */
  void setTermDefinitionAccessor(final TermDefinitionAccessorLocal termDefinitionAccessor);
    
}




See more files for this project here

Texai

Texai is an chatbot that intelligently seeks to acquire knowledge and friendly behaviors.

Project homepage: http://sourceforge.net/projects/texai
Programming language(s): Java,Shell Script,XML
License: other

  shared/
    AssociationEditorBean.java
    AssociationEditorLocal.java
    AssociationFinderBean.java
    AssociationFinderLocal.java
    KBPartitionFacadeBean.java
    KBPartitionFacadeLocal.java
    KBShardFacadeBean.java
    TermDeleterFacadeBean.java
    TermDeleterFacadeLocal.java
    TermFinderFacadeBean.java
    TermFinderFacadeLocal.java
    TermManagerBean.java
    TermManagerLocal.java
  AbstractDomainEntityAccessor.java
  DomainEntityDeleterBean.java
  DomainEntityDeleterLocal.java
  DomainEntityLoaderBean.java
  DomainEntityLoaderLocal.java
  DomainEntityManagerBean.java
  DomainEntityManagerLocal.java
  DomainEntityPersisterBean.java
  DomainEntityPersisterLocal.java
  package.html