Package org.openqreg.bean

Examples of org.openqreg.bean.VarcontainerBean


* @return A populated VarcontainerBean
*
* @throws SQLException
*/
protected static VarcontainerBean populate(ResultSet rs) throws SQLException {
VarcontainerBean valueObject = new VarcontainerBean();
valueObject.setAutoid((Long)rs.getObject(1));
valueObject.setId((String)rs.getObject(2));
valueObject.setParentautoid((Long)rs.getObject(3));
valueObject.setParentid((String)rs.getObject(4));
valueObject.setOrdernumber((Integer)rs.getObject(5));
valueObject.setType((String)rs.getObject(6));
valueObject.setExplanation((String)rs.getObject(7));
valueObject.setPrinting((String)rs.getObject(8));
valueObject.setTscreated((java.sql.Timestamp)rs.getObject(9));
valueObject.setCreatedby((String)rs.getObject(10));
valueObject.setTsupdated((java.sql.Timestamp)rs.getObject(11));
valueObject.setUpdatedby((String)rs.getObject(12));
valueObject.setDocument((String)rs.getObject(13));
valueObject.setMetalevel((String)rs.getObject(14));
valueObject.setNodename((String)rs.getObject(15));
return valueObject;
}
View Full Code Here


* @throws SQLException
*/
public static Collection<VarcontainerBean> findAll(Connection con) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
VarcontainerBean valueObject = null;
Collection<VarcontainerBean> col = Collections.synchronizedList(new ArrayList<VarcontainerBean>());
try{
pStmt = con.prepareStatement(FIND_ALL_STATEMENT);
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
col.add(valueObject);
}
return col;
}finally{
if(null!=rs){
View Full Code Here

* @throws SQLException
*/
public static Object findByPrimaryKey(Connection con, PrimaryKey key) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
VarcontainerBean valueObject = null;
VarcontainerKey primaryKey = (VarcontainerKey) key;
try{
pStmt = con.prepareStatement(VarcontainerBeanBase.SELECT_STATEMENT);
pStmt.setObject(1, primaryKey.getAutoid());
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
}
return valueObject;
}finally{
if(null!=rs){
rs.close();
View Full Code Here

        // + vbRemove.getId());
        // // vbRemove.remove(con);
        // // removeContainer(con, currentId);
        // removeContainer(con, vbRemove);
        // }
        varBean = new VarcontainerBean();
        ((VarcontainerBean) varBean).setDocument(getDocumentName());
        // metalevel is optional
        if (null != elementNode.selectSingleNode("metalevel")) {
          ((VarcontainerBean) varBean).setMetalevel(elementNode
              .selectSingleNode("metalevel").getText());
View Full Code Here

TOP

Related Classes of org.openqreg.bean.VarcontainerBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.