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

Public Member Functions

 OrderItemWrapper (OrderItem entity)
 
boolean canDelete ()
 
- 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)
 
save ()
 
boolean delete ()
 
ID getId ()
 
List< String > getMessages ()
 
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

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 30 of file OrderItemWrapper.java.

Constructor & Destructor Documentation

◆ OrderItemWrapper()

org.turro.erp.purchase.OrderItemWrapper.OrderItemWrapper ( OrderItem  entity)

Definition at line 32 of file OrderItemWrapper.java.

32  {
33  super(entity);
34  }

Member Function Documentation

◆ canDelete()

boolean org.turro.erp.purchase.OrderItemWrapper.canDelete ( )

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

Definition at line 50 of file OrderItemWrapper.java.

50  {
51  if(!entity.hasReceipts() && entity.getOwner() == null) {
52  return true;
53  }
54  return super.canDelete();
55  }

◆ createDao()

Dao org.turro.erp.purchase.OrderItemWrapper.createDao ( )
protected

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

Definition at line 37 of file OrderItemWrapper.java.

37  {
38  return new ErpPU();
39  }

◆ shouldLog()

boolean org.turro.erp.purchase.OrderItemWrapper.shouldLog ( )
protected

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

Definition at line 58 of file OrderItemWrapper.java.

58  {
59  return false;
60  }

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