All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jk.data.dynamic.query.FieldName Maven / Gradle / Ivy

Go to download

This contains a set of API's that ease the database programming with Java, in both: JDBC and JPA Persisitnce).

There is a newer version: 7.0.0-M7
Show newest version
/*
 * Copyright 2002-2022 Dr. Jalal Kiswani. 
 * Email: [email protected]
 * Check out https://smart-api.com for more details
 * 
 * All the opensource projects of Dr. Jalal Kiswani are free for personal and academic use only, 
 * for commercial usage and support, please contact the author.
 *
 * 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 com.jk.data.dynamic.query;

// TODO: Auto-generated Javadoc
/**
 * The Class FieldName.
 */
public class FieldName implements QueryComponent {

	/** The name. */
	private String name;

	/**
	 * Instantiates a new field name.
	 *
	 * @param name the name
	 */
	public FieldName(String name) {
		this.name = name;
	}

	/**
	 * Checks if is inline.
	 *
	 * @return true, if is inline
	 */
	/* (non-Javadoc)
	 * @see com.jk.db.test.dynamic.query.QueryComponent#isInline()
	 */
	@Override
	public boolean isInline() {
		return true;
	}

	/**
	 * To query element.
	 *
	 * @return the object
	 */
	/* (non-Javadoc)
	 * @see com.jk.db.test.dynamic.query.QueryComponent#toQueryElement()
	 */
	@Override
	public Object toQueryElement() {
		return "`" + name + "`";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy