Package org.jboss.metadata.spi.retrieval

Examples of org.jboss.metadata.spi.retrieval.ValidTime


    * @param key the scope
    */
   public AbstractMetaDataLoader(ScopeKey key)
   {
      this.scopeKey = key;
      validTime = new ValidTime();
   }
View Full Code Here


      return scopeKey;
   }

   public ValidTime getValidTime()
   {
      ValidTime result = null;
      long resultLong = Long.MIN_VALUE;

      if (parent != null)
      {
         result = parent.getValidTime();
         resultLong = result.getValidTime();
      }

      for (MetaDataRetrieval retrieval : retrievals)
      {
         ValidTime temp = retrieval.getValidTime();
         long tempLong = temp.getValidTime();
         if (tempLong > resultLong || result == null)
         {
            result = temp;
            resultLong = tempLong;
         }
View Full Code Here

      super(name);
   }

   public void testValidTime() throws Exception
   {
      ValidTime time1 = new ValidTime();
      ValidTime time2 = new ValidTime();
      assertTrue(time2.getValidTime() >= time1.getValidTime());
     
      time1.invalidate();
      assertTrue(time1.getValidTime() > time2.getValidTime());

      time2.invalidate();
      assertTrue(time2.getValidTime() > time1.getValidTime());

      ValidTime time3 = new ValidTime();
      assertTrue(time3.getValidTime() >= time1.getValidTime());
      assertTrue(time3.getValidTime() >= time2.getValidTime());
   }
View Full Code Here

   }

   public ValidTime getValidTime()
   {
      lastMethod = "getValidTime";
      return new ValidTime();
   }
View Full Code Here

      return scopeKey;
   }

   public ValidTime getValidTime()
   {
      ValidTime result = null;
      long resultLong = Long.MIN_VALUE;

      if (parent != null)
      {
         result = parent.getValidTime();
         resultLong = result.getValidTime();
      }

      for (MetaDataRetrieval retrieval : retrievals)
      {
         ValidTime temp = retrieval.getValidTime();
         long tempLong = temp.getValidTime();
         if (tempLong > resultLong || result == null)
         {
            result = temp;
            resultLong = tempLong;
         }
View Full Code Here

    * @param key the scope
    */
   public AbstractMetaDataLoader(ScopeKey key)
   {
      this.scopeKey = key;
      validTime = new ValidTime();
   }
View Full Code Here

    * @param key the scope
    */
   public AbstractMetaDataLoader(ScopeKey key)
   {
      this.scopeKey = key;
      validTime = new ValidTime();
   }
View Full Code Here

      return scopeKey;
   }

   public ValidTime getValidTime()
   {
      ValidTime result = null;
      long resultLong = Long.MIN_VALUE;

      if (parent != null)
      {
         result = parent.getValidTime();
         resultLong = result.getValidTime();
      }

      for (MetaDataRetrieval retrieval : retrievals)
      {
         ValidTime temp = retrieval.getValidTime();
         long tempLong = temp.getValidTime();
         if (tempLong > resultLong || result == null)
         {
            result = temp;
            resultLong = tempLong;
         }
View Full Code Here

      return scopeKey;
   }

   public ValidTime getValidTime()
   {
      ValidTime result = null;
      long resultLong = Long.MIN_VALUE;

      if (parent != null)
      {
         result = parent.getValidTime();
         resultLong = result.getValidTime();
      }
     
      for (int i = 0; i < retrievals.size(); ++i)
      {
         MetaDataRetrieval retrieval = retrievals.get(i);
         ValidTime temp = retrieval.getValidTime();
         long tempLong = temp.getValidTime();
         if (tempLong > resultLong || result == null)
         {
            result = temp;
            resultLong = tempLong;
         }
View Full Code Here

/*     */   }
/*     */
/*     */   public AbstractMetaDataLoader(ScopeKey key)
/*     */   {
/*  72 */     this.scopeKey = key;
/*  73 */     this.validTime = new ValidTime();
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.spi.retrieval.ValidTime

Copyright © 2018 www.massapicom. 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.