public abstract class AbstractSubQuery extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected GearedCipherManager |
_cipherManager |
protected ColumnRealNameProvider |
_localRealNameProvider |
protected DBMeta |
_subQueryDBMeta |
protected String |
_subQueryIdentity |
protected int |
_subQueryLevel |
protected SubQueryPath |
_subQueryPath |
protected SqlClause |
_subQuerySqlClause |
protected ColumnSqlNameProvider |
_subQuerySqlNameProvider |
| コンストラクタと説明 |
|---|
AbstractSubQuery(SubQueryPath subQueryPath,
ColumnRealNameProvider localRealNameProvider,
ColumnSqlNameProvider subQuerySqlNameProvider,
int subQueryLevel,
SqlClause subQuerySqlClause,
String subQueryIdentity,
DBMeta subQueryDBMeta,
GearedCipherManager cipherManager) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected String |
buildCorrelationFromWhereClause(String selectClause,
String localAliasName,
ColumnRealName[] correlatedColumnRealNames,
ColumnSqlName[] relatedColumnSqlNames,
String correlatedFixedCondition)
Build the clause of correlation sub-query from from-where clause.
|
protected String |
buildCorrelationFromWhereClause(String selectClause,
String localAliasName,
ColumnRealName correlatedColumnRealName,
ColumnSqlName relatedColumnSqlName,
String correlatedFixedCondition)
Build the clause of correlation sub-query from from-where clause.
|
protected String |
buildPlainFromWhereClause(String selectClause,
String localAliasName,
String correlatedFixedCondition)
Build the clause of plain sub-query from from-where clause.
|
protected String |
buildSubQueryMainAliasName() |
protected ConditionBeanExceptionThrower |
createCBExThrower() |
protected SubQueryClause |
createSubQueryClause(String selectClause,
String localAliasName) |
protected String |
decrypt(ColumnInfo columnInfo,
String valueExp) |
protected ColumnFunctionCipher |
findColumnFunctionCipher(ColumnInfo columnInfo) |
int |
getSubQueryLevel() |
protected String |
getSubQueryLocalAliasName() |
SubQueryPath |
getSubQueryPath() |
SqlClause |
getSubQuerySqlClause() |
protected String |
initCap(String str) |
protected String |
initUncap(String str) |
protected boolean |
isCompoundPrimaryKey(String correlatedColumnDbName,
String relatedColumnDbName) |
protected boolean |
isSinglePrimaryKey(String correlatedColumnDbName,
String relatedColumnDbName) |
protected String |
ln() |
protected String |
replace(String text,
String fromText,
String toText) |
protected String |
resolveSubQueryBeginMark(String subQueryIdentity) |
protected String |
resolveSubQueryEndMark(String subQueryIdentity) |
protected String |
resolveSubQueryLevelVariable(String subQueryClause) |
protected final SubQueryPath _subQueryPath
protected final ColumnRealNameProvider _localRealNameProvider
protected final ColumnSqlNameProvider _subQuerySqlNameProvider
protected final int _subQueryLevel
protected final SqlClause _subQuerySqlClause
protected final String _subQueryIdentity
protected final DBMeta _subQueryDBMeta
protected final GearedCipherManager _cipherManager
public AbstractSubQuery(SubQueryPath subQueryPath, ColumnRealNameProvider localRealNameProvider, ColumnSqlNameProvider subQuerySqlNameProvider, int subQueryLevel, SqlClause subQuerySqlClause, String subQueryIdentity, DBMeta subQueryDBMeta, GearedCipherManager cipherManager)
subQueryPath - The property path of sub-query. (NotNull)localRealNameProvider - The provider of column real name for local table. (NotNull)subQuerySqlNameProvider - The provider of column real name for sub-query. (NotNull)subQueryLevel - The sub-query level for sub-query.subQuerySqlClause - The SQL clause for sub-query. (NotNull)subQueryIdentity - The identity string for sub-query. (NotNull)subQueryDBMeta - The DB meta for sub-query. (NotNull)cipherManager - The manager of geared cipher. (NullAllowed)protected String getSubQueryLocalAliasName()
protected String buildSubQueryMainAliasName()
protected String buildPlainFromWhereClause(String selectClause, String localAliasName, String correlatedFixedCondition)
selectClause - The clause of select for sub-query. (NotNull)localAliasName - The alias name of sub-query local table. (NotNull)correlatedFixedCondition - The fixed condition as correlated condition. (NullAllowed)protected String buildCorrelationFromWhereClause(String selectClause, String localAliasName, ColumnRealName correlatedColumnRealName, ColumnSqlName relatedColumnSqlName, String correlatedFixedCondition)
selectClause - The clause of select for sub-query. (NotNull)localAliasName - The alias name of sub-query local table. (NotNull)correlatedColumnRealName - The real name of correlated column that is main-query table's column. (NotNull)relatedColumnSqlName - The real name of related column that is sub-query table's column. (NotNull)correlatedFixedCondition - The fixed condition as correlated condition. (NullAllowed)protected String buildCorrelationFromWhereClause(String selectClause, String localAliasName, ColumnRealName[] correlatedColumnRealNames, ColumnSqlName[] relatedColumnSqlNames, String correlatedFixedCondition)
selectClause - The clause of select for sub-query. (NotNull)localAliasName - The alias name of sub-query local table. (NotNull)correlatedColumnRealNames - The real names of correlated column that is main-query table's column. (NotNull)relatedColumnSqlNames - The real names of related column that is sub-query table's column. (NotNull)correlatedFixedCondition - The fixed condition as correlated condition. (NullAllowed)protected SubQueryClause createSubQueryClause(String selectClause, String localAliasName)
protected boolean isSinglePrimaryKey(String correlatedColumnDbName, String relatedColumnDbName)
protected boolean isCompoundPrimaryKey(String correlatedColumnDbName, String relatedColumnDbName)
protected ColumnFunctionCipher findColumnFunctionCipher(ColumnInfo columnInfo)
protected String decrypt(ColumnInfo columnInfo, String valueExp)
protected ConditionBeanExceptionThrower createCBExThrower()
protected final String ln()
public SubQueryPath getSubQueryPath()
public int getSubQueryLevel()
public SqlClause getSubQuerySqlClause()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.