*/
public static Object findByPrimaryKey(Connection con, PrimaryKey key) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
VarvarBean valueObject = null;
VarvarKey primaryKey = (VarvarKey) key;
try{
pStmt = con.prepareStatement(VarvarBeanBase.SELECT_STATEMENT);
pStmt.setObject(1, primaryKey.getAutoid());
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
}