Examples of readonly()


Examples of org.jboss.managed.api.annotation.ManagementProperty.readOnly()

               if (mandatory)
                  fields.setField(Fields.MANDATORY, Boolean.TRUE);
              
               boolean readOnly = propertyInfo.isWritable() == false;
               if (readOnly == false && managementProperty != null)
                  readOnly = managementProperty.readOnly();
               if (readOnly)
                  fields.setField(Fields.READ_ONLY, Boolean.TRUE);

               boolean managed = false;
               if (managementProperty != null)
View Full Code Here

Examples of org.maqetta.server.IVResource.readOnly()

  protected boolean handleLibraryRequest(HttpServletRequest req, HttpServletResponse resp, IPath path, IUser user)
      throws ServletException, IOException {
    IVResource libraryURL = user.getResource(path.toString());
    if (libraryURL != null) {
      CacheHeaders caching = libraryURL.readOnly() ? CacheHeaders.CACHE : CacheHeaders.NO_CACHE;
      writePage(req, resp, libraryURL, caching);
      return true;
    }
    return false;
  }
View Full Code Here

Examples of org.springframework.transaction.annotation.Transactional.readOnly()

     * @return referred stored bean.
     * @throws UnresolvedReferenceException in case of failures, read-only methods and unresolved bean.
     */
    public T resolveBeanReference(final Method method, final Object... args) throws UnresolvedReferenceException {
        final Transactional transactional = method.getAnnotation(Transactional.class);
        if (transactional != null && transactional.readOnly()) {
            throw new UnresolvedReferenceException();
        }
        return resolveReference(method, args);
    }

View Full Code Here

Examples of org.springframework.transaction.annotation.Transactional.readOnly()

            throw new IllegalStateException("Spring annotation-driven should have instrumented this class as @Transactional");
        }
        if (!"NEVER".equals(tx.propagation().name())) {
            throw new IllegalStateException("Should be NEVER propagation");
        }
        if (!tx.readOnly()) {
            throw new IllegalStateException("Should be read only");
        }

        if (!title.contains("in Action")) {
            throw new IllegalArgumentException("Not a book title we like");
View Full Code Here

Examples of org.springframework.transaction.annotation.Transactional.readOnly()

            throw new IllegalStateException("Spring annotation-driven should have instrumented this class as @Transactional");
        }
        if (!"NEVER".equals(tx.propagation().name())) {
            throw new IllegalStateException("Should be NEVER propagation");
        }
        if (!tx.readOnly()) {
            throw new IllegalStateException("Should be read only");
        }

        if (!title.contains("in Action")) {
            throw new IllegalArgumentException("Not a book title we like");
View Full Code Here

Examples of org.springframework.transaction.annotation.Transactional.readOnly()

            throw new IllegalStateException("Spring annotation-driven should have instrumented this class as @Transactional");
        }
        if (!"NEVER".equals(tx.propagation().name())) {
            throw new IllegalStateException("Should be NEVER propagation");
        }
        if (!tx.readOnly()) {
            throw new IllegalStateException("Should be read only");
        }

        if (!title.contains("in Action")) {
            throw new IllegalArgumentException("Not a book title we like");
View Full Code Here

Examples of org.springframework.transaction.annotation.Transactional.readOnly()

      if (serviceMethod.isAnnotationPresent(Transactional.class)) {
        Transactional trx = serviceMethod.getAnnotation(Transactional.class);
        Preconditions.checkNotNull(transactionManager,"The method is transactionnal, but no transaction manager was detected!");
        TransactionTemplate trxTpl = new TransactionTemplate(transactionManager);
        trxTpl.setIsolationLevel(trx.isolation().value());
        trxTpl.setReadOnly(trx.readOnly());
        trxTpl.setPropagationBehavior(trx.propagation().value());
        trxTpl.setTimeout(trx.timeout());
        trxTpl.execute(new TransactionCallbackWithoutResult() {
          @Override
          protected void doInTransactionWithoutResult(TransactionStatus status) {
View Full Code Here

Examples of org.springframework.transaction.annotation.Transactional.readOnly()

     * @return referred stored bean.
     * @throws UnresolvedReferenceException in case of failures, read-only methods and unresolved bean.
     */
    public T resolveBeanReference(final Method method, final Object... args) throws UnresolvedReferenceException {
        final Transactional transactional = method.getAnnotation(Transactional.class);
        if (transactional != null && transactional.readOnly()) {
            throw new UnresolvedReferenceException();
        }
        return resolveReference(method, args);
    }

View Full Code Here

Examples of org.teiid.deployers.ExtendedPropertyMetadata.readOnly()

    Assert.assertEquals("Is Immutable", metadata.display());
    Assert.assertEquals("", metadata.description());
    Assert.assertEquals(true, metadata.advanced());
    Assert.assertEquals(true, metadata.required());
    Assert.assertEquals(false, metadata.masked());
    Assert.assertEquals(true , metadata.readOnly());   
    Assert.assertEquals(allowed , Arrays.asList(metadata.allowed()));
 
}
View Full Code Here

Examples of org.teiid.deployers.ExtendedPropertyMetadata.readOnly()

    Assert.assertEquals("some-name", metadata.display());
    Assert.assertEquals(null, metadata.description());
    Assert.assertEquals(false, metadata.advanced());
    Assert.assertEquals(false, metadata.required());
    Assert.assertEquals(false, metadata.masked());
    Assert.assertEquals(true , metadata.readOnly());
  }
 
  @Test
  public void testFormatted() {
    ArrayList<String> allowed =  new ArrayList<String>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.