AbstractTable.ParameterMode
parentIdProperty
clazz, clearQuery, columns, deleteQuery, indexes, insertQuery, name, selectByIdQuery, sqlLogger, sqlRepository, updateQuery
Constructor and Description |
---|
CrossTable(SqlRepository sqlRepository,
String name,
Class<ELEMENT> clazz,
PropertyInterface idProperty) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFieldColumns(SqlDialect dialect,
StringBuilder s) |
void |
addList(PARENT parent,
List<ELEMENT> objects) |
protected void |
createConstraints(SqlDialect dialect) |
protected void |
delete(Object parentId,
int position) |
protected void |
findIndexes() |
List<ELEMENT> |
getList(PARENT parent) |
protected void |
insert(Object parentId,
int position,
Object object) |
protected String |
insertQuery() |
List<ELEMENT> |
readAll(Object parentId) |
protected String |
selectByIdQuery() |
protected void |
update(Object parentId,
int position,
Object element) |
protected String |
updateQuery() |
addPrimaryKey, addSpecialColumns, deleteQuery, replaceList
buildTableName, clear, clearQuery, column, column, createIndex, createIndex, createIndexes, createTable, execute, executeSelect, executeSelect, executeSelectAll, executeSelectCount, findColumn, findX, getClazz, getColumns, getIndexes, getOrCreateId, getTableName, isDependable, isHistorized, setParameters, updateDependable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
replaceList
public CrossTable(SqlRepository sqlRepository, String name, Class<ELEMENT> clazz, PropertyInterface idProperty)
protected void createConstraints(SqlDialect dialect)
createConstraints
in class AbstractTable<ELEMENT>
protected void findIndexes()
findIndexes
in class AbstractTable<ELEMENT>
protected void update(Object parentId, int position, Object element) throws SQLException
update
in class SubTable<PARENT,ELEMENT>
SQLException
protected void insert(Object parentId, int position, Object object) throws SQLException
insert
in class SubTable<PARENT,ELEMENT>
SQLException
protected void delete(Object parentId, int position) throws SQLException
delete
in class SubTable<PARENT,ELEMENT>
SQLException
protected String selectByIdQuery()
selectByIdQuery
in class SubTable<PARENT,ELEMENT>
protected String insertQuery()
insertQuery
in class SubTable<PARENT,ELEMENT>
protected String updateQuery()
updateQuery
in class SubTable<PARENT,ELEMENT>
protected void addFieldColumns(SqlDialect dialect, StringBuilder s)
addFieldColumns
in class AbstractTable<ELEMENT>
Copyright © 2019. All rights reserved.