BrightSide Workbench Full Report + Source Code
org.turro.erp.task.TaskWrapper Class Reference
Inheritance diagram for org.turro.erp.task.TaskWrapper:
Collaboration diagram for org.turro.erp.task.TaskWrapper:

Public Member Functions

 TaskWrapper (Task entity)
 
Task save ()
 
IIssue getIssue ()
 
- Public Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
 DaoEntity ()
 
 DaoEntity (Class< T > persistentClass)
 
 DaoEntity (T entity)
 
Dao getDao ()
 
getEntity ()
 
IElephantEntity getIee ()
 
find (ID id)
 
boolean delete ()
 
ID getId ()
 
List< String > getMessages ()
 
boolean canDelete ()
 
boolean canSave ()
 
boolean equals (Object obj)
 
int hashCode ()
 

Protected Member Functions

Dao createDao ()
 
boolean shouldLog ()
 
- Protected Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
void logEntity (SystemLogType logType, Object entity, String action, String data)
 
String dataEntity (Object entity)
 
void initOperation ()
 
void addMessage (String message)
 

Additional Inherited Members

- Static Public Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
static Object getEntityId (Object entity)
 
static boolean isNewId (Object id)
 
- Protected Attributes inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
entity
 
ID id
 
List< String > messages = new ArrayList<>()
 

Detailed Description

Constructor & Destructor Documentation

◆ TaskWrapper()

org.turro.erp.task.TaskWrapper.TaskWrapper ( Task  entity)

Member Function Documentation

◆ createDao()

Dao org.turro.erp.task.TaskWrapper.createDao ( )
protected

◆ getIssue()

IIssue org.turro.erp.task.TaskWrapper.getIssue ( )

Definition at line 49 of file bserp-core/src/main/java/org/turro/erp/task/TaskWrapper.java.

49  {
50  if(entity.getId() > 0) {
51  IDossier dossier = new WorkOrderWrapper(entity.getOrderReference().getWorkOrder()).getDossier();
52  IIssue issue = dossier.addIssue();
53  issue.setDescription(entity.getFullDescription());
54  issue.setPath(ErpPU.getObjectPath(entity));
55  return issue;
56  }
57  return null;
58  }
Here is the call graph for this function:

◆ save()

Task org.turro.erp.task.TaskWrapper.save ( )

Reimplemented from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >.

Definition at line 39 of file bserp-core/src/main/java/org/turro/erp/task/TaskWrapper.java.

39  {
40  entity.prepareForSaving();
41  return super.save();
42  }
Here is the caller graph for this function:

◆ shouldLog()

boolean org.turro.erp.task.TaskWrapper.shouldLog ( )
protected

The documentation for this class was generated from the following file: