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 properILcdDatabaseDecoderfor the model.createDatabaseEncoder(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) Creates a properILcdDatabaseEncoderfor the model.createDatabaseModelDescriptor(String aPrefix, Properties aProperties) Creates aILcdDatabaseModelDescriptorbased on the given Properties.createModelReference(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) Creates a newILcdModelReferenceobject, based on theILcdDatabaseModelDescriptor.voidcreateTable(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) Connects to the database and creates a new empty spatial table, based on the information in the givenILcdDatabaseModelDescriptor.voiddecodeInfo(ILcdDatabaseModelDescriptor aDatabaseModelDescriptor) Opens the givenILcdDatabaseModelDescriptorby connecting to the Database database and retrieving necessary information on the spatial table.
-
Method Details
-
createDatabaseModelDescriptor
Creates aILcdDatabaseModelDescriptorbased on the given Properties. -
createDatabaseDecoder
Creates a properILcdDatabaseDecoderfor the model.- Parameters:
aDatabaseModelDescriptor- theILcdDatabaseModelDescriptorof the model
-
createDatabaseEncoder
Creates a properILcdDatabaseEncoderfor the model.- Parameters:
aDatabaseModelDescriptor- theILcdDatabaseModelDescriptorof the model
-
createModelReference
Creates a newILcdModelReferenceobject, based on theILcdDatabaseModelDescriptor. -
decodeInfo
Opens the givenILcdDatabaseModelDescriptorby connecting to the Database database and retrieving necessary information on the spatial table.- Parameters:
aDatabaseModelDescriptor- theILcdDatabaseModelDescriptorwith 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.
-