Java tutorial
/** * The contents of this file may be used under the terms of the Apache License, Version 2.0 * in which case, the provisions of the Apache License Version 2.0 are applicable instead of those above. * * Copyright 2015, cloudex.io * * Licensed under the Apache 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.apache.org/licenses/LICENSE-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 io.cloudex.framework.cloud.entities; import org.apache.commons.lang3.builder.ToStringBuilder; /** * Represents a column in a Big Data table * * @author Omer Dawelbeit (omerio) * */ public class BigDataColumn { private String name; private String type; private boolean required; /** * */ public BigDataColumn() { super(); } /** * @param name - the column name * @param type - the column type */ public BigDataColumn(String name, String type) { super(); this.name = name; this.type = type; } /** * @param name - the column name * @param type - the column type * @param required - the column mode, if required or not */ public BigDataColumn(String name, String type, boolean required) { super(); this.name = name; this.type = type; this.required = required; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } /** * @return the type */ public String getType() { return type; } /** * @param type the type to set */ public void setType(String type) { this.type = type; } /** * @return the required */ public boolean isRequired() { return required; } /** * @param required the required to set */ public void setRequired(boolean required) { this.required = required; } /* (non-Javadoc) * @see java.lang.Object#toString() */ @Override public String toString() { return new ToStringBuilder(this).append("name", name).append("type", type).append("required", required) .toString(); } }