
net.sf.esfinge.querybuilder.utils.Line Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of querybuilder-jdbc Show documentation
Show all versions of querybuilder-jdbc Show documentation
The Esfinge QueryBuilder JDBC is the persistence framework for Esfinge QueryBuilder using JDBC.
The newest version!
package net.sf.esfinge.querybuilder.utils;
import java.util.ArrayList;
public class Line {
private ArrayList fields = new ArrayList();
public void AddLineField(LineField field) {
fields.add(field);
}
public ArrayList getAllFields() {
return this.fields;
}
public String findPrimaryKey() {
for (LineField lf : fields) {
if (lf.isPrimaryKey()) {
return lf.getFieldName();
}
}
return null;
}
public Object getValueByFieldName(String FieldName) {
if (fields != null && fields.size() > 0) {
for (LineField field : fields) {
if (field.getFieldName().toUpperCase()
.equals(FieldName.toUpperCase()))
return field.getFieldValue();
}
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy