com.liferay.portal.tools.servicebuilder
Class ServiceBuilder
java.lang.Object
com.liferay.portal.tools.servicebuilder.ServiceBuilder
public class ServiceBuilder
- extends Object
Constructor Summary |
ServiceBuilder(String fileName,
String hbmFileName,
String ormFileName,
String modelHintsFileName,
String springFileName,
String springBaseFileName,
String springClusterFileName,
String springDynamicDataSourceFileName,
String springHibernateFileName,
String springInfrastructureFileName,
String springShardDataSourceFileName,
String apiDir,
String implDir,
String jsonFileName,
String remotingFileName,
String sqlDir,
String sqlFileName,
String sqlIndexesFileName,
String sqlIndexesPropertiesFileName,
String sqlSequencesFileName,
boolean autoNamespaceTables,
String beanLocatorUtil,
String propsUtil,
String pluginName,
String testDir)
|
ServiceBuilder(String fileName,
String hbmFileName,
String ormFileName,
String modelHintsFileName,
String springFileName,
String springBaseFileName,
String springClusterFileName,
String springDynamicDataSourceFileName,
String springHibernateFileName,
String springInfrastructureFileName,
String springShardDataSourceFileName,
String apiDir,
String implDir,
String jsonFileName,
String remotingFileName,
String sqlDir,
String sqlFileName,
String sqlIndexesFileName,
String sqlIndexesPropertiesFileName,
String sqlSequencesFileName,
boolean autoNamespaceTables,
String beanLocatorUtil,
String propsUtil,
String pluginName,
String testDir,
boolean build)
|
Method Summary |
String |
getClassName(com.thoughtworks.qdox.model.Type type)
|
String |
getCreateMappingTableSQL(EntityMapping entityMapping)
|
String |
getCreateTableSQL(Entity entity)
|
String |
getDimensions(int dims)
|
String |
getDimensions(String dims)
|
Entity |
getEntity(String name)
|
Entity |
getEntityByGenericsName(String genericsName)
|
Entity |
getEntityByParameterTypeValue(String parameterTypeValue)
|
EntityMapping |
getEntityMapping(String mappingTable)
|
String |
getGeneratorClass(String idType)
|
String |
getJavadocComment(com.thoughtworks.qdox.model.JavaClass javaClass)
|
String |
getJavadocComment(com.thoughtworks.qdox.model.JavaMethod javaMethod)
|
String |
getListActualTypeArguments(com.thoughtworks.qdox.model.Type type)
|
String |
getLiteralClass(com.thoughtworks.qdox.model.Type type)
|
List<EntityColumn> |
getMappingEntities(String mappingTable)
|
String |
getNoSuchEntityException(Entity entity)
|
String |
getParameterType(com.thoughtworks.qdox.model.JavaParameter parameter)
|
String |
getPrimitiveObj(String type)
|
String |
getPrimitiveObjValue(String colType)
|
String |
getReturnType(com.thoughtworks.qdox.model.JavaMethod method)
|
String |
getServiceBaseThrowsExceptions(List<com.thoughtworks.qdox.model.JavaMethod> methods,
String methodName,
List<String> args,
List<String> exceptions)
|
String |
getSqlType(String type)
|
String |
getSqlType(String model,
String field,
String type)
|
String |
getTypeGenericsName(com.thoughtworks.qdox.model.Type type)
|
boolean |
hasEntityByGenericsName(String genericsName)
|
boolean |
hasEntityByParameterTypeValue(String parameterTypeValue)
|
boolean |
isBasePersistenceMethod(com.thoughtworks.qdox.model.JavaMethod method)
|
boolean |
isCustomMethod(com.thoughtworks.qdox.model.JavaMethod method)
|
boolean |
isDuplicateMethod(com.thoughtworks.qdox.model.JavaMethod method,
Map<String,Object> tempMap)
|
boolean |
isReadOnlyMethod(com.thoughtworks.qdox.model.JavaMethod method,
List<String> txRequiredList,
String[] prefixes)
|
boolean |
isServiceReadOnlyMethod(com.thoughtworks.qdox.model.JavaMethod method,
List<String> txRequiredList)
|
boolean |
isSoapMethod(com.thoughtworks.qdox.model.JavaMethod method)
|
boolean |
isTxRequiredMethod(com.thoughtworks.qdox.model.JavaMethod method,
List<String> txRequiredList)
|
static void |
main(String[] args)
|
static void |
writeFile(File file,
String content)
|
static void |
writeFile(File file,
String content,
String author)
|
static void |
writeFile(File file,
String content,
String author,
Map<String,Object> jalopySettings)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AUTHOR
public static final String AUTHOR
- See Also:
- Constant Field Values
ServiceBuilder
public ServiceBuilder(String fileName,
String hbmFileName,
String ormFileName,
String modelHintsFileName,
String springFileName,
String springBaseFileName,
String springClusterFileName,
String springDynamicDataSourceFileName,
String springHibernateFileName,
String springInfrastructureFileName,
String springShardDataSourceFileName,
String apiDir,
String implDir,
String jsonFileName,
String remotingFileName,
String sqlDir,
String sqlFileName,
String sqlIndexesFileName,
String sqlIndexesPropertiesFileName,
String sqlSequencesFileName,
boolean autoNamespaceTables,
String beanLocatorUtil,
String propsUtil,
String pluginName,
String testDir)
ServiceBuilder
public ServiceBuilder(String fileName,
String hbmFileName,
String ormFileName,
String modelHintsFileName,
String springFileName,
String springBaseFileName,
String springClusterFileName,
String springDynamicDataSourceFileName,
String springHibernateFileName,
String springInfrastructureFileName,
String springShardDataSourceFileName,
String apiDir,
String implDir,
String jsonFileName,
String remotingFileName,
String sqlDir,
String sqlFileName,
String sqlIndexesFileName,
String sqlIndexesPropertiesFileName,
String sqlSequencesFileName,
boolean autoNamespaceTables,
String beanLocatorUtil,
String propsUtil,
String pluginName,
String testDir,
boolean build)
main
public static void main(String[] args)
writeFile
public static void writeFile(File file,
String content)
throws IOException
- Throws:
IOException
writeFile
public static void writeFile(File file,
String content,
String author)
throws IOException
- Throws:
IOException
writeFile
public static void writeFile(File file,
String content,
String author,
Map<String,Object> jalopySettings)
throws IOException
- Throws:
IOException
getClassName
public String getClassName(com.thoughtworks.qdox.model.Type type)
getCreateMappingTableSQL
public String getCreateMappingTableSQL(EntityMapping entityMapping)
throws IOException
- Throws:
IOException
getCreateTableSQL
public String getCreateTableSQL(Entity entity)
getDimensions
public String getDimensions(String dims)
getDimensions
public String getDimensions(int dims)
getEntity
public Entity getEntity(String name)
throws IOException
- Throws:
IOException
getEntityByGenericsName
public Entity getEntityByGenericsName(String genericsName)
getEntityByParameterTypeValue
public Entity getEntityByParameterTypeValue(String parameterTypeValue)
getEntityMapping
public EntityMapping getEntityMapping(String mappingTable)
getGeneratorClass
public String getGeneratorClass(String idType)
getJavadocComment
public String getJavadocComment(com.thoughtworks.qdox.model.JavaClass javaClass)
getJavadocComment
public String getJavadocComment(com.thoughtworks.qdox.model.JavaMethod javaMethod)
getListActualTypeArguments
public String getListActualTypeArguments(com.thoughtworks.qdox.model.Type type)
getLiteralClass
public String getLiteralClass(com.thoughtworks.qdox.model.Type type)
getMappingEntities
public List<EntityColumn> getMappingEntities(String mappingTable)
throws IOException
- Throws:
IOException
getNoSuchEntityException
public String getNoSuchEntityException(Entity entity)
getParameterType
public String getParameterType(com.thoughtworks.qdox.model.JavaParameter parameter)
getPrimitiveObj
public String getPrimitiveObj(String type)
getPrimitiveObjValue
public String getPrimitiveObjValue(String colType)
getReturnType
public String getReturnType(com.thoughtworks.qdox.model.JavaMethod method)
getTypeGenericsName
public String getTypeGenericsName(com.thoughtworks.qdox.model.Type type)
getServiceBaseThrowsExceptions
public String getServiceBaseThrowsExceptions(List<com.thoughtworks.qdox.model.JavaMethod> methods,
String methodName,
List<String> args,
List<String> exceptions)
getSqlType
public String getSqlType(String type)
getSqlType
public String getSqlType(String model,
String field,
String type)
hasEntityByGenericsName
public boolean hasEntityByGenericsName(String genericsName)
hasEntityByParameterTypeValue
public boolean hasEntityByParameterTypeValue(String parameterTypeValue)
isBasePersistenceMethod
public boolean isBasePersistenceMethod(com.thoughtworks.qdox.model.JavaMethod method)
isCustomMethod
public boolean isCustomMethod(com.thoughtworks.qdox.model.JavaMethod method)
isDuplicateMethod
public boolean isDuplicateMethod(com.thoughtworks.qdox.model.JavaMethod method,
Map<String,Object> tempMap)
isServiceReadOnlyMethod
public boolean isServiceReadOnlyMethod(com.thoughtworks.qdox.model.JavaMethod method,
List<String> txRequiredList)
isReadOnlyMethod
public boolean isReadOnlyMethod(com.thoughtworks.qdox.model.JavaMethod method,
List<String> txRequiredList,
String[] prefixes)
isSoapMethod
public boolean isSoapMethod(com.thoughtworks.qdox.model.JavaMethod method)
isTxRequiredMethod
public boolean isTxRequiredMethod(com.thoughtworks.qdox.model.JavaMethod method,
List<String> txRequiredList)