1 |
/* Struct.java -- Mapping for a SQL structured type. |
/* Struct.java -- Mapping for a SQL structured type. |
2 |
Copyright (C) 1999, 2000 Free Software Foundation, Inc. |
Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
41 |
import java.util.Map; |
import java.util.Map; |
42 |
|
|
43 |
/** |
/** |
44 |
* This interface implements the standard type mapping for a SQL |
* This interface implements the standard type mapping for a SQL |
45 |
* structured type. |
* structured type. |
46 |
* |
* |
47 |
* @author Aaron M. Renn (arenn@urbanophile.com) |
* @author Aaron M. Renn (arenn@urbanophile.com) |
48 |
*/ |
*/ |
49 |
public interface Struct |
public interface Struct |
50 |
{ |
{ |
51 |
|
/** |
52 |
/** |
* This method returns the name of the SQL structured type for this |
53 |
* This method returns the name of the SQL structured type for this |
* object. |
54 |
* object. |
* |
55 |
* |
* @return The SQL structured type name. |
56 |
* @return The SQL structured type name. |
* @exception SQLException If an error occurs. |
57 |
* |
*/ |
58 |
* @exception SQLException If an error occurs. |
public String getSQLTypeName() throws SQLException; |
59 |
*/ |
|
60 |
public abstract String |
/** |
61 |
getSQLTypeName() throws SQLException; |
* This method returns the attributes of this SQL structured type. |
62 |
|
* |
63 |
/*************************************************************************/ |
* @return The attributes of this structure type. |
64 |
|
* @exception SQLException If an error occurs. |
65 |
/** |
*/ |
66 |
* This method returns the attributes of this SQL structured type. |
public Object[] getAttributes() throws SQLException; |
67 |
* |
|
68 |
* @return The attributes of this structure type. |
/** |
69 |
* |
* This method returns the attributes of this SQL structured type. |
70 |
* @exception SQLException If an error occurs. |
* The specified map of type mappings overrides the default mappings. |
71 |
*/ |
* |
72 |
public abstract Object[] |
* @param map The map of SQL type mappings. |
73 |
getAttributes() throws SQLException; |
* @return The attributes of this structure type. |
74 |
|
* @exception SQLException If a error occurs. |
75 |
/*************************************************************************/ |
*/ |
76 |
|
public Object[] getAttributes(Map map) throws SQLException; |
77 |
/** |
} |
|
* This method returns the attributes of this SQL structured type. |
|
|
* The specified map of type mappings overrides the default mappings. |
|
|
* |
|
|
* @param map The map of SQL type mappings. |
|
|
* |
|
|
* @return The attributes of this structure type. |
|
|
* |
|
|
* @exception SQLException If a error occurs. |
|
|
*/ |
|
|
public abstract Object[] |
|
|
getAttributes(Map map) throws SQLException; |
|
|
|
|
|
} // interface Struct |
|
|
|
|