Extent
The Extent instance has two possible uses:
Query
7374757677787980818283
try { tx.begin(); Extent extent = pm.getExtent( Project.class, true ); Query query = pm.newQuery( extent ); query.declareImports( "import java.lang.String" );
120121122123124125126127128129130
161162163164165166167168169170171
try { tx.begin(); Extent extent = pm.getExtent( Project.class, true ); Query query = pm.newQuery( extent, "projectGroup.id == " + projectGroupId ); pm.getFetchPlan().addGroup( PROJECT_DEPENDENCIES_FETCH_GROUP ); List<Project> result = (List<Project>) query.execute();
209210211212213214215216217218219
try { tx.begin(); Extent extent = pm.getExtent( Project.class, true ); Query query = pm.newQuery( extent, "projectGroup.id == " + projectGroupId ); query.setOrdering( "name ascending" );
240241242243244245246247248249250
317318319320321322323324325326327
try { tx.begin(); Extent extent = pm.getExtent( Project.class ); Query query = pm.newQuery( extent ); query.setResult( "projectGroup.id as projectGroupId, state as projectState, count(state) as size" );
5455565758596061626364
try { tx.begin(); Extent extent = pm.getExtent( RepositoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int scheduleId" );
8485868788899091929394
114115116117118119120121122123124
try { tx.begin(); Extent extent = pm.getExtent( RepositoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int repositoryId" );
5354555657585960616263
try { tx.begin(); Extent extent = pm.getExtent( DirectoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int scheduleId" );