
com.venky.swf.db.model.application.ApplicationUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swf-db Show documentation
Show all versions of swf-db Show documentation
Succinct Web Framework - Db
The newest version!
package com.venky.swf.db.model.application;
import com.venky.swf.db.model.reflection.ModelReflector;
import com.venky.swf.sql.Expression;
import com.venky.swf.sql.Operator;
import com.venky.swf.sql.Select;
import java.util.List;
public class ApplicationUtil {
public static Application find(String appId){
ModelReflector ref = ModelReflector.instance(Application.class);
List applications = new Select().from(Application.class).where(new Expression(ref.getPool(),"APP_ID", Operator.EQ, appId)).execute();
if (applications.size() != 1){
return null;
}
return applications.get(0);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy