Source code: com/xpn/xwiki/objects/meta/DBListMetaClass.java
1 /**
2 * ===================================================================
3 *
4 * Copyright (c) 2003,2004 Ludovic Dubost, All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details, published at
15 * http://www.gnu.org/copyleft/gpl.html or in gpl.txt in the
16 * root folder of this distribution.
17
18 * Created by
19 * User: Ludovic Dubost
20 * Date: 5 févr. 2004
21 * Time: 16:34:41
22 */
23 package com.xpn.xwiki.objects.meta;
24
25 import com.xpn.xwiki.objects.BaseCollection;
26 import com.xpn.xwiki.objects.classes.DBListClass;
27 import com.xpn.xwiki.objects.classes.TextAreaClass;
28
29 public class DBListMetaClass extends ListMetaClass {
30
31 public DBListMetaClass() {
32 super();
33 setPrettyName("Database List Class");
34 setName(DBListClass.class.getName());
35
36 TextAreaClass sql_class = new TextAreaClass(this);
37 sql_class.setName("sql");
38 sql_class.setPrettyName("Hibernate Query");
39 sql_class.setSize(80);
40 sql_class.setRows(5);
41 safeput("sql", sql_class);
42 }
43
44 public BaseCollection newObject() {
45 return new DBListClass();
46 }
47 }
48