org.modeshape.connector.store.jpa
Class Model

java.lang.Object
  extended by org.modeshape.connector.store.jpa.Model
Direct Known Subclasses:
BasicModel, SimpleModel

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()

Constructor Summary
protected Model(String name, I18n description)
           
 
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  RepositoryConnection createConnection(JpaSource source)
           
 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Model

protected Model(String name,
                I18n description)
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

createConnection

public abstract RepositoryConnection createConnection(JpaSource source)

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-2010 JBoss, a division of Red Hat. All Rights Reserved.