public class BusinessObjectProvider
extends java.lang.Object
BusinessObjectProvider
provides methods for creating, updating and deleting new or existing BusinessObjects
This Class is usually used in Rule-classes and allows API access only
Constructor and Description |
---|
BusinessObjectProvider() |
Modifier and Type | Method and Description |
---|---|
static <T extends BusinessObject> |
delete(T type)
Deprecated.
Use
Modifiable.delete()
or Use Modifiable.delete(Object) |
static <T extends BusinessObject> |
deleteAll(java.util.Collection<T> type)
This method deletes all BusinessObjects of then given collection from the database.
|
static <PK,T extends LogicalDeletable> |
deleteLogical(T type)
This method deletes all BusinessObjects logical without removing data from the database.
|
static <PK,T extends LogicalDeletable> |
deleteLogicalAll(java.util.Collection<T> type)
This method deletes all BusinessObjects logical without removing data from the database.
|
static java.util.Set<java.lang.String> |
getAllModifiableBusinessObjectClassNames()
This method returns a set containing the names of all modifiable business object classes.
|
static <PK,T extends BusinessObject<PK>> |
insert(T type)
Deprecated.
|
static <PK,T extends BusinessObject<PK>> |
insertAll(java.util.Collection<T> type)
This method receives a collection of new BusinessObjects and stores them in the database.
|
static NuclosFile |
newFile(java.lang.String name,
byte[] content)
This method creates a new
NuclosFile using the given content |
static NuclosImage |
newImage(java.lang.String name,
byte[] content)
This method creates a new
NuclosImage using the given content;
a thumbnail will be created automatically |
void |
setBusinessObjectService(BusinessObjectService service) |
static <T extends BusinessObject> |
update(T type,
SaveFlag... saveFlags)
Deprecated.
|
static <T extends BusinessObject> |
updateAll(java.util.Collection<T> type)
This method updates all BusinessObjects in the given collection.
|
public void setBusinessObjectService(BusinessObjectService service)
@Deprecated public static <PK,T extends BusinessObject<PK>> PK insert(T type) throws BusinessException
Modifiable.save(SaveFlag...)
type
- BusinessException
public static <PK,T extends BusinessObject<PK>> java.util.Collection<PK> insertAll(java.util.Collection<T> type) throws BusinessException
type
- BusinessException
@Deprecated public static <T extends BusinessObject> void update(T type, SaveFlag... saveFlags) throws BusinessException
Modifiable.save(SaveFlag...)
type
- BusinessException
public static <T extends BusinessObject> void updateAll(java.util.Collection<T> type) throws BusinessException
type
- BusinessException
@Deprecated public static <T extends BusinessObject> void delete(T type) throws BusinessException
Modifiable.delete()
or Use Modifiable.delete(Object)
type
- BusinessException
public static <T extends BusinessObject> void deleteAll(java.util.Collection<T> type) throws BusinessException
type
- BusinessException
public static <PK,T extends LogicalDeletable> void deleteLogical(T type) throws BusinessException
type
- BusinessException
public static <PK,T extends LogicalDeletable> void deleteLogicalAll(java.util.Collection<T> type) throws BusinessException
type
- BusinessException
public static NuclosFile newFile(java.lang.String name, byte[] content) throws BusinessException
NuclosFile
using the given contentname
- content
- NuclosFile
BusinessException
public static NuclosImage newImage(java.lang.String name, byte[] content) throws BusinessException
NuclosImage
using the given content;
a thumbnail will be created automaticallyname
- content
- NuclosImage
BusinessException
public static java.util.Set<java.lang.String> getAllModifiableBusinessObjectClassNames()
Copyright © 2024. All rights reserved.