Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2011 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 
 package org.kuali.common.impex.model;
 
Bean that contains size information of a column data type
 
 public class TypeSize {
     protected Integer size;
     protected Integer scale;
     protected Boolean scaleSet;
 
     public TypeSize() {
         this(nullnull);
     }
 
     public TypeSize(Integer size) {
         this. = size;
         this. = null;
          = false;
     }
 
     public TypeSize(Integer sizeInteger scale) {
         this. = size;
         this. = scale;
          = (this. != null);
     }
 
     @XmlAttribute
     public Integer getSize() {
         return ;
     }
 
     @XmlAttribute
     public Integer getScale() {
         return ;
     }
 
     @XmlAttribute
     public boolean isScaleSet() {
         return ;
     }
 
     public void setScale(Integer scale) {
         this. = scale;
     }
 
     public void setScaleSet(Boolean scaleSet) {
         this. = scaleSet;
     }
 
     public void setSize(Integer size) {
         this. = size;
     }
 
     @Override
     public boolean equals(Object obj) {
         if(obj == null) {
             return false;
         }
 
         if(!(obj instanceof TypeSize)) {
             return false;
         }
 
         TypeSize other = (TypeSizeobj;
 
         if (!getSize().equals(other.getSize())) {
             return false;
         }
 
         if (isScaleSet() != other.isScaleSet()) {
             return false;
         }
 
         if (isScaleSet() && !getScale().equals(other.getScale())) {
             return false;
         }
 
         return true;
     }
New to GrepCode? Check out our FAQ X