Query
211212213214215216217218219220221
{ tx.begin(); Extent extent = pm.getExtent( Project.class, true ); Query query = pm.newQuery( extent, "projectGroup.id == " + projectGroupId ); query.setOrdering( "name ascending" ); List<Project> result = (List<Project>) query.execute();
242243244245246247248249250251252
{ tx.begin(); Extent extent = pm.getExtent( Project.class, true ); Query query = pm.newQuery( extent, "projectGroup.id == " + projectGroupId ); query.setOrdering( "name ascending" ); pm.getFetchPlan().addGroup( PROJECT_DEPENDENCIES_FETCH_GROUP );
319320321322323324325326327328329
{ 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" ); query.setResultClass( ProjectSummaryResult.class );
5657585960616263646566
{ tx.begin(); Extent extent = pm.getExtent( RepositoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int scheduleId" ); query.setFilter( "this.schedule.id == scheduleId" );
8687888990919293949596
{ tx.begin(); Extent extent = pm.getExtent( RepositoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int scheduleId" ); query.setFilter( "this.schedule.id == scheduleId && this.enabled == true" );
116117118119120121122123124125126
{ tx.begin(); Extent extent = pm.getExtent( RepositoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int repositoryId" ); query.setFilter( "this.repository.id == repositoryId" );
5556575859606162636465
{ tx.begin(); Extent extent = pm.getExtent( DirectoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int scheduleId" ); query.setFilter( "this.schedule.id == scheduleId" );
8586878889909192939495
{ tx.begin(); Extent extent = pm.getExtent( DirectoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareParameters( "int scheduleId" ); query.setFilter( "this.schedule.id == scheduleId && this.enabled == true" );
115116117118119120121122123124125
{ tx.begin(); Extent extent = pm.getExtent( DirectoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareImports( "import java.lang.String" ); query.declareParameters( "String location" );
147148149150151152153154155156157
{ tx.begin(); Extent extent = pm.getExtent( DirectoryPurgeConfiguration.class, true ); Query query = pm.newQuery( extent ); query.declareImports( "import java.lang.String" ); query.declareParameters( "String type" );