Package com.luciad.format.database
Interface ILcdDatabaseFactory
public interface ILcdDatabaseFactory
This interface specifies a set of methods that create a basis for accessing
a spatial database.
-
Method Summary
Modifier and TypeMethodDescriptioncreateDatabaseDecoder
(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) Creates a properILcdDatabaseDecoder
for the model.createDatabaseEncoder
(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) Creates a properILcdDatabaseEncoder
for the model.createDatabaseModelDescriptor
(String aPrefix, Properties aProperties) Creates aILcdDatabaseModelDescriptor
based on the given Properties.
createModelReference
(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) Creates a newILcdModelReference
object, based on theILcdDatabaseModelDescriptor
.void
createTable
(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) Connects to the database and creates a new empty spatial table, based on the information in the givenILcdDatabaseModelDescriptor
.void
decodeInfo
(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) Opens the givenILcdDatabaseModelDescriptor
by connecting to the Database database and retrieving necessary information on the spatial table.
-
Method Details
-
createDatabaseModelDescriptor
Creates aILcdDatabaseModelDescriptor
based on the given Properties.
-
createDatabaseDecoder
Creates a properILcdDatabaseDecoder
for the model.- Parameters:
aDatabaseModelDescriptor
- theILcdDatabaseModelDescriptor
of the model
-
createDatabaseEncoder
Creates a properILcdDatabaseEncoder
for the model.- Parameters:
aDatabaseModelDescriptor
- theILcdDatabaseModelDescriptor
of the model
-
createModelReference
Creates a newILcdModelReference
object, based on theILcdDatabaseModelDescriptor
. -
decodeInfo
Opens the givenILcdDatabaseModelDescriptor
by connecting to the Database database and retrieving necessary information on the spatial table.- Parameters:
aDatabaseModelDescriptor
- theILcdDatabaseModelDescriptor
with a valid driver, URL, connection properties, table name, and column name.- Throws:
IOException
-
createTable
void createTable(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) throws IOException, IllegalArgumentException Connects to the database and creates a new empty spatial table, based on the information in the givenILcdDatabaseModelDescriptor
.- Parameters:
aDatabaseModelDescriptor
- a fully specifiedILcdDatabaseModelDescriptor
.- Throws:
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.
-