`
JaneLan
  • 浏览: 47814 次
  • 性别: Icon_minigender_2
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
listeners:{                                 'blur' : function(){                                      var str = Ext.get('roleListaddname').dom.value;                                      var roleName = str.indexOf('_')+1;                                      var su ...
function getComboBoxMpCsnList(){ var comboBoxCsnList= new Ext.form.ComboBox({                         fieldLabel: '状态',             mode:'local',     id:'mpCsnListState',     triggerAction:'all',     blankText:'全部',     emptyText:'全部',      triggerAction: 'all',   ...
var mpCsncm = new Ext.grid.ColumnModel([    {header: '节点名称',width: 150,sortable: false,dataIndex: 'name'}]); var mpCsnstore = new Ext.data.Store({ proxy : new Ext.data.DWRProxy({ fn : mpCsnAction.pageMpCsns }), reader : new Ext.data.JsonReader({ remoteSort : true, root : 'pageResults', ...
Properties props = new Properties(); props.load(new FileInputStream("db.properties")); //相对src的路径 String s = props.getProperty(key);
/** * 根据ID删除记录 * * @param id */ public void removeByIdForAnnotation(Serializable id) { T o = get(id); if (o.getClass().isAnnotationPresent(Undeletable.class)) { Undeletable anno = (Undeletable) o.getClass().getAnnotation( Undeletable.class); try { Method method = o.getCla ...
/** * 取得Entity的Criteria. */ public Criteria getEntityCriteria() { return getHibernateTemplate().getSessionFactory().getCurrentSession() .createCriteria(getEntityClass()); } @SuppressWarnings("unchecked") public T get(Serializable id) { T o = (T) getHibernateTemplate().get(g ...
wo de sheng huo @Service("entityDao") public class AbstractHibernateDao<T> extends HibernateDaoSupport implements EntityDao<T> { protected Log logger = LogFactory.getLog(getClass()); public static int COUNT_MODE = 1; public static int SCROLL_MODE = 2; public static int ...
Global site tag (gtag.js) - Google Analytics