-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#850 | Introduce code to join and create individual and enrolment dat…
…a across all types
- Loading branch information
Showing
5 changed files
with
175 additions
and
7 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
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
56 changes: 56 additions & 0 deletions
56
avni-server-data/src/main/java/org/avni/server/domain/JoinTableConfig.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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package org.avni.server.domain; | ||
|
||
import org.avni.server.domain.metabase.FieldDetails; | ||
import org.avni.server.domain.metabase.TableDetails; | ||
|
||
public class JoinTableConfig { | ||
TableDetails joinTargetTable; | ||
FieldDetails originField; | ||
FieldDetails destinationField; | ||
TableDetails alternateJoinSourceTable; //Optional: to be made use of when we want to join with table other than primaryTable | ||
|
||
public JoinTableConfig(TableDetails joinTargetTable, FieldDetails originField, FieldDetails destinationField) { | ||
this.joinTargetTable = joinTargetTable; | ||
this.originField = originField; | ||
this.destinationField = destinationField; | ||
} | ||
|
||
public JoinTableConfig(TableDetails joinTargetTable, FieldDetails originField, FieldDetails destinationField, TableDetails alternateJoinSourceTable) { | ||
this.joinTargetTable = joinTargetTable; | ||
this.originField = originField; | ||
this.destinationField = destinationField; | ||
this.alternateJoinSourceTable = alternateJoinSourceTable; | ||
} | ||
|
||
public TableDetails getJoinTargetTable() { | ||
return joinTargetTable; | ||
} | ||
|
||
public void setJoinTargetTable(TableDetails joinTargetTable) { | ||
this.joinTargetTable = joinTargetTable; | ||
} | ||
|
||
public FieldDetails getOriginField() { | ||
return originField; | ||
} | ||
|
||
public void setOriginField(FieldDetails originField) { | ||
this.originField = originField; | ||
} | ||
|
||
public FieldDetails getDestinationField() { | ||
return destinationField; | ||
} | ||
|
||
public void setDestinationField(FieldDetails destinationField) { | ||
this.destinationField = destinationField; | ||
} | ||
|
||
public TableDetails getAlternateJoinSourceTable() { | ||
return alternateJoinSourceTable; | ||
} | ||
|
||
public void setAlternateJoinSourceTable(TableDetails alternateJoinSourceTable) { | ||
this.alternateJoinSourceTable = alternateJoinSourceTable; | ||
} | ||
} |
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
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