public abstract class ClientBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ClientMetadata |
clientMetadata |
protected Map<String,Object> |
externalProperties |
protected IndexManager |
indexManager
The index manager.
|
protected boolean |
isUpdate |
protected EntityManagerFactoryImpl.KunderaMetadata |
kunderaMetadata |
protected String |
persistenceUnit
persistence unit
|
protected boolean |
showQuery |
| Modifier | Constructor and Description |
|---|---|
protected |
ClientBase(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata,
Map<String,Object> properties,
String persistenceUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
delete(Object entity,
Object pKey) |
Object |
executeScript(String script)
Method to execute mongo jscripts.
|
ClientMetadata |
getClientMetadata() |
IndexManager |
getIndexManager() |
String |
getPersistenceUnit() |
protected List<RelationHolder> |
getRelationHolders(Node node) |
protected void |
indexNode(Node node,
EntityMetadata entityMetadata) |
protected abstract void |
onPersist(EntityMetadata entityMetadata,
Object entity,
Object id,
List<RelationHolder> rlHolders)
Method to be implemented by inherited classes.
|
void |
persist(Node node)
Method to handle
|
void |
remove(Object entity,
Object pKey) |
protected void |
unIndexNode(EntityMetadata metadata,
Object entity,
Object pKey) |
boolean |
useSecondryIndex() |
protected IndexManager indexManager
protected String persistenceUnit
protected boolean isUpdate
protected ClientMetadata clientMetadata
protected final EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata
protected final boolean showQuery
protected ClientBase(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata, Map<String,Object> properties, String persistenceUnit)
public final IndexManager getIndexManager()
public String getPersistenceUnit()
public void persist(Node node)
node - protected void unIndexNode(EntityMetadata metadata, Object entity, Object pKey)
protected List<RelationHolder> getRelationHolders(Node node)
node - protected void indexNode(Node node, EntityMetadata entityMetadata)
node - entityMetadata - protected abstract void onPersist(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> rlHolders)
entityMetadata - entity metadata.entity - entity object.id - entity id.rlHolders - relation holders. This field is only required in case Entity
is holding up any associations with other entities.public ClientMetadata getClientMetadata()
public boolean useSecondryIndex()
Copyright © 2015. All Rights Reserved.