EDMDataFactory
edm.edom3
Interface EDMDataFactory
public interface EDMDataFactory
The EDMFactory supplies methods for creating EDOM3 objects, and is the only place you can do so. To create your own subclasses of EDOM3 object you will need to override implementation of this class as well. We do notadvise you to such operations unless you are certain of what you are doing.
Method Summary
All Methods Instance Methods Abstract Methods Deprecated MethodsÂ
Modifier and Type Method and Description EDMAggregate
getAggregate(long id)
Get an aggregate wrapperEDMDefinedType
getDefinedType(EDMExpressSchema schema, java.lang.String name)
Get a wrapper for a defined typeEDMDefinedType
getDefinedType(EDMModel model, java.lang.String name)
Get a wrapper for a defined typeEDMDefinedType
getDefinedType(long id)
Get a wrapper for a defined typeEDMGroup
getEDMGroup(long instanceId)
Get an EDMGroup wrapperEDMGroup
getEDMGroup(java.lang.String name)
Get an EDMGroup wrapperEDMUser
getEDMUser(long instanceId)
Get an EDMUser wrapperEDMUser
getEDMUser(java.lang.String name)
Get an EDMUser wrapperEDMUserOrGroup
getEDMUserOrGroup(long id)
Get an EDMUserOrGroup wrapper based on instance idEDMExpressSchema
getExpressSchema(java.lang.String schemaName)
Get an EXPRESS schema wrapperEDMFormalParameter
getFormalParameter(java.lang.String name, int type)
Get a parameter wrapperEDMFileMapping
getInputFileMapping(java.io.File file, java.lang.String remoteName)
Get a wrapper for a local file bound to input to EXPRESS-X execution.EDMLocalStream
getInputStream()
Deprecated.Â
the stream interface is not implemented yet. Currently the stream wrapping is only wrapping local files. Use getLocalFile instead.EDMInstance
getInstance(long id)
Get an instance wrapperEDMLocalStream
getLocalFile(java.io.File file)
Get a wrapper for a local fileEDMApplicationSchema
getMapSchema(java.lang.String schemaName)
Get an EXPRESS-X schema map wrapperEDMModel
getModel(long modelId)
Get a model wrapperEDMModel
getModel(java.lang.String repository, java.lang.String model)
Get a model wrapperEDMFileMapping
getOutputFileMapping(java.io.File file, java.lang.String remoteName)
Get a wrapper for a local file bound to output from EXPRESS-X execution.EDMQueryResult
getQueryResult()
Get an empty QueryResult wrapperEDMApplicationSchema
getQuerySchema(java.lang.String name, EDMExpressSchema forSchema)
Get a query schemaEDMRepository
getRepository(long repositoryId)
Get a repository wrapperEDMRepository
getRepository(java.lang.String repository)
Get a repository wrapperEDMRow
getRow(long id)
Get an EDMRow wrapperEDMApplicationSchema
getRuleSchema(java.lang.String name, EDMExpressSchema forSchema)
Get a query schemaEDMSelect
getSelect()
Get an empty SELECT wrapperEDMInstance
getSystemShadow(EDMInstance ee)
Get the shadow instance in system data model for a model,schema,...EDMRow
getXmlConfiguration(EDMExpressSchema schema, java.lang.String name)
Create a new XmlConfiguration in this database.EDMGroup[]
listEDMGroups()
Get all EDM groupsEDMUser[]
listEDMUsers()
Get all EDM groupsEDMExpressSchema[]
listExpressSchemata()
List all EXPRESS schemas in databaseEDMApplicationSchema[]
listMapSchemata()
Return all the Schemas Maps in the database.EDMModel[]
listModels(java.lang.String repositoryName)
List models in the databaseEDMRepository[]
listRepositories()
List all repositories in the databaseEDMRow[]
listXmlConfigurations(EDMExpressSchema schema, java.lang.String filter)
Returns all or some XmlConfigurations in this EDM Database.
Method Detail
getInputStream
EDMLocalStream getInputStream() throws EdmiException
Deprecated. the stream interface is not implemented yet. Currently the stream wrapping is only wrapping local files. Use getLocalFile instead.
Get a wrapper for piping from EDM to input streamReturns:a new wrapperThrows:EdmiException - if factory cannot be retrieved
getDefinedType
EDMDefinedType getDefinedType(EDMExpressSchema schema, java.lang.String name) throws EdmiException
Get a wrapper for a defined typeParameters:schema - the schema where the defined type is definedname - name of defined typeReturns:a new wrapperThrows:EdmiException - if defined type cannot be created
getDefinedType
EDMDefinedType getDefinedType(long id) throws EdmiException
Get a wrapper for a defined typeParameters:id - instance ID for defined type (meta-data)Returns:a new wrapperThrows:EdmiException - if defined type cannot be created
getDefinedType
EDMDefinedType getDefinedType(EDMModel model, java.lang.String name) throws EdmiException
Get a wrapper for a defined typeParameters:model - model in which the defined type can be used (defined in underlying schema)name - name of defined typeReturns:a new wrapperThrows:EdmiException - if defined type cannot be created
getLocalFile
EDMLocalStream getLocalFile(java.io.File file) throws EdmiException
Get a wrapper for a local fileParameters:file - Local file to useReturns:a new wrapperThrows:EdmiException - if factory cannot be retrieved
getInputFileMapping
EDMFileMapping getInputFileMapping(java.io.File file, java.lang.String remoteName) throws EdmiException
Get a wrapper for a local file bound to input to EXPRESS-X execution.Parameters:file - Local file to useremoteName - logical filename used in the EXPRESS-X schema (rule, query, map...)Returns:a new wrapperThrows:EdmiException - if factory cannot be retrieved
getOutputFileMapping
EDMFileMapping getOutputFileMapping(java.io.File file, java.lang.String remoteName) throws EdmiException
Get a wrapper for a local file bound to output from EXPRESS-X execution.Parameters:file - Local file to useremoteName - logical filename used in the EXPRESS-X schema (rule, query, map...)Returns:a new wrapperThrows:EdmiException - if factory cannot be retrieved
getFormalParameter
EDMFormalParameter getFormalParameter(java.lang.String name, int type) throws EdmiException
Get a parameter wrapperParameters:name - name for the parametertype - type for the parameterReturns:a new wrapperThrows:EdmiException - if factory cannot be retrieved
getModel
EDMModel getModel(java.lang.String repository, java.lang.String model) throws EdmiException
Get a model wrapperParameters:repository - Repository namemodel - Model nameReturns:a new wrapperThrows:EdmiException - if factory cannot be retrieved
getModel
EDMModel getModel(long modelId) throws EdmiException
Get a model wrapperParameters:modelId - instance idReturns:a new wrapperThrows:EdmiException - if factory cannot be retrieved
listModels
EDMModel[] listModels(java.lang.String repositoryName) throws EdmiException
List models in the databaseParameters:repositoryName - reposityory name filterReturns:array of EDMModelsThrows:EdmiException - if the method fails
getRepository
EDMRepository getRepository(java.lang.String repository) throws EdmiException
Get a repository wrapperParameters:repository - Repository nameReturns:a new wrapperThrows:EdmiException - if factory cannot be retrieved
getRepository
EDMRepository getRepository(long repositoryId) throws EdmiException
Get a repository wrapperParameters:repositoryId - instance idReturns:a new wrapperThrows:EdmiException - if the method fails
listRepositories
EDMRepository[]Â listRepositories() throws EdmiException
List all repositories in the databaseReturns:array of SdaiRepositoriesThrows:EdmiException - if the method fails
getExpressSchema
EDMExpressSchema getExpressSchema(java.lang.String schemaName) throws EdmiException
Get an EXPRESS schema wrapperParameters:schemaName - name for possible non-existant schemaReturns:a schema wrapperThrows:EdmiException - if the method fails
listExpressSchemata
EDMExpressSchema[]Â listExpressSchemata() throws EdmiException
List all EXPRESS schemas in databaseReturns:array of EDM schemataThrows:EdmiException - if the method fails
getMapSchema
EDMApplicationSchema getMapSchema(java.lang.String schemaName) throws EdmiException
Get an EXPRESS-X schema map wrapperParameters:schemaName - name for possible non-existant schemaReturns:a schema wrapperThrows:EdmiException - if the method fails
listMapSchemata
EDMApplicationSchema[]Â listMapSchemata() throws EdmiException
Return all the Schemas Maps in the database.Returns:An interface into a list of EDMSchemaMapsThrows:EdmiException - If the method fails, or if the name are unset.
getQuerySchema
EDMApplicationSchema getQuerySchema(java.lang.String name, EDMExpressSchema forSchema) throws EdmiException
Get a query schemaParameters:name - name of the query schemaforSchema - Express schema for the query schema (query schema name is NOT unique)Returns:a query schema objectThrows:EdmiException - if the method fails
getRuleSchema
EDMApplicationSchema getRuleSchema(java.lang.String name, EDMExpressSchema forSchema) throws EdmiException
Get a query schemaParameters:name - name of the query schemaforSchema - Express schema for the query schema (query schema name is NOT unique)Returns:a query schema objectThrows:EdmiException - if the method fails
getAggregate
EDMAggregate getAggregate(long id) throws EdmiException
Get an aggregate wrapperParameters:id - aggregate idReturns:aggregate wrapperThrows:EdmiException - if the method fails
getInstance
EDMInstance getInstance(long id) throws EdmiException
Get an instance wrapperParameters:id - instance idReturns:instance wrapperThrows:EdmiException - if the method fails
getRow
EDMRow getRow(long id) throws EdmiException
Get an EDMRow wrapperParameters:id - instance id, 0 if irrelevantReturns:instance wrapperThrows:EdmiException - if the method fails
getSelect
EDMSelect getSelect() throws EdmiException
Get an empty SELECT wrapperReturns:a SELECT wrapperThrows:EdmiException - if the method fails
getQueryResult
EDMQueryResult getQueryResult() throws EdmiException
Get an empty QueryResult wrapperReturns:a QueryResult wrapperThrows:EdmiException - if the method fails
getEDMGroup
EDMGroup getEDMGroup(java.lang.String name) throws EdmiException
Get an EDMGroup wrapperParameters:name - user nameReturns:EDMGroupt objectThrows:EdmiException - if the method fails
getEDMUser
EDMUser getEDMUser(java.lang.String name) throws EdmiException
Get an EDMUser wrapperParameters:name - user nameReturns:EDMUser objectThrows:EdmiException - if the method fails
getEDMUser
EDMUser getEDMUser(long instanceId) throws EdmiException
Get an EDMUser wrapperParameters:instanceId - instanceIdReturns:EDMUser objectThrows:EdmiException - if the method fails
getEDMGroup
EDMGroup getEDMGroup(long instanceId) throws EdmiException
Get an EDMGroup wrapperParameters:instanceId - instanceIdReturns:EDMGroupt objectThrows:EdmiException - if the method fails
getEDMUserOrGroup
EDMUserOrGroup getEDMUserOrGroup(long id) throws EdmiException
Get an EDMUserOrGroup wrapper based on instance idParameters:id - instanceIdReturns:EDMUserOrGroup objectThrows:EdmiException - if the method fails
listEDMGroups
EDMGroup[]Â listEDMGroups() throws EdmiException
Get all EDM groupsReturns:list of group objects, empty list if none foundThrows:EdmiException - if the method fails
listEDMUsers
EDMUser[]Â listEDMUsers() throws EdmiException
Get all EDM groupsReturns:list of group objects, empty list if none foundThrows:EdmiException - if the method fails
getSystemShadow
EDMInstance getSystemShadow(EDMInstance ee) throws EdmiException
Get the shadow instance in system data model for a model,schema,...Parameters:ee - instanmce to get shadow forReturns:the system instanceThrows:EdmiException - if the method fails
getXmlConfiguration
EDMRow getXmlConfiguration(EDMExpressSchema schema, java.lang.String name) throws EdmiException
Create a new XmlConfiguration in this database.Parameters:schema - Schema to assign the XML cofiguration to.name - name of the new configurationReturns:A array of EDMRuleSchema.Throws:EdmiException - If the method fails.
listXmlConfigurations
EDMRow[] listXmlConfigurations(EDMExpressSchema schema, java.lang.String filter) throws EdmiException
Returns all or some XmlConfigurations in this EDM Database.Parameters:schema - Schema to search in, if null search in all schematafilter - optional name mask, wildcards = *?.Returns:A array of EDMRuleSchema.Throws:EdmiException - If the method fails.