BrightSide Workbench Full Report + Source Code
org.turro.financials.entity.DocumentDefinition Class Reference
Inheritance diagram for org.turro.financials.entity.DocumentDefinition:
Collaboration diagram for org.turro.financials.entity.DocumentDefinition:

Public Member Functions

boolean isAutoNumbered ()
 
void setAutoNumbered (boolean autoNumbered)
 
Set< RelatedColumngetDocumentColumns ()
 
void setDocumentColumns (Set< RelatedColumn > documentColumns)
 
long getId ()
 
void setId (long id)
 
String getName ()
 
void setName (String name)
 
Set< RelatedLineTypegetRelatedLineTypes ()
 
void setRelatedLineTypes (Set< RelatedLineType > relatedLineTypes)
 
Set< RelatedStoreDefinitiongetRelatedStoreDefinitions ()
 
void setRelatedStoreDefinitions (Set< RelatedStoreDefinition > relatedStoreDefinitions)
 
Object entityId ()
 
boolean isEmpty ()
 
boolean hasColumn (DocumentColumn documentColumn)
 
boolean hasDetail ()
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 
default Collection< Collection > collections ()
 

Static Public Member Functions

static DocumentDefinition getHandshakeReceiver ()
 

Detailed Description

Member Function Documentation

◆ entityId()

Object org.turro.financials.entity.DocumentDefinition.entityId ( )

◆ getDocumentColumns()

Set<RelatedColumn> org.turro.financials.entity.DocumentDefinition.getDocumentColumns ( )

Definition at line 71 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

71  {
72  Dao dao = new FinancialsPU();
73  if(id > 0 && dao.isNotLoaded(documentColumns)) {
74  documentColumns = dao.lazyLoader(DocumentDefinition.class, this, "documentColumns").documentColumns;
75  }
76  return documentColumns;
77  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getHandshakeReceiver()

static DocumentDefinition org.turro.financials.entity.DocumentDefinition.getHandshakeReceiver ( )
static

Definition at line 150 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

150  {
151  return new FinancialsPU().find(DocumentDefinition.class, 2L);
152  }

◆ getId()

long org.turro.financials.entity.DocumentDefinition.getId ( )

Definition at line 83 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

83  {
84  return id;
85  }
Here is the caller graph for this function:

◆ getName()

String org.turro.financials.entity.DocumentDefinition.getName ( )

Definition at line 91 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

91  {
92  return name;
93  }
Here is the caller graph for this function:

◆ getRelatedLineTypes()

Set<RelatedLineType> org.turro.financials.entity.DocumentDefinition.getRelatedLineTypes ( )

Definition at line 99 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

99  {
100  Dao dao = new FinancialsPU();
101  if(id > 0 && dao.isNotLoaded(relatedLineTypes)) {
102  relatedLineTypes = dao.lazyLoader(DocumentDefinition.class, this, "relatedLineTypes").relatedLineTypes;
103  }
104  return relatedLineTypes;
105  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRelatedStoreDefinitions()

Set<RelatedStoreDefinition> org.turro.financials.entity.DocumentDefinition.getRelatedStoreDefinitions ( )

Definition at line 111 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

111  {
112  Dao dao = new FinancialsPU();
113  if(id > 0 && dao.isNotLoaded(relatedStoreDefinitions)) {
114  relatedStoreDefinitions = dao.lazyLoader(DocumentDefinition.class, this, "relatedStoreDefinitions").relatedStoreDefinitions;
115  }
116  return relatedStoreDefinitions;
117  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasColumn()

boolean org.turro.financials.entity.DocumentDefinition.hasColumn ( DocumentColumn  documentColumn)

Definition at line 137 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

137  {
138  for(RelatedColumn dc : getDocumentColumns()) {
139  if(documentColumn.equals(dc.getDocumentColumn())) {
140  return true;
141  }
142  }
143  return false;
144  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasDetail()

boolean org.turro.financials.entity.DocumentDefinition.hasDetail ( )

Definition at line 146 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

146  {
147  return hasColumn(DocumentColumn.DCOL_QUANTITY);
148  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isAutoNumbered()

boolean org.turro.financials.entity.DocumentDefinition.isAutoNumbered ( )

Definition at line 63 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

63  {
64  return autoNumbered;
65  }
Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.financials.entity.DocumentDefinition.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 131 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

131  {
132  return id > 0;
133  }

◆ setAutoNumbered()

void org.turro.financials.entity.DocumentDefinition.setAutoNumbered ( boolean  autoNumbered)

Definition at line 67 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

67  {
68  this.autoNumbered = autoNumbered;
69  }

◆ setDocumentColumns()

void org.turro.financials.entity.DocumentDefinition.setDocumentColumns ( Set< RelatedColumn documentColumns)

Definition at line 79 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

79  {
80  this.documentColumns = documentColumns;
81  }

◆ setId()

void org.turro.financials.entity.DocumentDefinition.setId ( long  id)

Definition at line 87 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

87  {
88  this.id = id;
89  }

◆ setName()

void org.turro.financials.entity.DocumentDefinition.setName ( String  name)

Definition at line 95 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

95  {
96  this.name = name;
97  }

◆ setRelatedLineTypes()

void org.turro.financials.entity.DocumentDefinition.setRelatedLineTypes ( Set< RelatedLineType relatedLineTypes)

Definition at line 107 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

107  {
108  this.relatedLineTypes = relatedLineTypes;
109  }

◆ setRelatedStoreDefinitions()

void org.turro.financials.entity.DocumentDefinition.setRelatedStoreDefinitions ( Set< RelatedStoreDefinition relatedStoreDefinitions)

Definition at line 119 of file bsfinancials-core/src/main/java/org/turro/financials/entity/DocumentDefinition.java.

119  {
120  this.relatedStoreDefinitions = relatedStoreDefinitions;
121  }

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