BrightSide Workbench Full Report + Source Code
org.turro.financials.product.logic.ProductWrapper Class Reference
Inheritance diagram for org.turro.financials.product.logic.ProductWrapper:
Collaboration diagram for org.turro.financials.product.logic.ProductWrapper:

Public Member Functions

 ProductWrapper (Product entity)
 
String getTabLabel ()
 
String getSelfLabel ()
 
String getTooltiptext ()
 
boolean canSave ()
 
- Public Member Functions inherited from org.turro.financials.model.product.ProductWrapper
boolean canDelete ()
 
Product save (List< ProductByContractor > pbc)
 
- 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 equals (Object obj)
 
int hashCode ()
 

Additional Inherited Members

- Static Public Member Functions inherited from org.turro.financials.model.product.ProductWrapper
static boolean hasAvailableContractorProducts (Contract contract)
 
static boolean hasAvailableProducts ()
 
- 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 Member Functions inherited from org.turro.financials.model.product.ProductWrapper
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)
 
- 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

◆ ProductWrapper()

org.turro.financials.product.logic.ProductWrapper.ProductWrapper ( Product  entity)

Member Function Documentation

◆ canSave()

boolean org.turro.financials.product.logic.ProductWrapper.canSave ( )

Reimplemented from org.turro.financials.model.product.ProductWrapper.

Definition at line 47 of file bsfinancials-www/src/main/java/org/turro/financials/product/logic/ProductWrapper.java.

47  {
48  boolean can = super.canSave();
49  if(!can) {
50  Messages.info(I_.get("Identifier")).add(entity.getProductCode() + " " + I_.get("Duplicated")).show();
51  }
52  return can;
53  }
Here is the call graph for this function:

◆ getSelfLabel()

String org.turro.financials.product.logic.ProductWrapper.getSelfLabel ( )

Definition at line 38 of file bsfinancials-www/src/main/java/org/turro/financials/product/logic/ProductWrapper.java.

38  {
39  return I_.get("Product");
40  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTabLabel()

String org.turro.financials.product.logic.ProductWrapper.getTabLabel ( )

Definition at line 34 of file bsfinancials-www/src/main/java/org/turro/financials/product/logic/ProductWrapper.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTooltiptext()

String org.turro.financials.product.logic.ProductWrapper.getTooltiptext ( )

Definition at line 42 of file bsfinancials-www/src/main/java/org/turro/financials/product/logic/ProductWrapper.java.

42  {
43  return entity.getProductString();
44  }
Here is the caller graph for this function:

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