| |
|
| java.lang.Object org.geotools.data.jdbc.PrimaryKey
PrimaryKey | public class PrimaryKey (Code) | | Primary key of a table.
author: Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org |
Inner Class :public static class Column | |
Field Summary | |
public Column[] | columns |
Constructor Summary | |
public | PrimaryKey(Column[] columns) Creates a new primary key. |
Method Summary | |
public Object[] | decode(String fid) Decodes a featureId into an array of objects which map to the columns
of the primary key.
Parameters: fid - The featureId. | public String | encode(ResultSet rs) Encodes a table row into a featureId by obtaining the primary key values
from the row.
Parameters: rs - A result set pointing to a paritcular table row. |
columns | public Column[] columns(Code) | | The columns making up the primary key
|
PrimaryKey | public PrimaryKey(Column[] columns)(Code) | | Creates a new primary key.
|
decode | public Object[] decode(String fid) throws Exception(Code) | | Decodes a featureId into an array of objects which map to the columns
of the primary key.
Parameters: fid - The featureId. An array of values which map the primary key columns making upthe featureId. throws: Exception - |
encode | public String encode(ResultSet rs) throws Exception(Code) | | Encodes a table row into a featureId by obtaining the primary key values
from the row.
Parameters: rs - A result set pointing to a paritcular table row. A featureid for the row. throws: Exception - |
|
|
|