Package org.nuiton.topia.persistence
This package contains most of the needed contracts when using ToPIA.
To manipulate ToPIA you need to understand the role of both interfaces
TopiaApplicationContext and
TopiaPersistenceContext. The implementation of these contracts has been
generated in your own project under the name "XxxTopiaApplicationContext" and "XxxTopiaPersistenceContext" where
"Xxx" is the name of your project.
When configuring an application, you may need to use ToPIA defined constants that are listed in the
TopiaConfigurationConstants contract.
You might want to use a cache in order to keep a list of the running application context, for this particular case
you can use TopiaApplicationContextCache.
Each entity managed by ToPIA implements the TopiaEntity contract through the
abstract class AbstractTopiaEntity. You can find some useful methods on
entities in the TopiaEntities class.
Each Dao implements the TopiaDao contract through the abstract class
AbstractTopiaDao.
Each service implements the TopiaService
-
ClassDescriptionVisitor to run through the entity graph by depth.It's just a shortcut that allows you to use
AvailableSettingsconstants without adding Hibernate to your dependencies so one can fill theTopiaConfiguration.getHibernateExtraConfiguration().Visitor to run through entities horizontally, then delegate visiting to another visitor.HqlAndParametersBuilder<E extends TopiaEntity>A builder to create syntactically correct HQL and associated parameters given properties or after various constraint adds.If you get this exception, it means that you asked ToPIA to make an operation that needs a deterministic way to sort the result but you didn't defined such query.This exception is throwed when the database schema is not suitable for the current entities model.TopiaApplicationContext<K extends TopiaPersistenceContext>This is the main entry point for ToPIA.This class will provide a TopiaApplicationContext cache.Configuration needed to instantiate aTopiaApplicationContext.Builder to create aTopiaConfigurationinstance.Deprecated.TopiaDao<E extends TopiaEntity>This contract represents the common operations any Dao should be able to provide as API.Contract that provides any Dao instance from a given entity class.Utility class that provides useful methods forTopiaEntitymanipulation.The TopiaEntity is the main interface for each generated entity.This contract represents a generated entity.TopiaEntityEnumProvider<T extends TopiaEntityEnum>Object which helps to wrap some static generated code (entityEnum).Visitor contract for anyTopiaEntity.Main exception for any ToPIA exception Created: 23 déc. 2005 23:03:36 Since version 3.0, this exception is now a RuntimeException has it represents only technical issues.This contract represents a topiaId generation strategy.WhenTopiaApplicationContext.initSchema()is called, topia will look for a topia-service that is able to migrate the database.Exception raised when a user has wrongly configured ToPIA.Exception raised when a query returns more than one result while it was expected to return only one (or no result).Exception raised when a query returned no result while at least one result was expected.Exception thrown if one of the expected configuration entries is missing at runtime Created: 23 déc. 2005 23:04:28This contract represents a persistence context, which lifecycle is linked to the transaction lifecycle.Additional contract that aggregate bothTopiaQueryBuilderAddCriteriaStepandTopiaQueryBuilderRunQueryStepcontracts.TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>Represents a step when building a query to add a constraint.TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>This interface represents different common operations that a user may do after a query is defined (using theTopiaQueryBuilderAddCriteriaStep) There are different methods according to the supposed existence or uniqueness of the result.A subset ofTopiaQueryBuilderRunQueryStepfor certain API methods that should not allow findAll.Exception raised when an error occur in the context of a particular query.Represent the destination of a replication process.Used to implement a service for Topia.This contract represents a transaction and provides methods to manipulate it.Deprecated.This is probably not useful anymore.Exception thrown when something went wrong during event firing Created: 5 janv. 2006 00:47:51
TopiaConfigurationBuilder, if you need Hibernate constants, useHibernateAvailableSettings