public class EntityTable extends AbstractTable
| Constructor and Description |
|---|
EntityTable(EntityTypeImpl<?> entity,
TableMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(AbstractColumn column)
Adds the column to the table
|
boolean |
addIndex(String name,
BasicColumn... columns)
Adds the index to table.
|
EntityTypeImpl<?> |
getEntity()
Returns the entity of the EntityTable.
|
Map<String,BasicColumn[]> |
getIndexes()
Returns the indexes of the table.
|
protected JdbcAdaptor |
getJdbcAdaptor()
Returns the jdbcAdaptor of the EntityTable.
|
Set<String> |
getPkColumnNames()
Returns the set of primary key column names.
|
Collection<AbstractColumn> |
getPkColumns()
Returns the pkColumns of the EntityTable.
|
void |
performInsert(ConnectionImpl connection,
ManagedInstance<?> managedInstance)
Performs inserts to the table for the managed instance or joins.
|
void |
performRemove(ConnectionImpl connection,
ManagedInstance<?> managedInstance)
Performs removes from the table for the managed instance or joins.
|
Object |
performSelectVersion(ConnectionImpl connection,
ManagedInstance<?> managedInstance)
Selects the version from the table.
|
void |
performUpdate(ConnectionImpl connection,
ManagedInstance<?> managedInstance)
Performs update to the table for the managed instance or joins.
|
boolean |
performUpdateWithUpdatability(ConnectionImpl connection,
ManagedInstance<?> managedInstance)
Performs update to the table for the managed instance or joins.
|
void |
performVersionUpdate(ConnectionImpl connection,
ManagedInstance<?> managedInstance)
Performs version update to the table.
|
String |
toString() |
addForeignKey, getCatalog, getColumnNames, getColumns, getForeignKeys, getInsertColumns, getInsertSql, getLocator, getName, getQName, getSchema, getSelectVersionColumns, getSelectVersionSql, getUniqueConstraints, getUpdateColumns, getUpdateSql, getVersionUpdateColumns, getVersionUpdateSql, setNamepublic EntityTable(EntityTypeImpl<?> entity, TableMetadata metadata)
entity - the entitymetadata - the table metadatapublic void addColumn(AbstractColumn column)
addColumn in class AbstractTablecolumn - the column to addpublic boolean addIndex(String name, BasicColumn... columns)
name - the name of the indexcolumns - the columnsname already existed, false otherwisepublic EntityTypeImpl<?> getEntity()
public Map<String,BasicColumn[]> getIndexes()
protected JdbcAdaptor getJdbcAdaptor()
public Set<String> getPkColumnNames()
getPkColumnNames in class AbstractTablepublic Collection<AbstractColumn> getPkColumns()
public void performInsert(ConnectionImpl connection, ManagedInstance<?> managedInstance) throws SQLException
connection - the connection to usemanagedInstance - the managed instance to perform insert forSQLException - thrown in case of underlying SQLExceptionpublic void performRemove(ConnectionImpl connection, ManagedInstance<?> managedInstance) throws SQLException
connection - the connection to usemanagedInstance - the managed instance to perform remove forSQLException - thrown in case of underlying SQLExceptionpublic Object performSelectVersion(ConnectionImpl connection, ManagedInstance<?> managedInstance) throws SQLException
connection - the connection to usemanagedInstance - the managed instance to perform select forSQLException - thrown in case of underlying SQLExceptionpublic void performUpdate(ConnectionImpl connection, ManagedInstance<?> managedInstance) throws SQLException
connection - the connection to usemanagedInstance - the managed instance to perform update forSQLException - thrown in case of underlying SQLExceptionpublic boolean performUpdateWithUpdatability(ConnectionImpl connection, ManagedInstance<?> managedInstance) throws SQLException
connection - the connection to usemanagedInstance - the managed instance to perform update forSQLException - thrown in case of underlying SQLExceptionpublic void performVersionUpdate(ConnectionImpl connection, ManagedInstance<?> managedInstance) throws SQLException
connection - the connection to usemanagedInstance - the managed instance to perform version update forSQLException - thrown in case of underlying SQLExceptionCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.