public interface ILcdDatabaseFactory
Modifier and Type | Method and Description |
---|---|
ILcdDatabaseDecoder |
createDatabaseDecoder(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor)
Creates a proper
ILcdDatabaseDecoder for the model. |
ILcdDatabaseEncoder |
createDatabaseEncoder(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor)
Creates a proper
ILcdDatabaseEncoder for the model. |
ILcdDatabaseModelDescriptor |
createDatabaseModelDescriptor(String aPrefix,
Properties aProperties)
Creates a
ILcdDatabaseModelDescriptor |
ILcdModelReference |
createModelReference(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor)
Creates a new
ILcdModelReference object, based on the
ILcdDatabaseModelDescriptor . |
void |
createTable(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor)
Connects to the database and creates a new empty spatial table,
based on the information in the given
ILcdDatabaseModelDescriptor . |
void |
decodeInfo(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor)
Opens the given
ILcdDatabaseModelDescriptor by connecting to the Database
database and retrieving necessary information on the spatial table. |
ILcdDatabaseModelDescriptor createDatabaseModelDescriptor(String aPrefix, Properties aProperties)
ILcdDatabaseModelDescriptor based on the given Properties.
ILcdDatabaseDecoder createDatabaseDecoder(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor)
ILcdDatabaseDecoder
for the model.aDatabaseModelDescriptor
- the ILcdDatabaseModelDescriptor
of the modelILcdDatabaseEncoder createDatabaseEncoder(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor)
ILcdDatabaseEncoder
for the model.aDatabaseModelDescriptor
- the ILcdDatabaseModelDescriptor
of the modelILcdModelReference createModelReference(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor)
ILcdModelReference
object, based on the
ILcdDatabaseModelDescriptor
.void decodeInfo(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) throws IOException
ILcdDatabaseModelDescriptor
by connecting to the Database
database and retrieving necessary information on the spatial table.aDatabaseModelDescriptor
- the ILcdDatabaseModelDescriptor
with a valid driver, URL, connection properties, table name, and
column name.IOException
void createTable(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) throws IOException, IllegalArgumentException
ILcdDatabaseModelDescriptor
.aDatabaseModelDescriptor
- a fully specified ILcdDatabaseModelDescriptor
.IOException
- if a database access error occurs. This includes
the case where the database table already exists.IllegalArgumentException
- if aDatabaseModelDescriptor
contains insufficient information to create a new database.