public class OrientDbStatementFactoryImpl extends AbstractStatementFactory implements OrientDbStatementFactory
OrientDbStatementFactory.| Modifier and Type | Field and Description |
|---|---|
private OrientDbDialect |
dialect |
private Function<com.orientechnologies.orient.core.record.impl.ODocument,OrientBean> |
mapper |
| Constructor and Description |
|---|
OrientDbStatementFactoryImpl()
The constructor.
|
OrientDbStatementFactoryImpl(OrientDbDialect dialect)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<E> OrientDbDeleteStatement<E> |
deleteFrom(EntityAlias<E> alias)
Creates a regular
DeleteStatement (DELETE FROM alias.source [AS alias.name] ...). |
<E> OrientDbInsertStatement<E> |
insertInto(EntityAlias<E> alias)
Creates a regular
InsertStatement (DELETE FROM alias.source [AS alias.name] ...). |
<E> OrientDbSelectStatement<E> |
selectFrom(EntityAlias<?> alias,
Class<E> toClass,
PropertyPath<?>... constructorArgs)
Creates
SelectStatement for a projection to a transfer-object having an according constructor. |
OrientDbSelectStatement<Object[]> |
selectFrom(EntityAlias<?> alias,
PropertyPath<?>... paths)
Creates
SelectStatement for a tuple of the given {paths (
{@code SELECT path1, path2, ... |
<E> OrientDbSelectStatement<E> |
selectFrom(EntityAlias<E> alias)
Creates a regular
SelectStatement (SELECT FROM alias.source [AS alias.name] ...). |
<E> OrientDbUpdateStatement<E> |
update(EntityAlias<E> alias)
Creates a regular
UpdateStatement (UPDATE alias.source [AS alias.name] ...). |
createLogger, doInitialize, getLoggerdoInitialized, getInitializationState, initializeprivate final OrientDbDialect dialect
private Function<com.orientechnologies.orient.core.record.impl.ODocument,OrientBean> mapper
public OrientDbStatementFactoryImpl()
public OrientDbStatementFactoryImpl(OrientDbDialect dialect)
dialect - the OrientDbDialect to use.public <E> OrientDbSelectStatement<E> selectFrom(EntityAlias<E> alias)
FeatureSelectSelectStatement (SELECT FROM alias.source [AS alias.name] ...).selectFrom in interface OrientDbStatementFactoryselectFrom in interface FeatureSelectE - the generic type of the entity to select.alias - the EntityAlias to select from.SelectStatement.public OrientDbSelectStatement<Object[]> selectFrom(EntityAlias<?> alias, PropertyPath<?>... paths)
FeatureSelectSelectStatement for a tuple of the given {paths (
SELECT path1, path2, ... FROM alias.source [AS alias.name] ...).selectFrom in interface OrientDbStatementFactoryselectFrom in interface FeatureSelectalias - the EntityAlias to select from.paths - the PropertyPaths to select.SelectStatement.public <E> OrientDbSelectStatement<E> selectFrom(EntityAlias<?> alias, Class<E> toClass, PropertyPath<?>... constructorArgs)
FeatureSelectSelectStatement for a projection to a transfer-object having an according constructor. In JPA this
is called a constructor query (
SELECT NEW package.Classname(arg1, arg2, ...) FROM alias.source [AS alias.name] ...). If not natively
supported this is implemented as a projection based on a tuple
selection.selectFrom in interface OrientDbStatementFactoryselectFrom in interface FeatureSelectE - the generic type of the transfer-object to select.alias - the EntityAlias to select from.toClass - the transfer-object to use. Will be instantiated via the Constructor
matching to the value types of the constructorArgs.constructorArgs - the selection paths (or aggregate expressions).SelectStatement.public <E> OrientDbUpdateStatement<E> update(EntityAlias<E> alias)
FeatureUpdateUpdateStatement (UPDATE alias.source [AS alias.name] ...).update in interface OrientDbStatementFactoryupdate in interface FeatureUpdateE - the generic type of the entity to update.alias - the EntityAlias to update.UpdateStatement.public <E> OrientDbDeleteStatement<E> deleteFrom(EntityAlias<E> alias)
FeatureDeleteDeleteStatement (DELETE FROM alias.source [AS alias.name] ...).deleteFrom in interface OrientDbStatementFactorydeleteFrom in interface FeatureDeleteE - the generic type of the entity to delete from.alias - the EntityAlias to delete from.DeleteStatement.public <E> OrientDbInsertStatement<E> insertInto(EntityAlias<E> alias)
FeatureInsertInsertStatement (DELETE FROM alias.source [AS alias.name] ...).insertInto in interface OrientDbStatementFactoryinsertInto in interface FeatureInsertE - the generic type of the entity to create (insert).alias - the EntityAlias to create (insert).InsertStatement.Copyright © 2001–2016 mmm-Team. All rights reserved.