@Override
    public void Consultar() throws SQLException 
    {
        try
        {
            Conexion.GetInstancia().Conectar();
            ResultSet rs = Conexion.GetInstancia().EjecutarConsulta("SELECT Id_Bodega,Id_Sucursal,Nom_Bodega,Des_Bodega,Ext_Bodega FROM Bodega WHERE Cod_Bodega ='"+ObBodega.getCod_Bodega()+"'");
            while(rs.next())
            {
                ObBodega.setId_Bodega(rs.getInt(""));
                //ObBodega.setId_Sucursal(rs.gett);
                ObBodega.setCod_Bodega(rs.getString(""));
                ObBodega.setNom_Bodega(rs.getString(""));
                ObBodega.setDes_Bodega(rs.getString(""));
                ObBodega.setExt_Bodega(rs.getInt(""));
            }
        }
        catch(SQLException ex)
        {
            throw ex;
        }
        finally
        {
            Conexion.GetInstancia().Desconectar();
        }
    }