|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mybatis.generator.api.GeneratedFile
org.mybatis.generator.api.GeneratedJavaFile
public class GeneratedJavaFile
| Field Summary |
|---|
| Fields inherited from class org.mybatis.generator.api.GeneratedFile |
|---|
targetProject |
| Constructor Summary | |
|---|---|
GeneratedJavaFile(CompilationUnit compilationUnit,
String targetProject,
JavaFormatter javaFormatter)
|
|
GeneratedJavaFile(CompilationUnit compilationUnit,
String targetProject,
String fileEncoding,
JavaFormatter javaFormatter)
Default constructor |
|
| Method Summary | |
|---|---|
CompilationUnit |
getCompilationUnit()
This method is required by the Eclipse Java merger. |
String |
getFileEncoding()
|
String |
getFileName()
Get the file name (without any path). |
String |
getFormattedContent()
This method returns the entire contents of the generated file. |
String |
getTargetPackage()
Get the target package for the file. |
boolean |
isMergeable()
A Java file is mergeable if the getCompilationUnit() method returns a valid compilation unit. |
| Methods inherited from class org.mybatis.generator.api.GeneratedFile |
|---|
getTargetProject, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GeneratedJavaFile(CompilationUnit compilationUnit,
String targetProject,
String fileEncoding,
JavaFormatter javaFormatter)
public GeneratedJavaFile(CompilationUnit compilationUnit,
String targetProject,
JavaFormatter javaFormatter)
| Method Detail |
|---|
public String getFormattedContent()
GeneratedFile
getFormattedContent in class GeneratedFilepublic String getFileName()
GeneratedFile
getFileName in class GeneratedFilepublic String getTargetPackage()
GeneratedFile
getTargetPackage in class GeneratedFilepublic CompilationUnit getCompilationUnit()
public boolean isMergeable()
isMergeable in class GeneratedFilepublic String getFileEncoding()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||