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

org.jboss.windup.graph.dao.JNDIReferenceDao Maven / Gradle / Ivy

The newest version!
package org.jboss.windup.graph.dao;

import org.jboss.windup.graph.model.meta.JNDIReference;

public class JNDIReferenceDao extends BaseDao {

	public JNDIReferenceDao() {
		super(JNDIReference.class);
	}
	

	public JNDIReference createJndiReference(String jndiLocation) {
		JNDIReference ref = getByUniqueProperty("jndiLocation", jndiLocation);
		
		if(ref == null) {
			ref = create();
			ref.setJndiLocation(jndiLocation);
		}
		
		return ref;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy