public class ManyToManyGenerator extends Object implements DaoQueryFactory
| Constructor and Description |
|---|
ManyToManyGenerator(PersistenceAdmin persistenceAdmin,
String table,
String joinColumn,
String foreignKeyColumn,
String primaryKeyColumn)
Create ManyToManyQuery object
|
| Modifier and Type | Method and Description |
|---|---|
<T> DaoQuery<T> |
generateQuery(PersistenceDao<T,?> dao)
Returns query object which will execute a prepared statement with a primary key selection argument
|
public ManyToManyGenerator(PersistenceAdmin persistenceAdmin, String table, String joinColumn, String foreignKeyColumn, String primaryKeyColumn)
persistenceAdmin - Interface for JPA Supporttable - The name of the join tablejoinColumn - Column name in join table to match onforeignKeyColumn - Column name for foreign key to retrieve onprimaryKeyColumn - Column name in foreign table which foreignKeyColumn points topublic <T> DaoQuery<T> generateQuery(PersistenceDao<T,?> dao) throws SQLException
generateQuery in interface DaoQueryFactorySQLExceptionDaoQueryFactory.generateQuery(au.com.cybersearch2.classyjpa.entity.PersistenceDao)This documentation is licensed by Andrew Bowley under the GPLv3 License.