org.jboss.dna.connector.store.jpa
Class Model

java.lang.Object
  extended by org.jboss.dna.connector.store.jpa.Model
Direct Known Subclasses:
BasicModel

public abstract class Model
extends Object

A descriptor of a schema used by this connector.

See Also:
JpaSource.Models, JpaSource.Models.addModel(Model), JpaSource.setModel(String), JpaSource.getModel()

Method Summary
abstract  void configure(org.hibernate.ejb.Ejb3Configuration configurator)
          Configure the entity class that will be used by JPA to store information in the database.
abstract  RequestProcessor createRequestProcessor(String sourceName, ExecutionContext context, Observer observer, javax.persistence.EntityManager entityManager, UUID rootNodeUuid, String nameOfDefaultWorkspace, String[] predefinedWorkspaceNames, long largeValueMinimumSizeInBytes, boolean creatingWorkspacesAllowed, boolean comparessData, boolean enforceReferentialIntegrity)
           
 boolean equals(Object obj)
           
 String getDescription()
          Get the description of this model in the default locale.
 String getDescription(Locale locale)
          Get the description of this model in the supplied locale.
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public final String getName()

getDescription

public String getDescription()
Get the description of this model in the default locale.

Returns:
the description of this model; never null

getDescription

public String getDescription(Locale locale)
Get the description of this model in the supplied locale.

Parameters:
locale - the locale in which the description is to be returned
Returns:
the description of this model; never null

createRequestProcessor

public abstract RequestProcessor createRequestProcessor(String sourceName,
                                                        ExecutionContext context,
                                                        Observer observer,
                                                        javax.persistence.EntityManager entityManager,
                                                        UUID rootNodeUuid,
                                                        String nameOfDefaultWorkspace,
                                                        String[] predefinedWorkspaceNames,
                                                        long largeValueMinimumSizeInBytes,
                                                        boolean creatingWorkspacesAllowed,
                                                        boolean comparessData,
                                                        boolean enforceReferentialIntegrity)

configure

public abstract void configure(org.hibernate.ejb.Ejb3Configuration configurator)
Configure the entity class that will be used by JPA to store information in the database.

Parameters:
configurator - the Hibernate Ejb3Configuration component; never null

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2008-2009 JBoss, a division of Red Hat. All Rights Reserved.