public class OutsideSqlContext extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
_autoPagingLogging |
protected CursorHandler |
_cursorHandler
The handler of cursor select.
|
protected DBMetaProvider |
_dbmetaProvider
The provider of DB meta.
|
protected boolean |
_formatSql |
protected boolean |
_internalDebug |
protected boolean |
_limitByCursorForcedly |
protected String |
_methodName
The command name of outsideSql e.g. outsideSql executor's method.
|
protected boolean |
_nonSpecifiedColumnAccessAllowed |
protected boolean |
_offsetByCursorForcedly |
protected OutsideSqlFilter |
_outsideSqlFilter |
protected String |
_outsideSqlPackage
The package of outside-SQL.
|
protected String |
_outsideSqlPath
The path of outside-SQL.
|
protected Object |
_parameterBean
The instance of specified parameter bean.
|
protected boolean |
_removeBlockComment |
protected boolean |
_removeLineComment |
protected Class<?> |
_resultType
The data type of outsideSql result, e.g.
|
protected StatementConfig |
_statementConfig
The configuration of statement.
|
protected String |
_tableDbName
The DB name of table for using behavior-SQL-path.
|
| コンストラクタと説明 |
|---|
OutsideSqlContext(DBMetaProvider dbmetaProvider,
String outsideSqlPackage) |
protected final DBMetaProvider _dbmetaProvider
protected final String _outsideSqlPackage
protected String _outsideSqlPath
protected Object _parameterBean
protected Class<?> _resultType
protected CursorHandler _cursorHandler
protected String _methodName
protected StatementConfig _statementConfig
protected String _tableDbName
protected boolean _offsetByCursorForcedly
protected boolean _limitByCursorForcedly
protected boolean _autoPagingLogging
protected OutsideSqlFilter _outsideSqlFilter
protected boolean _removeBlockComment
protected boolean _removeLineComment
protected boolean _formatSql
protected boolean _nonSpecifiedColumnAccessAllowed
protected boolean _internalDebug
public OutsideSqlContext(DBMetaProvider dbmetaProvider, String outsideSqlPackage)
dbmetaProvider - The provider of DB meta. (NotNull)outsideSqlPackage - The package of outside SQL. (NullAllowed: If null, use behavior package path)public static OutsideSqlContext getOutsideSqlContextOnThread()
public static void setOutsideSqlContextOnThread(OutsideSqlContext outsideSqlContext)
outsideSqlContext - The context of outside-SQL. (NotNull)public static boolean isExistOutsideSqlContextOnThread()
public static void clearOutsideSqlContextOnThread()
public static String generateSpecifiedOutsideSqlUniqueKey(String methodName, String path, Object pmb, OutsideSqlOption option, Class<?> resultType)
public static void throwOutsideSqlNotFoundException(String path)
public String readFilteredOutsideSql(String sqlFileEncoding, String dbmsSuffix)
sqlFileEncoding - The encoding of SQL file. (NotNull)dbmsSuffix - The suffix of DBMS. (NotNull)OutsideSqlNotFoundException - When the SQL is not found.protected String replaceOutsideSqlBindCharacterOnLineComment(String sql)
protected String readPlainOutsideSql(String sqlFileEncoding, String dbmsSuffix)
sqlFileEncoding - The encoding of SQL file. (NotNull)dbmsSuffix - The suffix of DBMS. (NotNull)OutsideSqlNotFoundException - When the SQL is not found.protected String doReadPlainOutsideSql(String sqlFileEncoding, String dbmsSuffix, String standardPath)
protected String doReadOutsideSqlWithAliasSuffix(String standardPath, String sqlFileEncoding, String dbmsSuffix)
protected String removeInitialUnicodeBomIfNeeds(String sqlFileEncoding, String sql)
public void setupBehaviorQueryPathIfNeeds()
protected String buildBehaviorSqlPackageName()
protected String mergeBehaviorSqlPackage(String behaviorType, String outsideSqlPackage)
protected boolean isBehaviorQueryPathEnabled()
public boolean isSpecifiedOutsideSql()
public boolean isProcedure()
protected boolean isExistResource(String path)
protected Reader createInputStreamReader(InputStream ins, String encoding) throws IOException
IOExceptionpublic String readText(Reader reader) throws IOException
IOExceptionprotected static String ln()
public String getOutsideSqlPath()
public void setOutsideSqlPath(String outsideSqlPath)
public Object getParameterBean()
public void setParameterBean(Object parameterBean)
public Class<?> getResultType()
public void setResultType(Class<?> resultType)
public CursorHandler getCursorHandler()
public void setCursorHandler(CursorHandler handler)
public String getMethodName()
public void setMethodName(String methodName)
public StatementConfig getStatementConfig()
public void setStatementConfig(StatementConfig statementConfig)
public String getTableDbName()
public void setTableDbName(String tableDbName)
public boolean isOffsetByCursorForcedly()
public void setOffsetByCursorForcedly(boolean offsetByCursorForcedly)
public boolean isLimitByCursorForcedly()
public void setLimitByCursorForcedly(boolean limitByCursorForcedly)
public boolean isAutoPagingLogging()
public void setAutoPagingLogging(boolean autoPagingLogging)
public OutsideSqlFilter getOutsideSqlFilter()
public void setOutsideSqlFilter(OutsideSqlFilter outsideSqlFilter)
public boolean isRemoveBlockComment()
public void setRemoveBlockComment(boolean removeBlockComment)
public boolean isRemoveLineComment()
public void setRemoveLineComment(boolean removeLineComment)
public boolean isFormatSql()
public void setFormatSql(boolean formatSql)
public boolean isNonSpecifiedColumnAccessAllowed()
public void setNonSpecifiedColumnAccessAllowed(boolean nonSpecifiedColumnAccessAllowed)
public boolean isInternalDebug()
public void setInternalDebug(boolean internalDebug)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.