protected String calculateJavaModelPackage() { JavaModelGeneratorConfiguration config = context.getJavaModelGeneratorConfiguration(); StringBuilder sb = new StringBuilder(); sb.append(config.getTargetPackage()); sb.append(fullyQualifiedTable.getSubPackage(isSubPackagesEnabled(config))); return sb.toString(); }
protected String calculateSqlMapPackage() { StringBuilder sb = new StringBuilder(); SqlMapGeneratorConfiguration config = context.getSqlMapGeneratorConfiguration(); // config can be null if the Java client does not require XML if (config != null) { sb.append(config.getTargetPackage()); sb.append(fullyQualifiedTable.getSubPackage(isSubPackagesEnabled(config))); } return sb.toString(); }
protected String calculateJavaClientInterfacePackage() { JavaClientGeneratorConfiguration config = context.getJavaClientGeneratorConfiguration(); if (config == null) { return null; } StringBuilder sb = new StringBuilder(); sb.append(config.getTargetPackage()); sb.append(fullyQualifiedTable.getSubPackage(isSubPackagesEnabled(config))); return sb.toString(); }