KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > vlib > ejb > SortColumn


1 // Copyright 2004 The Apache Software Foundation
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15 package org.apache.tapestry.vlib.ejb;
16
17 import org.apache.commons.lang.enum.Enum;
18
19 /**
20  * Represents the different columns which may be sorted.
21  *
22  * @author Howard Lewis Ship
23  * @version $Id: SortColumn.java,v 1.5 2004/02/19 17:37:39 hlship Exp $
24  * @since 3.0
25  *
26  **/

27
28 public class SortColumn extends Enum
29 {
30     private static final long serialVersionUID = -9111154890216180024L;
31     
32     /**
33      * Sort by book title.
34      *
35      **/

36     
37     public static final SortColumn TITLE = new SortColumn("TITLE");
38     
39     /**
40      * Sort by author name.
41      *
42      **/

43     
44     public static final SortColumn AUTHOR = new SortColumn("AUTHOR");
45
46     /**
47      * Sort by publisher name.
48      *
49      **/

50     
51     public static final SortColumn PUBLISHER = new SortColumn("PUBLISHER");
52     
53     /**
54      * Sort by holder name (last name, then first). Not applicable
55      * to all queries.
56      *
57      **/

58     
59     public static final SortColumn HOLDER = new SortColumn("HOLDER");
60
61     /**
62      * Sort by book owner (last name, then first). Not applicable
63      * to all queries.
64      *
65      **/

66     
67     public static final SortColumn OWNER = new SortColumn("OWNER");
68     
69     private SortColumn(String name)
70     {
71         super(name);
72     }
73
74 }
75
Popular Tags