public class SqlFile
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SqlFile.IncludeExistPolicy
The Enum IncludeExistPolicy.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
END_SQL_SIGN
The Constant END_SQL_SIGN.
|
static java.lang.String |
INCLUDE_SYMBOL
The Constant INCLUDE_SYMBOL.
|
| 构造器和说明 |
|---|
SqlFile(java.lang.String file)
* @param file.
|
SqlFile(java.lang.String file,
java.nio.charset.Charset charset)
Instantiates a new sql file.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addInclude(java.lang.String source,
java.lang.String include)
Adds the include.
|
java.nio.charset.Charset |
getCharset()
get charset value.
|
java.lang.String |
getFile()
get file value.
|
SqlFile.IncludeExistPolicy |
getIncludeExistPolicy()
Gets the include exist policy.
|
java.util.Map<java.lang.String,java.lang.String> |
getIncludeFiles()
get includeFiles value.
|
java.util.List<java.lang.String> |
getSqlList()
get sqlList value.
|
static SqlFile |
read(java.io.File file)
Read.
|
static SqlFile |
read(java.io.File file,
java.nio.charset.Charset charset)
Read.
|
static SqlFile |
read(java.io.File file,
java.nio.charset.Charset charset,
java.util.Map<java.lang.String,java.lang.Object> params)
Read.
|
static SqlFile |
read(java.io.File file,
java.nio.charset.Charset charset,
SqlFile.IncludeExistPolicy includeExistPolicy)
Read.
|
static SqlFile |
read(java.io.File file,
java.nio.charset.Charset charset,
SqlFile.IncludeExistPolicy includeExistPolicy,
java.util.Map<java.lang.String,java.lang.Object> params)
Read.
|
static SqlFile |
read(java.io.File file,
java.util.Map<java.lang.String,java.lang.Object> params)
Read.
|
java.lang.String |
toString() |
void |
write(java.io.File file)
Write.
|
void |
write(java.io.File file,
java.nio.charset.Charset charset)
Write.
|
void |
write(java.io.OutputStream os)
Write.
|
void |
write(java.io.OutputStream os,
java.nio.charset.Charset charset)
Write.
|
public static final java.lang.String INCLUDE_SYMBOL
public static final java.lang.String END_SQL_SIGN
public SqlFile(java.lang.String file)
file - the filepublic SqlFile(java.lang.String file,
java.nio.charset.Charset charset)
file - the filecharset - the charsetpublic java.nio.charset.Charset getCharset()
public SqlFile.IncludeExistPolicy getIncludeExistPolicy()
public java.util.Map<java.lang.String,java.lang.String> getIncludeFiles()
public java.lang.String getFile()
public java.util.List<java.lang.String> getSqlList()
public java.lang.String toString()
toString 在类中 java.lang.Objectpublic boolean addInclude(java.lang.String source,
java.lang.String include)
source - the sourceinclude - the includepublic void write(java.io.OutputStream os)
throws java.io.IOException
os - the output streamjava.io.IOException - Signals that an I/O exception has occurred.public void write(java.io.OutputStream os,
java.nio.charset.Charset charset)
throws java.io.IOException
os - the oscharset - the charsetjava.io.IOException - Signals that an I/O exception has occurred.public void write(java.io.File file)
throws java.io.IOException
file - the filejava.io.IOException - Signals that an I/O exception has occurred.public void write(java.io.File file,
java.nio.charset.Charset charset)
throws java.io.IOException
file - the filecharset - the charsetjava.io.IOException - Signals that an I/O exception has occurred.public static SqlFile read(java.io.File file) throws java.io.IOException
file - the filejava.io.IOException - Signals that an I/O exception has occurred.public static SqlFile read(java.io.File file, java.nio.charset.Charset charset) throws java.io.IOException
file - the filecharset - the charsetjava.io.IOException - Signals that an I/O exception has occurred.public static SqlFile read(java.io.File file, java.nio.charset.Charset charset, SqlFile.IncludeExistPolicy includeExistPolicy) throws java.io.IOException
file - the filecharset - the charsetincludeExistPolicy - the include exist policyjava.io.IOException - Signals that an I/O exception has occurred.public static SqlFile read(java.io.File file, java.util.Map<java.lang.String,java.lang.Object> params) throws java.io.IOException
file - the fileparams - the paramsjava.io.IOException - Signals that an I/O exception has occurred.public static SqlFile read(java.io.File file, java.nio.charset.Charset charset, java.util.Map<java.lang.String,java.lang.Object> params) throws java.io.IOException
file - the filecharset - the charsetparams - the paramsjava.io.IOException - Signals that an I/O exception has occurred.public static SqlFile read(java.io.File file, java.nio.charset.Charset charset, SqlFile.IncludeExistPolicy includeExistPolicy, java.util.Map<java.lang.String,java.lang.Object> params) throws java.io.IOException
file - the filecharset - the charsetincludeExistPolicy - the include exist policyparams - the paramsjava.io.IOException - Signals that an I/O exception has occurred.