code
stringlengths
73
34.1k
label
stringclasses
1 value
private Status executeDebug(Stmt.Debug stmt, CallStack frame, EnclosingScope scope) { // // FIXME: need to do something with this RValue.Array arr = executeExpression(ARRAY_T, stmt.getOperand(), frame); for (RValue item : arr.getElements()) { RValue.Int i = (RValue.Int) item; char c = (char) i.intValue();...
java
private Status executeFail(Stmt.Fail stmt, CallStack frame, EnclosingScope scope) { throw new AssertionError("Runtime fault occurred"); }
java
private Status executeIf(Stmt.IfElse stmt, CallStack frame, EnclosingScope scope) { RValue.Bool operand = executeExpression(BOOL_T, stmt.getCondition(), frame); if (operand == RValue.True) { // branch taken, so execute true branch return executeBlock(stmt.getTrueBranch(), frame, scope); } else if (stmt.hasF...
java
private Status executeNamedBlock(Stmt.NamedBlock stmt, CallStack frame, EnclosingScope scope) { return executeBlock(stmt.getBlock(),frame,scope); }
java
private Status executeWhile(Stmt.While stmt, CallStack frame, EnclosingScope scope) { Status r; do { RValue.Bool operand = executeExpression(BOOL_T, stmt.getCondition(), frame); if (operand == RValue.False) { return Status.NEXT; } // Keep executing the loop body until we exit it somehow. r = exec...
java
private Status executeReturn(Stmt.Return stmt, CallStack frame, EnclosingScope scope) { // We know that a return statement can only appear in either a function // or method declaration. It cannot appear, for example, in a type // declaration. Therefore, the enclosing declaration is a function or // method. De...
java
private Status executeSkip(Stmt.Skip stmt, CallStack frame, EnclosingScope scope) { // skip ! return Status.NEXT; }
java
private Status executeSwitch(Stmt.Switch stmt, CallStack frame, EnclosingScope scope) { Tuple<Stmt.Case> cases = stmt.getCases(); // Object value = executeExpression(ANY_T, stmt.getCondition(), frame); for (int i = 0; i != cases.size(); ++i) { Stmt.Case c = cases.get(i); Stmt.Block body = c.getBlock(); ...
java
private Status executeVariableDeclaration(Decl.Variable stmt, CallStack frame) { // We only need to do something if this has an initialiser if(stmt.hasInitialiser()) { RValue value = executeExpression(ANY_T, stmt.getInitialiser(), frame); frame.putLocal(stmt.getName(),value); } return Status.NEXT; }
java
private RValue executeConst(Expr.Constant expr, CallStack frame) { Value v = expr.getValue(); switch (v.getOpcode()) { case ITEM_null: return RValue.Null; case ITEM_bool: { Value.Bool b = (Value.Bool) v; if (b.get()) { return RValue.True; } else { return RValue.False; } } case ITEM_by...
java
private RValue executeConvert(Expr.Cast expr, CallStack frame) { RValue operand = executeExpression(ANY_T, expr.getOperand(), frame); return operand.convert(expr.getType()); }
java
private boolean executeQuantifier(int index, Expr.Quantifier expr, CallStack frame) { Tuple<Decl.Variable> vars = expr.getParameters(); if (index == vars.size()) { // This is the base case where we evaluate the condition itself. RValue.Bool r = executeExpression(BOOL_T, expr.getOperand(), frame); boolean q...
java
private RValue executeVariableAccess(Expr.VariableAccess expr, CallStack frame) { Decl.Variable decl = expr.getVariableDeclaration(); return frame.getLocal(decl.getName()); }
java
private RValue[] executeExpressions(Tuple<Expr> expressions, CallStack frame) { RValue[][] results = new RValue[expressions.size()][]; int count = 0; for(int i=0;i!=expressions.size();++i) { results[i] = executeMultiReturnExpression(expressions.get(i),frame); count += results[i].length; } RValue[] rs = ...
java
private RValue[] executeMultiReturnExpression(Expr expr, CallStack frame) { switch (expr.getOpcode()) { case WyilFile.EXPR_indirectinvoke: return executeIndirectInvoke((Expr.IndirectInvoke) expr, frame); case WyilFile.EXPR_invoke: return executeInvoke((Expr.Invoke) expr, frame); case WyilFile.EXPR_constan...
java
private RValue[] executeIndirectInvoke(Expr.IndirectInvoke expr, CallStack frame) { RValue.Lambda src = executeExpression(LAMBDA_T, expr.getSource(),frame); RValue[] arguments = executeExpressions(expr.getArguments(), frame); // Here we have to use the enclosing frame when the lambda was created. // The reason ...
java
private RValue[] executeInvoke(Expr.Invoke expr, CallStack frame) { // Resolve function or method being invoked to a concrete declaration Decl.Callable decl = expr.getLink().getTarget(); // Evaluate argument expressions RValue[] arguments = executeExpressions(expr.getOperands(), frame); // Invoke the function...
java
private LValue constructLVal(Expr expr, CallStack frame) { switch (expr.getOpcode()) { case EXPR_arrayborrow: case EXPR_arrayaccess: { Expr.ArrayAccess e = (Expr.ArrayAccess) expr; LValue src = constructLVal(e.getFirstOperand(), frame); RValue.Int index = executeExpression(INT_T, e.getSecondOperand(), fr...
java
@SafeVarargs public static <T extends RValue> T checkType(RValue operand, SyntacticItem context, Class<T>... types) { // Got through each type in turn checking for a match for (int i = 0; i != types.length; ++i) { if (types[i].isInstance(operand)) { // Matched! return (T) operand; } } // No match...
java
public String getCompileTargetVersion() { // TODO: Add support for maven.compiler.release // maven-plugin-compiler default is 1.5 String javaVersion = "1.5"; if (mavenProject != null) { // check the maven.compiler.target property first String mavenCompilerTargetProperty = mavenProj...
java
public void run() throws MojoExecutionException { try { runMojo .getAppEngineFactory() .devServerRunSync() .run(configBuilder.buildRunConfiguration(processServices(), processProjectId())); } catch (AppEngineException ex) { throw new MojoExecutionException("Failed to run...
java
public void runAsync(int startSuccessTimeout) throws MojoExecutionException { runMojo .getLog() .info("Waiting " + startSuccessTimeout + " seconds for the Dev App Server to start."); try { runMojo .getAppEngineFactory() .devServerRunAsync(startSuccessTimeout) ...
java
public String getProjectId() { if (project != null) { if (projectId != null) { throw new IllegalArgumentException( "Configuring <project> and <projectId> is not allowed, please use only <projectId>"); } getLog() .warn( "Configuring <project> is deprecate...
java
public String getProjectId() { try { String gcloudProject = gcloud.getConfig().getProject(); if (gcloudProject == null || gcloudProject.trim().isEmpty()) { throw new RuntimeException("Project was not found in gcloud config"); } return gcloudProject; } catch (CloudSdkNotFoundExcep...
java
public void checkCloudSdk(CloudSdk cloudSdk, String version) throws CloudSdkVersionFileException, CloudSdkNotFoundException, CloudSdkOutOfDateException { if (!version.equals(cloudSdk.getVersion().toString())) { throw new RuntimeException( "Specified Cloud SDK version (" + version...
java
public Gcloud getGcloud() { return Gcloud.builder(buildCloudSdkMinimal()) .setMetricsEnvironment(mojo.getArtifactId(), mojo.getArtifactVersion()) .setCredentialFile(mojo.getServiceAccountKeyFile()) .build(); }
java
public List<Path> getServices() { return (services == null) ? null : services.stream().map(File::toPath).collect(Collectors.toList()); }
java
public void deployAll() throws MojoExecutionException { stager.stage(); ImmutableList.Builder<Path> computedDeployables = ImmutableList.builder(); // Look for app.yaml Path appYaml = deployMojo.getStagingDirectory().resolve("app.yaml"); if (!Files.exists(appYaml)) { throw new MojoExecutionExc...
java
public void deployCron() throws MojoExecutionException { stager.stage(); try { deployMojo .getAppEngineFactory() .deployment() .deployCron( configBuilder.buildDeployProjectConfigurationConfiguration(appengineDirectory)); } catch (AppEngineException ex) { ...
java
static Function<String, ManagedCloudSdk> newManagedSdkFactory() { return (version) -> { try { if (Strings.isNullOrEmpty(version)) { return ManagedCloudSdk.newManagedSdk(); } else { return ManagedCloudSdk.newManagedSdk(new Version(version)); } } catch (Unsuppor...
java
public List<Path> getExtraFilesDirectories() { return extraFilesDirectories == null ? null : extraFilesDirectories.stream().map(File::toPath).collect(Collectors.toList()); }
java
@Nullable public String getUrl() { if (getRepositoryUrl() == null) return null; return getRepositoryUrl() + "/" + getGroupId().replace('.', '/') + "/" + getArtifactId() + "/" + getVersion() + "/" + getFileNameWithBaseVersion(); }
java
@Override public void stop(Throwable cause) throws Exception { stopping = true; if (task != null) { task.cancel(true); } super.stop(cause); }
java
@Nonnull public static List<MavenArtifact> isSameCause(MavenDependencyCause newMavenCause, Cause oldMavenCause) { if (!(oldMavenCause instanceof MavenDependencyCause)) { return Collections.emptyList(); } List<MavenArtifact> newCauseArtifacts = Preconditions.checkNotNull(newMaven...
java
private void setupJDK() throws AbortException, IOException, InterruptedException { String jdkInstallationName = step.getJdk(); if (StringUtils.isEmpty(jdkInstallationName)) { console.println("[withMaven] using JDK installation provided by the build agent"); return; }...
java
@Nullable private String readFromProcess(String... args) throws InterruptedException { try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { ProcStarter ps = launcher.launch(); Proc p = launcher.launch(ps.cmds(args).stdout(baos)); int exitCode = p.join(); ...
java
private FilePath createWrapperScript(FilePath tempBinDir, String name, String content) throws IOException, InterruptedException { FilePath scriptFile = tempBinDir.child(name); envOverride.put(MVN_CMD, scriptFile.getRemote()); scriptFile.write(content, getComputer().getDefaultCharset().name(...
java
@Nullable private String setupMavenLocalRepo() throws IOException, InterruptedException { String expandedMavenLocalRepo; if (StringUtils.isEmpty(step.getMavenLocalRepo())) { expandedMavenLocalRepo = null; } else { // resolve relative/absolute with workspace as b...
java
private void globalSettingsFromConfig(String mavenGlobalSettingsConfigId, FilePath mavenGlobalSettingsFile, Collection<Credentials> credentials) throws AbortException { Config c = ConfigFiles.getByIdOrNull(build, mavenGlobalSettingsConfigId); if (c == null) { throw new AbortException("C...
java
@Nonnull private Computer getComputer() throws AbortException { if (computer != null) { return computer; } String node = null; Jenkins j = Jenkins.getInstance(); for (Computer c : j.getComputers()) { if (c.getChannel() == launcher.getChanne...
java
protected DialectFactory createDialectFactory() { DialectFactoryImpl factory = new DialectFactoryImpl(); factory.injectServices(new ServiceRegistryImplementor() { @Override public <R extends Service> R getService(Class<R> serviceRole) { if (serviceRole == Dialect...
java
protected boolean matchesFilter(MetadataReader reader, MetadataReaderFactory readerFactory) throws IOException { for (TypeFilter filter : ENTITY_TYPE_FILTERS) { if (filter.match(reader, readerFactory)) { return true; } } return false; }
java
public long deleteAll(final QueryableCriteria criteria) { return getHibernateTemplate().execute((GrailsHibernateTemplate.HibernateCallback<Integer>) session -> { JpaQueryBuilder builder = new JpaQueryBuilder(criteria); builder.setConversionService(getMappingContext().getConversionService...
java
public long updateAll(final QueryableCriteria criteria, final Map<String, Object> properties) { return getHibernateTemplate().execute((GrailsHibernateTemplate.HibernateCallback<Integer>) session -> { JpaQueryBuilder builder = new JpaQueryBuilder(criteria); builder.setConversionService(ge...
java
public static boolean isAtLeastVersion(String required) { String hibernateVersion = Hibernate.class.getPackage().getImplementationVersion(); if (hibernateVersion != null) { return GrailsVersion.isAtLeast(hibernateVersion, required); } else { return false; } }
java
@Deprecated public static Query createQuery(Session session, String query) { return session.createQuery(query); }
java
private static PersistentProperty getGrailsDomainClassProperty(AbstractHibernateDatastore datastore, Class<?> targetClass, String propertyName) { PersistentEntity grailsClass = datastore != null ? datastore.getMappingContext().getPersistentEntity( targetClass.getName()) : null; if (grailsClass == null) ...
java
public static void cacheCriteriaByMapping(Class<?> targetClass, Criteria criteria) { Mapping m = GrailsDomainBinder.getMapping(targetClass); if (m != null && m.getCache() != null && m.getCache().getEnabled()) { criteria.setCacheable(true); } }
java
public static FetchMode getFetchMode(Object object) { String name = object != null ? object.toString() : "default"; if (name.equalsIgnoreCase(FetchMode.JOIN.toString()) || name.equalsIgnoreCase("eager")) { return FetchMode.JOIN; } if (name.equalsIgnoreCase(FetchMode.SELECT.to...
java
public static void setObjectToReadyOnly(Object target, SessionFactory sessionFactory) { Object resource = TransactionSynchronizationManager.getResource(sessionFactory); if(resource != null) { Session session = sessionFactory.getCurrentSession(); if (canModifyReadWriteState(sessio...
java
public static void setObjectToReadWrite(final Object target, SessionFactory sessionFactory) { Session session = sessionFactory.getCurrentSession(); if (!canModifyReadWriteState(session, target)) { return; } SessionImplementor sessionImpl = (SessionImplementor) session; ...
java
public static void incrementVersion(Object target) { MetaClass metaClass = GroovySystem.getMetaClassRegistry().getMetaClass(target.getClass()); if (metaClass.hasProperty(target, GormProperties.VERSION)!=null) { Object version = metaClass.getProperty(target, GormProperties.VERSION); ...
java
@Deprecated public static void ensureCorrectGroovyMetaClass(Object target, Class<?> persistentClass) { if (target instanceof GroovyObject) { GroovyObject go = ((GroovyObject)target); if (!go.getMetaClass().getTheClass().equals(persistentClass)) { go.setMetaClass(Groov...
java
public static HibernateProxy getAssociationProxy(Object obj, String associationName) { return proxyHandler.getAssociationProxy(obj, associationName); }
java
public void enableMultiTenancyFilter() { Serializable currentId = Tenants.currentId(this); if(ConnectionSource.DEFAULT.equals(currentId)) { disableMultiTenancyFilter(); } else { getHibernateTemplate() .getSessionFactory() .g...
java
public static void configureNamingStrategy(final Object strategy) throws ClassNotFoundException, InstantiationException, IllegalAccessException { configureNamingStrategy(ConnectionSource.DEFAULT, strategy); }
java
public static void configureNamingStrategy(final String datasourceName, final Object strategy) throws ClassNotFoundException, InstantiationException, IllegalAccessException { Class<?> namingStrategyClass = null; NamingStrategy namingStrategy; if (strategy instanceof Class<?>) { namin...
java
protected boolean isUnidirectionalOneToMany(PersistentProperty property) { return ((property instanceof org.grails.datastore.mapping.model.types.OneToMany) && !((Association)property).isBidirectional()); }
java
protected void bindDependentKeyValue(PersistentProperty property, DependantValue key, InFlightMetadataCollector mappings, String sessionFactoryBeanName) { if (LOG.isDebugEnabled()) { LOG.debug("[GrailsDomainBinder] binding [" + property.getName() + "] with ...
java
protected DependantValue createPrimaryKeyValue(InFlightMetadataCollector mappings, PersistentProperty property, Collection collection, Map<?, ?> persistentClasses) { KeyValue keyValue; DependantValue key; String propertyRef = collection.getRefer...
java
protected void bindUnidirectionalOneToMany(org.grails.datastore.mapping.model.types.OneToMany property, InFlightMetadataCollector mappings, Collection collection) { Value v = collection.getElement(); v.createForeignKey(); String entityName; if (v instanceof ManyToOne) { ManyT...
java
protected void linkBidirectionalOneToMany(Collection collection, PersistentClass associatedClass, DependantValue key, PersistentProperty otherSide) { collection.setInverse(true); // Iterator mappedByColumns = associatedClass.getProperty(otherSide.getName()).getValue().getColumnIterator(); Itera...
java
protected void bindCollection(ToMany property, Collection collection, PersistentClass owner, InFlightMetadataCollector mappings, String path, String sessionFactoryBeanName) { // set role String propertyName = getNameForPropertyAndPath(property, path); collectio...
java
protected String calculateTableForMany(ToMany property, String sessionFactoryBeanName) { NamingStrategy namingStrategy = getNamingStrategy(sessionFactoryBeanName); String propertyColumnName = namingStrategy.propertyToColumnName(property.getName()); //fix for GRAILS-5895 PropertyConfig c...
java
protected String getTableName(PersistentEntity domainClass, String sessionFactoryBeanName) { Mapping m = getMapping(domainClass); String tableName = null; if (m != null && m.getTableName() != null) { tableName = m.getTableName(); } if (tableName == null) { ...
java
public void bindClass(PersistentEntity entity, InFlightMetadataCollector mappings, String sessionFactoryBeanName) throws MappingException { //if (domainClass.getClazz().getSuperclass() == Object.class) { if (entity.isRoot()) { bindRoot((HibernatePersistentEntity) entity, mappings...
java
protected void trackCustomCascadingSaves(Mapping mapping, Iterable<PersistentProperty> persistentProperties) { for (PersistentProperty property : persistentProperties) { PropertyConfig propConf = mapping.getPropertyConfig(property.getName()); if (propConf != null && propConf.getCascade(...
java
protected boolean isSaveUpdateCascade(String cascade) { String[] cascades = cascade.split(","); for (String cascadeProp : cascades) { String trimmedProp = cascadeProp.trim(); if (CASCADE_SAVE_UPDATE.equals(trimmedProp) || CASCADE_ALL.equals(trimmedProp) || CASCADE_ALL_DELETE_OR...
java
protected void bindClass(PersistentEntity domainClass, PersistentClass persistentClass, InFlightMetadataCollector mappings) { // set lazy loading for now persistentClass.setLazy(true); final String entityName = domainClass.getName(); persistentClass.setEntityName(entityName); pe...
java
protected void addMultiTenantFilterIfNecessary( HibernatePersistentEntity entity, PersistentClass persistentClass, InFlightMetadataCollector mappings, String sessionFactoryBeanName) { if (entity.isMultiTenant()) { TenantId tenantId = entity.getTenantId(); if (ten...
java
protected void bindSubClasses(HibernatePersistentEntity domainClass, PersistentClass parent, InFlightMetadataCollector mappings, String sessionFactoryBeanName) { final java.util.Collection<PersistentEntity> subClasses = domainClass.getMappingContext().getDirectChildEntities(dom...
java
protected void bindSubClass(HibernatePersistentEntity sub, PersistentClass parent, InFlightMetadataCollector mappings, String sessionFactoryBeanName) { evaluateMapping(sub, defaultMapping); Mapping m = getMapping(parent.getMappedClass()); Subclass subClass; ...
java
protected void bindJoinedSubClass(HibernatePersistentEntity sub, JoinedSubclass joinedSubclass, InFlightMetadataCollector mappings, Mapping gormMapping, String sessionFactoryBeanName) { bindClass(sub, joinedSubclass, mappings); String schemaName = getSchemaName(map...
java
protected void bindSubClass(HibernatePersistentEntity sub, Subclass subClass, InFlightMetadataCollector mappings, String sessionFactoryBeanName) { bindClass(sub, subClass, mappings); if (LOG.isDebugEnabled()) LOG.debug("Mapping subclass: " + subClass.getEntit...
java
protected void bindDiscriminatorProperty(Table table, RootClass entity, InFlightMetadataCollector mappings) { Mapping m = getMapping(entity.getMappedClass()); SimpleValue d = new SimpleValue(metadataBuildingContext, table); entity.setDiscriminator(d); DiscriminatorConfig discriminatorCon...
java
protected void bindComponent(Component component, Embedded property, boolean isNullable, InFlightMetadataCollector mappings, String sessionFactoryBeanName) { component.setEmbedded(true); Class<?> type = property.getType(); String role = qualify(type.getName(), pr...
java
@SuppressWarnings("unchecked") protected void bindManyToOne(Association property, ManyToOne manyToOne, String path, InFlightMetadataCollector mappings, String sessionFactoryBeanName) { NamingStrategy namingStrategy = getNamingStrategy(sessionFactoryBeanName); bindM...
java
private int calculateForeignKeyColumnCount(PersistentEntity refDomainClass, String[] propertyNames) { int expectedForeignKeyColumnLength = 0; for (String propertyName : propertyNames) { PersistentProperty referencedProperty = refDomainClass.getPropertyByName(propertyName); if(ref...
java
protected void bindProperty(PersistentProperty grailsProperty, Property prop, InFlightMetadataCollector mappings) { // set the property name prop.setName(grailsProperty.getName()); if (isBidirectionalManyToOneWithListMapping(grailsProperty, prop)) { prop.setInsertable(false); ...
java
protected void bindSimpleValue(PersistentProperty property, PersistentProperty parentProperty, SimpleValue simpleValue, String path, InFlightMetadataCollector mappings, String sessionFactoryBeanName) { // set type bindSimpleValue(property,parentProperty, simpleValue, p...
java
protected void bindSimpleValue(String type, SimpleValue simpleValue, boolean nullable, String columnName, InFlightMetadataCollector mappings) { simpleValue.setTypeName(type); Table t = simpleValue.getTable(); Column column = new Column(); column.setNul...
java
protected void bindStringColumnConstraints(Column column, PersistentProperty constrainedProperty) { final org.grails.datastore.mapping.config.Property mappedForm = constrainedProperty.getMapping().getMappedForm(); Number columnLength = mappedForm.getMaxSize(); List<?> inListValues = mappedForm.g...
java
public org.grails.datastore.mapping.query.api.ProjectionList property(String propertyName, String alias) { final PropertyProjection propertyProjection = Projections.property(calculatePropertyName(propertyName)); addProjectionToList(propertyProjection, alias); return this; }
java
protected void addProjectionToList(Projection propertyProjection, String alias) { if (alias != null) { projectionList.add(propertyProjection,alias); } else { projectionList.add(propertyProjection); } }
java
public org.grails.datastore.mapping.query.api.ProjectionList distinct(String propertyName, String alias) { final Projection proj = Projections.distinct(Projections.property(calculatePropertyName(propertyName))); addProjectionToList(proj,alias); return this; }
java
public BuildableCriteria join(String associationPath) { criteria.setFetchMode(calculatePropertyName(associationPath), FetchMode.JOIN); return this; }
java
public void lock(boolean shouldLock) { String lastAlias = getLastAlias(); if (shouldLock) { if (lastAlias != null) { criteria.setLockMode(lastAlias, LockMode.PESSIMISTIC_WRITE); } else { criteria.setLockMode(LockMode.PESSIMISTIC_WRITE)...
java
public BuildableCriteria select(String associationPath) { criteria.setFetchMode(calculatePropertyName(associationPath), FetchMode.SELECT); return this; }
java
protected String calculatePropertyName(String propertyName) { String lastAlias = getLastAlias(); if (lastAlias != null) { return lastAlias +'.'+propertyName; } return propertyName; }
java
@SuppressWarnings({ "rawtypes", "unchecked" }) protected Object calculatePropertyValue(Object propertyValue) { if (propertyValue instanceof CharSequence) { return propertyValue.toString(); } if (propertyValue instanceof QueryableCriteria) { propertyValue = convertToHi...
java
public void count(String propertyName, String alias) { final CountProjection proj = Projections.count(calculatePropertyName(propertyName)); addProjectionToList(proj, alias); }
java
public org.grails.datastore.mapping.query.api.ProjectionList groupProperty(String propertyName, String alias) { final PropertyProjection proj = Projections.groupProperty(calculatePropertyName(propertyName)); addProjectionToList(proj, alias); return this; }
java
public org.grails.datastore.mapping.query.api.ProjectionList min(String propertyName, String alias) { final AggregateProjection aggregateProjection = Projections.min(calculatePropertyName(propertyName)); addProjectionToList(aggregateProjection, alias); return this; }
java
public org.grails.datastore.mapping.query.api.ProjectionList sum(String propertyName, String alias) { final AggregateProjection proj = Projections.sum(calculatePropertyName(propertyName)); addProjectionToList(proj, alias); return this; }
java
public void fetchMode(String associationPath, FetchMode fetchMode) { if (criteria != null) { criteria.setFetchMode(associationPath, fetchMode); } }
java
public Criteria createAlias(String associationPath, String alias) { return criteria.createAlias(associationPath, alias); }
java
public org.grails.datastore.mapping.query.api.Criteria geProperty(String propertyName, String otherPropertyName) { if (!validateSimpleExpression()) { throwRuntimeException(new IllegalArgumentException("Call to [geProperty] with propertyName [" + propertyName + "] and other proper...
java
public org.grails.datastore.mapping.query.api.Criteria le(String propertyName, Object propertyValue) { if (!validateSimpleExpression()) { throwRuntimeException(new IllegalArgumentException("Call to [le] with propertyName [" + propertyName + "] and value [" + propertyValue + "] no...
java
@SuppressWarnings("rawtypes") public org.grails.datastore.mapping.query.api.Criteria inList(String propertyName, Collection values) { return in(propertyName, values); }
java
public org.grails.datastore.mapping.query.api.Criteria order(String propertyName, String direction) { if (criteria == null) { throwRuntimeException(new IllegalArgumentException("Call to [order] with propertyName [" + propertyName + "]not allowed here.")); } proper...
java