@Named public class OrientDatabaseImpl extends AbstractLoggableComponent implements OrientDatabase
OrientPlatformTransactionManager| Modifier and Type | Field and Description |
|---|---|
private boolean |
autoConnect |
private OrientBeanMapper |
beanMapper |
private OrientDatasourceConfigProperties |
config |
private com.orientechnologies.orient.core.db.OPartitionedDatabasePool |
pool |
private com.orientechnologies.orient.core.db.OPartitionedDatabasePoolFactory |
poolFactory |
| Constructor and Description |
|---|
OrientDatabaseImpl()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.orientechnologies.orient.core.id.ORID |
convertId(Id<?> id) |
void |
delete(Id<?> id) |
protected void |
doInitialize()
This method performs the actual
initialization. |
com.orientechnologies.orient.core.record.impl.ODocument |
find(Id<?> id) |
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
getConnection() |
protected com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
getCurrentConnection() |
protected com.orientechnologies.orient.core.db.ODatabaseInternal<?> |
getOrCreateConnection() |
protected com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
newConnection() |
void |
setBeanMapper(OrientBeanMapper beanMapper) |
void |
setConfig(OrientDatasourceConfigProperties config) |
void |
setPoolFactory(com.orientechnologies.orient.core.db.OPartitionedDatabasePoolFactory poolFactory) |
createLogger, getLoggerdoInitialized, getInitializationState, initializeprivate OrientDatasourceConfigProperties config
private com.orientechnologies.orient.core.db.OPartitionedDatabasePoolFactory poolFactory
private com.orientechnologies.orient.core.db.OPartitionedDatabasePool pool
private boolean autoConnect
private OrientBeanMapper beanMapper
@Inject public void setConfig(OrientDatasourceConfigProperties config)
config - is the OrientDatasourceConfigProperties to Inject.@Inject public void setBeanMapper(OrientBeanMapper beanMapper)
beanMapper - is the OrientBeanMapper to Inject.public void setPoolFactory(com.orientechnologies.orient.core.db.OPartitionedDatabasePoolFactory poolFactory)
poolFactory - is the poolFactory to setprotected void doInitialize()
AbstractComponentinitialization. It is called when AbstractComponent.initialize() is
invoked for the first time. super.AbstractComponent.doInitialize().doInitialize in class AbstractLoggableComponentpublic com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx getConnection()
getConnection in interface OrientDatabaseprotected com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx getCurrentConnection()
protected com.orientechnologies.orient.core.db.ODatabaseInternal<?> getOrCreateConnection()
new transaction.protected com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx newConnection()
ODatabaseDocumentTx as transaction for OrientDB document API.protected com.orientechnologies.orient.core.id.ORID convertId(Id<?> id)
id - the ID as String.id parsed as ORID.public com.orientechnologies.orient.core.record.impl.ODocument find(Id<?> id)
find in interface OrientDatabaseid - the unique ID of the requested ODocument.ODocument with the given ID or null if no such
ODocument exists.public void delete(Id<?> id)
delete in interface OrientDatabaseid - the unique ID of the ODocument to delete.Copyright © 2001–2016 mmm-Team. All rights reserved.