Coverage Report - org.kuali.rice.kew.docsearch.SearchableAttributeValue
 
Classes in this File Line Coverage Branch Coverage Complexity
SearchableAttributeValue
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kew.docsearch;
 17  
 
 18  
 import java.sql.ResultSet;
 19  
 import java.sql.SQLException;
 20  
 import java.util.Map;
 21  
 
 22  
 import org.kuali.rice.kew.api.document.attribute.DocumentAttribute;
 23  
 import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue;
 24  
 
 25  
 
 26  
 /**
 27  
  * Model bean mapped to ojb that holds a single piece of searchable data for a document.
 28  
  *
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  *
 31  
  */
 32  
 public interface SearchableAttributeValue {
 33  
 
 34  
         public String getAttributeDataType();
 35  
 
 36  
         public String getAttributeTableName();
 37  
 
 38  
         public boolean allowsWildcards();
 39  
 
 40  
         public boolean allowsCaseInsensitivity();
 41  
 
 42  
         public boolean allowsRangeSearches();
 43  
 
 44  
     public boolean isPassesDefaultValidation(String valueEntered);
 45  
 
 46  
     public Boolean isRangeValid(String lowerValue, String upperValue);
 47  
 
 48  
     public void setupAttributeValue(String value);
 49  
 
 50  
     public void setupAttributeValue(ResultSet resultSet, String columnName) throws SQLException;
 51  
 
 52  
     public String getSearchableAttributeDisplayValue();
 53  
 
 54  
         public String getOjbConcreteClass();
 55  
 
 56  
     public void setOjbConcreteClass(String ojbConcreteClass);
 57  
 
 58  
     public DocumentRouteHeaderValue getRouteHeader();
 59  
 
 60  
     public void setRouteHeader(DocumentRouteHeaderValue routeHeader);
 61  
 
 62  
     public String getDocumentId();
 63  
 
 64  
     public void setDocumentId(String documentId);
 65  
 
 66  
     public String getSearchableAttributeKey();
 67  
 
 68  
     public void setSearchableAttributeKey(String searchableAttributeKey);
 69  
 
 70  
     public String getSearchableAttributeValueId();
 71  
 
 72  
     public void setSearchableAttributeValueId(String searchableAttributeValueId);
 73  
 
 74  
     public Object getSearchableAttributeValue();
 75  
 
 76  
     public DocumentAttribute toDocumentAttribute();
 77  
 }