1
|
/**
|
2
|
*
|
3
|
*/
|
4
|
package eu.etaxonomy.cdm.database.update;
|
5
|
|
6
|
import java.util.List;
|
7
|
|
8
|
/**
|
9
|
* @author a.mueller
|
10
|
*
|
11
|
*/
|
12
|
public class LanguageStringTableCreator extends MapTableCreator {
|
13
|
|
14
|
public static LanguageStringTableCreator NewLanguageStringInstance(List<ISchemaUpdaterStep> stepList, String stepName, String tableName, String attributeName, boolean includeAudTable){
|
15
|
LanguageStringTableCreator result = new LanguageStringTableCreator(stepList, stepName, tableName, tableName, attributeName, includeAudTable);
|
16
|
return result;
|
17
|
}
|
18
|
|
19
|
|
20
|
protected LanguageStringTableCreator(List<ISchemaUpdaterStep> stepList, String stepName, String firstTableName, String firstTableAlias, String attributeName, boolean includeAudTable) {
|
21
|
super(stepList, stepName, firstTableName, firstTableAlias, "LanguageString", attributeName, "DefinedTermBase", includeAudTable);
|
22
|
}
|
23
|
|
24
|
// @Override
|
25
|
// protected String primaryKey(boolean isAudit){
|
26
|
// String result = "";
|
27
|
// if (! isAudit){
|
28
|
// result = getFirstIdColumn() + ",";
|
29
|
// result += getMapKeyColumn() + ",";
|
30
|
// }else{
|
31
|
// result = "REV, " + primaryKey(false) + ",";
|
32
|
// result += getSecondIdColumn() + ",";
|
33
|
// }
|
34
|
// result = StringUtils.chomp(result.trim(), ",");
|
35
|
// return result;
|
36
|
// }
|
37
|
|
38
|
}
|