| java.lang.Object org.geotools.metadata.sql.MetadataEntity
MetadataEntity | final class MetadataEntity implements InvocationHandler(Code) | | A metadata entity which implements (indirectly) metadata
interfaces like
org.opengis.metadata.MetaData ,
org.opengis.metadata.citation.Citation , etc.
Any call to a method in a metadata interface is redirected toward the
MetadataEntity.invoke method. This method use reflection in order to find
the caller's method and class name. The class name is translated into
a table name, and the method name is translated into a column name.
Then the information is fetch in the underlying metadata database.
version: $Id: MetadataEntity.java 20874 2006-08-07 10:00:01Z jgarnett $ author: Touraïvane author: Martin Desruisseaux since: 2.1 |
Constructor Summary | |
public | MetadataEntity(String identifier, MetadataSource source) Creates a new metadata entity.
Parameters: identifier - The identifier used in order to locate the record forthis metadata entity in the database. |
MetadataEntity | public MetadataEntity(String identifier, MetadataSource source)(Code) | | Creates a new metadata entity.
Parameters: identifier - The identifier used in order to locate the record forthis metadata entity in the database. This is usuallythe primary key in the table which contains this entity. Parameters: source - The connection to the table which contains this entity. |
invoke | public Object invoke(Object proxy, Method method, Object[] args)(Code) | | Invoked when any method from a metadata interface is invoked.
Parameters: proxy - The object on which the method is invoked. Parameters: method - The method invoked. Parameters: args - The argument given to the method. |
|
|