01: package org.mandarax.jdbc.server;
02:
03: /*
04: * Copyright (C) 1999-2004 <a href="mailto:mandarax@jbdietrich.com">Jens Dietrich</a>
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2 of the License, or (at your option) any later version.
10: *
11: * This library 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 GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: */
20: import java.util.regex.Pattern;
21: import org.mandarax.kernel.Derivation;
22: import org.mandarax.util.regex.WildcardMatcher;
23:
24: /**
25: * In this interface, pseudo columns are defined. These columns can be used to obtain
26: * information from the (jdbc) result set.
27: * @author <A HREF="mailto:mandarax@jbdietrich.com">Jens Dietrich</A>
28: * @version 3.3.2 <29 December 2004>
29: * @since 3.0
30: */
31:
32: public interface PseudoColumns {
33: public static final String DERIVATION = "mandarax.pseudocols.derivation";
34: // pattern - can be used with the utility class WildcardMatcher to check whether
35: // a column name is the name of a pseudo column
36: public static final String PSEUDO_COLUMN_PATTERN_DEF = "mandarax.pseudocols.*";
37: // the associated (compiled) pattern
38: public static final Pattern PSEUDO_COLUMN_PATTERN = WildcardMatcher.FILE_INSTANCE
39: .getPattern(PSEUDO_COLUMN_PATTERN_DEF);
40: // an array containing all pseudo column names
41: public static final String[] PSEUDO_COLUMNS = { DERIVATION };
42: // the pseudo column types
43: public static final Class[] PSEUDO_COLUMN_TYPES = { Derivation.class };
44:
45: }
|