public class SimpleRelationImpl extends java.lang.Object implements Relation
修飾子とタイプ | フィールドと説明 |
---|---|
protected java.util.Map |
columnMap |
protected java.util.Set |
deletableTableSet |
protected boolean |
exportedFlag |
protected java.util.Set |
insertableColumnSet |
protected java.util.Set |
insertableTableSet |
protected boolean |
isMismatch |
protected Column[] |
primaryColumns |
protected Table |
primaryTable |
protected java.util.Set |
selectableColumnSet |
protected java.util.Map |
tableMap |
protected java.util.Set |
tableSet |
protected java.util.Set |
tableSetAll |
protected java.util.Set |
updatableColumnSet |
コンストラクタと説明 |
---|
SimpleRelationImpl(Relation relation) |
SimpleRelationImpl(Table primaryTable,
java.util.Set tableSet,
boolean exportedFlag) |
修飾子とタイプ | メソッドと説明 |
---|---|
protected ColumnValue[] |
createColumnValueArray(java.util.Set columnValueSet) |
protected java.util.Set |
createDeletableTableSet() |
DeleteQuery |
createDeleteQuery(SqlCondition condition)
DeleteQueryを取得する。
|
protected java.util.Set |
createInsertableTableSet() |
InsertQuery |
createInsertQuery(ColumnValue[] columnValues)
InsertQueryを取得する。
|
InsertQuery |
createInsertQuery(java.util.Set columnValueSet)
InsertQueryを取得する。
|
PrimaryDeleteQuery |
createPrimaryDeleteQuery()
PrimaryDeleteQueryを取得する(Optional Operation)。
|
PrimaryInsertQuery |
createPrimaryInsertQuery(ColumnValue[] columnValues)
PrimaryInsertQueryを取得する(Optional operation)。
|
PrimaryInsertQuery |
createPrimaryInsertQuery(java.util.Set columnValueSet)
PrimaryInsertQueryを取得する(Optional operation)。
|
PrimarySelectQuery |
createPrimarySelectQuery(SelectList selectList)
PrimarySelectQueryを取得する(Optional operation)。
|
PrimaryUpdateQuery |
createPrimaryUpdateQuery(ColumnValue[] columnValues)
PrimaryUpdateQueryを取得する(Optional operation)。
|
PrimaryUpdateQuery |
createPrimaryUpdateQuery(java.util.Set columnValueSet)
PrimaryUpdateQueryを取得する(Optional operation)。
|
SelectQuery |
createSelectQuery(SelectList selectList,
SqlCondition condition)
SelectQueryを取得する。
|
UpdateQuery |
createUpdateQuery(ColumnValue[] columnValues,
SqlCondition condition)
UpdateQueryを取得する。
|
UpdateQuery |
createUpdateQuery(java.util.Set columnValueSet,
SqlCondition condition)
UpdateQueryを取得する。
|
java.util.Set |
deletableTableSet()
Delete可能なテーブルの一覧を返す。
|
Column |
getColumn(Key fullColumnNameKey)
カラムメタ情報を取得する。
|
Column |
getColumn(java.lang.String fullColumnName)
カラムメタ情報を取得する。
|
Column |
getColumnByFullName(java.lang.String fullName)
テーブル名を含むカラム名に対応するカラムメタ情報を返す。
|
Column |
getColumnByFullNameKey(Key fullNameKey)
Key(テーブル名を含むカラム名)に対応するカラムメタ情報を返す。
|
java.util.Map |
getFullColumnMap()
カラム名キー・カラムのマップを返す。
|
protected java.util.Map |
getFullColumnMap(Table primaryTable,
java.util.Set tableSet) |
protected java.util.Set |
getInsertableColumnSet(java.util.Set columnSet,
Table t) |
Column[] |
getPrimaryColumns()
Primaryカラム情報を返す。
|
Table |
getPrimaryTable()
プライマリーテーブルを取得する。
|
Table |
getTable(Key tableNameKey,
Key aliasNameKey)
Tableを取得する。
|
Table |
getTable(java.lang.String tableName,
java.lang.String aliasName)
Tableを取得する。
|
protected java.util.Set |
getUpdatableColumnSet(java.util.Set columnSet,
Table t) |
boolean |
hasMismatchKey()
RelationにPrimaryKeyとForeienKeyが合わないものが存在するか否か?
|
java.util.Set |
insertableColumnSet()
挿入可能なカラムの一覧を返す。
|
java.util.Set |
insertableTableSet()
Insert可能なテーブルの一覧を返す。
|
boolean |
isDeletable()
削除可能か否かを返す。
|
boolean |
isExported()
Exported/ImportedいずれによるRelationかを返す。
|
boolean |
isRelation()
Relationであるか否かを返す。
|
java.util.Set |
selectableColumnSet()
Select可能なカラムの一覧を返す。
|
void |
setFullColumnMap(java.util.Map fullColumnMap)
Internal use only.
|
protected void |
setMismatchKey(boolean isMismatch) |
void |
setPrimaryColumns(Column[] primaryColumns)
Internal use only.
|
protected void |
setupColumnSet() |
java.util.Set |
tableSet()
プライマリテーブルを除くTable一覧を取得する。
|
java.util.Set |
tableSetAll()
プライマリテーブルを含むTable一覧を取得する。
|
java.util.Set |
updatableColumnSet()
更新可能なカラムの一覧を返す。
|
protected Table primaryTable
protected java.util.Set tableSet
protected java.util.Set tableSetAll
protected java.util.Set selectableColumnSet
protected java.util.Set updatableColumnSet
protected java.util.Set insertableColumnSet
protected java.util.Set insertableTableSet
protected java.util.Set deletableTableSet
protected java.util.Map columnMap
protected java.util.Map tableMap
protected Column[] primaryColumns
protected boolean isMismatch
protected boolean exportedFlag
public SimpleRelationImpl(Table primaryTable, java.util.Set tableSet, boolean exportedFlag)
public SimpleRelationImpl(Relation relation)
public Table getPrimaryTable()
getPrimaryTable
インタフェース内 Queryable
getPrimaryTable
インタフェース内 Relation
public Table getTable(java.lang.String tableName, java.lang.String aliasName)
public Column[] getPrimaryColumns()
getPrimaryColumns
インタフェース内 Queryable
public java.util.Set tableSetAll()
tableSetAll
インタフェース内 Relation
public java.util.Set selectableColumnSet()
selectableColumnSet
インタフェース内 Queryable
selectableColumnSet
インタフェース内 Relation
public java.util.Set updatableColumnSet()
updatableColumnSet
インタフェース内 Queryable
updatableColumnSet
インタフェース内 Relation
public java.util.Set insertableColumnSet()
insertableColumnSet
インタフェース内 Queryable
public boolean isDeletable()
isDeletable
インタフェース内 Queryable
public java.util.Set insertableTableSet()
insertableTableSet
インタフェース内 Relation
public java.util.Set deletableTableSet()
deletableTableSet
インタフェース内 Relation
public Column getColumn(java.lang.String fullColumnName)
public boolean hasMismatchKey()
hasMismatchKey
インタフェース内 Relation
public Column getColumnByFullNameKey(Key fullNameKey)
getColumnByFullNameKey
インタフェース内 Queryable
fullNameKey
- テーブル名を含むカラム名public Column getColumnByFullName(java.lang.String fullName)
getColumnByFullName
インタフェース内 Queryable
fullName
- テーブル名を含むカラム名public java.util.Map getFullColumnMap()
getFullColumnMap
インタフェース内 Queryable
public SelectQuery createSelectQuery(SelectList selectList, SqlCondition condition) throws DBException, FatalException
createSelectQuery
インタフェース内 Queryable
selectList
- 選択可能なColumnを含むSelectListcondition
- 選択可能なColumn(それに対する他のテーブルからの結合条件を含む)に対する抽出条件(存在しない場合はnull)。DBException
FatalException
public UpdateQuery createUpdateQuery(ColumnValue[] columnValues, SqlCondition condition) throws DBException, FatalException
createUpdateQuery
インタフェース内 Queryable
columnValues
- 更新可能なカラムと対応する値。SqlCondition
- 選択可能なColumnもしくは、それに対する他のテーブルからの結合条件を含む抽出条件(存在しない場合はnull)。DBException
FatalException
public UpdateQuery createUpdateQuery(java.util.Set columnValueSet, SqlCondition condition) throws DBException, FatalException
createUpdateQuery
インタフェース内 Queryable
updateValue
- 更新可能なカラムと対応する値。SqlCondition
- 選択可能なColumnもしくは、それに対する他のテーブルからの結合条件を含む抽~出条件(存在しない場合はnull)。DBException
FatalException
public InsertQuery createInsertQuery(ColumnValue[] columnValues) throws DBException, FatalException
createInsertQuery
インタフェース内 Queryable
columnValues
- 挿入対象カラムと値の組DBException
FatalException
public InsertQuery createInsertQuery(java.util.Set columnValueSet) throws DBException, FatalException
createInsertQuery
インタフェース内 Queryable
columnValueSet
- 挿入対象カラムと値の組のセットDBException
FatalException
public DeleteQuery createDeleteQuery(SqlCondition condition) throws DBException, FatalException
createDeleteQuery
インタフェース内 Queryable
SqlCondition
- 選択可能なColumnもしくは、それに対する他のテーブルからの結合条件を含む抽出条件(存在しない場合はnull)。DBException
FatalException
public PrimarySelectQuery createPrimarySelectQuery(SelectList selectList) throws DBException, FatalException
createPrimarySelectQuery
インタフェース内 Queryable
selectList
- 選択可能なColumnを含むSelectListDBException
FatalException
public PrimaryUpdateQuery createPrimaryUpdateQuery(ColumnValue[] columnValues) throws DBException, FatalException
createPrimaryUpdateQuery
インタフェース内 Queryable
columnValues
- 更新するカラムと値の組DBException
FatalException
public PrimaryUpdateQuery createPrimaryUpdateQuery(java.util.Set columnValueSet) throws DBException, FatalException
createPrimaryUpdateQuery
インタフェース内 Queryable
columnValueSet
- 更新するカラムと値の組を含むセットDBException
FatalException
public PrimaryInsertQuery createPrimaryInsertQuery(ColumnValue[] columnValues) throws DBException, FatalException
createPrimaryInsertQuery
インタフェース内 Queryable
columnValues
- 挿入するカラムと値の組DBException
FatalException
public PrimaryInsertQuery createPrimaryInsertQuery(java.util.Set columnValueSet) throws DBException, FatalException
createPrimaryInsertQuery
インタフェース内 Queryable
columnValueSet
- 挿入するカラムと値の組を含むセットDBException
FatalException
public PrimaryDeleteQuery createPrimaryDeleteQuery() throws DBException, FatalException
createPrimaryDeleteQuery
インタフェース内 Queryable
DBException
FatalException
public boolean isExported()
isExported
インタフェース内 Relation
public void setFullColumnMap(java.util.Map fullColumnMap)
setFullColumnMap
インタフェース内 Queryable
fullColumnMap
- Key(テーブル名.カラム名)・カラムメタ情報public void setPrimaryColumns(Column[] primaryColumns)
setPrimaryColumns
インタフェース内 Queryable
public final boolean isRelation()
isRelation
インタフェース内 Queryable
protected void setupColumnSet()
protected java.util.Set getInsertableColumnSet(java.util.Set columnSet, Table t)
protected java.util.Set getUpdatableColumnSet(java.util.Set columnSet, Table t)
protected java.util.Set createInsertableTableSet()
protected java.util.Set createDeletableTableSet()
protected java.util.Map getFullColumnMap(Table primaryTable, java.util.Set tableSet)
protected ColumnValue[] createColumnValueArray(java.util.Set columnValueSet)
protected void setMismatchKey(boolean isMismatch)