-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
...a/b_application_business_rules/use_cases/project_selection_gateways/IEntityIDsToList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
package b_application_business_rules.use_cases.project_selection_gateways; | ||
import a_enterprise_business_rules.entities.*; | ||
import b_application_business_rules.entity_models.*; | ||
|
||
public interface IEntityIDsToList { | ||
/** | ||
* This returns a concatenated string of column IDs of the given model. | ||
*/ | ||
String EntityIDsToList(ProjectModel projectModel); | ||
/** | ||
* This returns a concatenated string of Task IDs of the given column model. | ||
*/ | ||
String EntityIDsToList(ColumnModel columnModel); | ||
} |
4 changes: 3 additions & 1 deletion
4
..._frameworks_and_drivers/database_management/DBControllers/EntityIDstoModelController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...n/java/d_frameworks_and_drivers/database_management/DatabaseFiles/UniqueIDs/UniqueIDs.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
"UUID","State" | ||
"xkfnfk","true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/d_frameworks_and_drivers/database_management/csv_database_documentation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# General | ||
|
||
## try-with-resources | ||
When using try-with-resources e.g. | ||
(FileWriter outputfile = new FileWriter("DatabaseFiles/Columns/Columns.csv"); | ||
CSVPrinter csvPrinter = new CSVPrinter(outputfile, CSVFormat.DEFAULT.withHeader())) | ||
- make sure objects are AutoCloseable; they will close automatically after try block ends | ||
|
||
# org.apache.commons.csv.CSVFormat; | ||
|
||
## DEFAULT format: | ||
only non-empty rows/records are processed. | ||
Windows record/row separator used ("\r\n") -> potential errors in Unix-based systems ? | ||
processes duplicate csv headers without errors -> avoid duplicates in headers | ||
"" quotes enclose field values (in a single cell) | ||
, delimeter separates fields | ||
|
||
## withHeader() | ||
- use only if csv files have first row with headers already | ||
|
||
# org.apache.commons.csv.CSVParser; | ||
|
||
## | ||
|
||
# org.apache.commons.csv.CSVRecord; | ||
|
||
## |
1 change: 0 additions & 1 deletion
1
...t/java/d_frameworks_and_drivers/database_management/DatabaseFiles/UniqueIDs/UniqueIDs.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
"UUID","State" | ||
"xkfnfk","true" |