|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axway.grapes.server.db.ModelMapper
public class ModelMapper
Model Mapper
Model mapper maps the client/server model and the database model.
| Constructor Summary | |
|---|---|
ModelMapper(RepositoryHandler repoHandler)
|
|
| Method Summary | |
|---|---|
Artifact |
getArtifact(DbArtifact dbArtifact)
Transform an artifact from database model to client/server model |
DbArtifact |
getDbArtifact(Artifact artifact)
Transform an artifact from client/server model to database model WARNING: This transformation does not take licenses into account!!! |
DbLicense |
getDbLicense(License license)
Transform a license from client/server model to database model |
DbModule |
getDbModule(Module module)
Transform a module from client/server model to database model |
DbOrganization |
getDbOrganization(Organization organization)
Transform an organization from client/server model to database model |
Dependency |
getDependency(DbDependency dbDependency,
String sourceName,
String sourceVersion)
Transform a dependency from database model to client/server model |
License |
getLicense(DbLicense dbLicense)
Transform a license from database model to client/server model |
Module |
getModule(DbModule dbModule)
Transform a module from database model to client/server model |
Organization |
getOrganization(DbOrganization dbOrganization)
Transform an organization from database model to client/server model |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelMapper(RepositoryHandler repoHandler)
| Method Detail |
|---|
public DbOrganization getDbOrganization(Organization organization)
organization - Organization
public Organization getOrganization(DbOrganization dbOrganization)
dbOrganization - DbOrganization
public DbLicense getDbLicense(License license)
license - the license to transform
public License getLicense(DbLicense dbLicense)
dbLicense - DbLicense the license to transform
public DbArtifact getDbArtifact(Artifact artifact)
artifact - the artifact to transform
public Artifact getArtifact(DbArtifact dbArtifact)
dbArtifact - the artifact to transform
public DbModule getDbModule(Module module)
module - the module to transform
public Module getModule(DbModule dbModule)
dbModule - DbModule
public Dependency getDependency(DbDependency dbDependency,
String sourceName,
String sourceVersion)
dbDependency - DbDependency
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||