com.hardcode.gdbms.engine.data.metadata
Interface Metadata

All Known Implementing Classes:
DefaultMetadata, MetadataEditionSupport.ModifiedMetadata

public interface Metadata

Gets information about the DataSource


Method Summary
 int getFieldCount()
           
 java.lang.String getFieldName(int fieldId)
          Gets the name of the specified field
 int getFieldType(int fieldId)
          Gets the type of the specified field
 java.lang.String[] getPrimaryKey()
          Gets the names of the primary key fields
 java.lang.Boolean isReadOnly(int fieldId)
           
 

Method Detail

getFieldCount

int getFieldCount()
                  throws DriverException
Returns:
Number of fields
Throws:
DriverException

getFieldType

int getFieldType(int fieldId)
                 throws DriverException
Gets the type of the specified field

Parameters:
fieldId - index of the field
Returns:
Throws:
DriverException

getFieldName

java.lang.String getFieldName(int fieldId)
                              throws DriverException
Gets the name of the specified field

Parameters:
fieldId - index of the field
Returns:
String
Throws:
DriverException

getPrimaryKey

java.lang.String[] getPrimaryKey()
                                 throws DriverException
Gets the names of the primary key fields

Returns:
Throws:
DriverException

isReadOnly

java.lang.Boolean isReadOnly(int fieldId)
                             throws DriverException
Parameters:
fieldId - index of the field
Returns:
True if the field is read only, false if not and null if the underlying format does not have information about
Throws:
DriverException


Copyright © 2005-2006 . All Rights Reserved.