public class MongoCRUDController extends Object implements com.redhat.lightblue.crud.CRUDController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_STR |
static String |
OP_DELETE |
static String |
OP_FIND |
static String |
OP_INSERT |
static String |
OP_SAVE |
static String |
OP_UPDATE |
static String |
PROP_DELETER
Name of the property for the operation context that keeps the last
deleter class instance used
|
static String |
PROP_FINDER
Name of the property for the operation context that keeps the last finder
class instance used
|
static String |
PROP_SAVER
Name of the property for the operation context that keeps the last saver
class instance used
|
static String |
PROP_UPDATER
Name of the property for the operation context that keeps the last
updater class instance used
|
| Constructor and Description |
|---|
MongoCRUDController(DBResolver dbResolver) |
| Modifier and Type | Method and Description |
|---|---|
com.redhat.lightblue.crud.CRUDDeleteResponse |
delete(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.redhat.lightblue.query.QueryExpression query) |
com.redhat.lightblue.crud.CRUDFindResponse |
find(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.redhat.lightblue.query.QueryExpression query,
com.redhat.lightblue.query.Projection projection,
com.redhat.lightblue.query.Sort sort,
Long from,
Long to)
Search implementation for mongo
|
com.redhat.lightblue.crud.CRUDInsertionResponse |
insert(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.redhat.lightblue.query.Projection projection)
Insertion operation for mongo
|
void |
newSchema(com.redhat.lightblue.metadata.Metadata md,
com.redhat.lightblue.metadata.EntityMetadata emd) |
com.redhat.lightblue.crud.CRUDSaveResponse |
save(com.redhat.lightblue.crud.CRUDOperationContext ctx,
boolean upsert,
com.redhat.lightblue.query.Projection projection) |
com.redhat.lightblue.crud.CRUDUpdateResponse |
update(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.redhat.lightblue.query.QueryExpression query,
com.redhat.lightblue.query.UpdateExpression update,
com.redhat.lightblue.query.Projection projection) |
void |
updateEntityInfo(com.redhat.lightblue.metadata.Metadata md,
com.redhat.lightblue.metadata.EntityInfo ei) |
public static final String ID_STR
public static final String PROP_SAVER
public static final String PROP_UPDATER
public static final String PROP_DELETER
public static final String PROP_FINDER
public static final String OP_INSERT
public static final String OP_SAVE
public static final String OP_FIND
public static final String OP_UPDATE
public static final String OP_DELETE
public MongoCRUDController(DBResolver dbResolver)
public com.redhat.lightblue.crud.CRUDInsertionResponse insert(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.redhat.lightblue.query.Projection projection)
insert in interface com.redhat.lightblue.crud.CRUDControllerpublic com.redhat.lightblue.crud.CRUDSaveResponse save(com.redhat.lightblue.crud.CRUDOperationContext ctx,
boolean upsert,
com.redhat.lightblue.query.Projection projection)
save in interface com.redhat.lightblue.crud.CRUDControllerpublic com.redhat.lightblue.crud.CRUDUpdateResponse update(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.redhat.lightblue.query.QueryExpression query,
com.redhat.lightblue.query.UpdateExpression update,
com.redhat.lightblue.query.Projection projection)
update in interface com.redhat.lightblue.crud.CRUDControllerpublic com.redhat.lightblue.crud.CRUDDeleteResponse delete(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.redhat.lightblue.query.QueryExpression query)
delete in interface com.redhat.lightblue.crud.CRUDControllerpublic com.redhat.lightblue.crud.CRUDFindResponse find(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.redhat.lightblue.query.QueryExpression query,
com.redhat.lightblue.query.Projection projection,
com.redhat.lightblue.query.Sort sort,
Long from,
Long to)
find in interface com.redhat.lightblue.crud.CRUDControllerpublic void updateEntityInfo(com.redhat.lightblue.metadata.Metadata md,
com.redhat.lightblue.metadata.EntityInfo ei)
updateEntityInfo in interface com.redhat.lightblue.crud.CRUDControllerpublic void newSchema(com.redhat.lightblue.metadata.Metadata md,
com.redhat.lightblue.metadata.EntityMetadata emd)
newSchema in interface com.redhat.lightblue.crud.CRUDControllerCopyright © 2014. All rights reserved.