Extent
The Extent instance has two possible uses:
Query
8384858687888990919293
try { tx.begin(); Extent extent = pm.getExtent( DirectoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int scheduleId" );
113114115116117118119120121122123
try { tx.begin(); Extent extent = pm.getExtent( DirectoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareImports( "import java.lang.String" );
145146147148149150151152153154155
6970717273747576777879
// this must be done in the same transaction tx.begin(); // first removing linked jdk Extent extent = pm.getExtent( Profile.class, true ); Query query = pm.newQuery( extent ); query.declareImports( "import java.lang.String" );
170171172173174175176177178179180
try { tx.begin(); Extent extent = pm.getExtent( Installation.class, true ); Query query = pm.newQuery( extent ); query.declareImports( "import java.lang.String" );
213214215216217218219220221222223
try { tx.begin(); Extent extent = pm.getExtent( ProjectGroup.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int repositoryId" );
204205206207208209210211212213214
try { tx.begin(); Extent extent = pm.getExtent( Project.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int scheduleId" );
278279280281282283284285286287288
try { tx.begin(); Extent extent = pm.getExtent( ProjectGroup.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int scheduleId" );
128129130131132133134135136137138
try { tx.begin(); Extent extent = pm.getExtent( Project.class, true ); Query query = pm.newQuery( extent ); query.declareImports( "import org.apache.maven.continuum.model.project.BuildDefinition" );
179180181182183184185186187188189
try { tx.begin(); Extent extent = pm.getExtent( ProjectGroup.class, true ); Query query = pm.newQuery( extent ); query.declareImports( "import " + BuildDefinition.class.getName() );