java.lang.Object | ||
↳ | org.mybatis.generator.api.GeneratedFile | |
↳ | org.mybatis.generator.api.GeneratedJavaFile |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is required by the Eclipse Java merger.
| |||||||||||
Get the file name (without any path).
| |||||||||||
This method returns the entire contents of the generated file.
| |||||||||||
Get the target package for the file.
| |||||||||||
A Java file is mergeable if the getCompilationUnit() method returns a
valid compilation unit.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Default constructor
This method is required by the Eclipse Java merger. If you are not running in Eclipse, or some other system that implements the Java merge function, you may return null from this method.
Get the file name (without any path). Clients should use this method to determine how to save the results.
This method returns the entire contents of the generated file. Clients can simply save the value returned from this method as the file contents. Subclasses such as @see org.mybatis.generator.api.GeneratedJavaFile offer more fine grained access to file parts, but still implement this method in the event that the entire contents are desired.
Get the target package for the file. Clients should use this method to determine how to save the results.
A Java file is mergeable if the getCompilationUnit() method returns a valid compilation unit.