KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > sqls > StringColumn


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

17 package org.apache.ws.jaxme.sqls;
18
19
20 /** <p>Interface of a column with datatype {@link Column.Type#CHAR}
21  * or {@link Column.Type#VARCHAR}.</p>
22  *
23  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
24  */

25 public interface StringColumn extends Column {
26   /** <p>Returns whether the column has fixed or variable length.</p>
27    */

28   public boolean hasFixedLength();
29
30   /** <p>If the column has fixed length: Sets the columns length.
31    * Otherwise sets the columns maximum length.</p>
32    */

33   public void setLength(Long JavaDoc pLength);
34
35   /** <p>Shortcut for <code>setLength(new Integer(pLength))</code>.</p>
36    */

37   public void setLength(long pLength);
38
39   /** <p>If the column has fixed length: Returns the columns length.
40    * Otherwise returns the columns maximum length.</p>
41    */

42   public Long JavaDoc getLength();
43 }
44
Popular Tags