Extent
The Extent instance has two possible uses:
Query
230231232233234235236237238239240
try { tx.begin(); Extent extent = pm.getExtent( BuildDefinition.class, true ); Query query = pm.newQuery( extent ); query.declareImports( "import " + Project.class.getName() );
319320321322323324325326327328329
try { tx.begin(); Extent extent = pm.getExtent( BuildDefinition.class, true ); Query query = pm.newQuery( extent ); query.setFilter( "this.template == true" ); List result = (List) query.execute(); return result == null ? Collections.EMPTY_LIST : (List) pm.detachCopyAll( result );
344345346347348349350351352353354
try { tx.begin(); Extent extent = pm.getExtent( BuildDefinition.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int scheduleId" );
125126127128129130131132133134135
try { tx.begin(); Extent extent = pm.getExtent( BuildResult.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int projectId" );
163164165166167168169170171172173
{ tx.begin(); pm.getFetchPlan().addGroup( BUILD_RESULT_WITH_DETAILS_FETCH_GROUP ); Extent extent = pm.getExtent( BuildResult.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int projectId" );
199200201202203204205206207208209
try { tx.begin(); Extent extent = pm.getExtent( BuildResult.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int projectId, int buildDefinitionId" );
240241242243244245246247248249250
try { tx.begin(); Extent extent = pm.getExtent( BuildResult.class, true ); Query query = pm.newQuery( extent ); String filter = "this.project.latestBuildId == this.id";
340341342343344345346347348349350
try { tx.begin(); Extent extent = pm.getExtent( BuildResult.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int projectId, int buildNumber" );
378379380381382383384385386387388
try { tx.begin(); Extent extent = pm.getExtent( BuildResult.class, true ); Query query = pm.newQuery( extent ); if ( startIndex >= 0 && endIndex >= 0 ) {
445446447448449450451452453454455
try { tx.begin(); Extent extent = pm.getExtent( BuildResult.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int projectId, long fromDate, int state" );