public interface IDBSchema
| Modifier and Type | Method and Description |
|---|---|
<TEntity extends IEntity> |
createEntitySchema(Class<TEntity> aType)
create necessary structures inside DB for specified entity type.
|
<TEntity extends IEntity> |
removeEntitySchema(Class<TEntity> aType)
remove all data within DB back end related to the specified entity.
|
<TEntity extends IEntity> void createEntitySchema(Class<TEntity> aType) throws Exception
aType - [IN]
describe the entity type.Exception - is creating the schema was not successfully.<TEntity extends IEntity> void removeEntitySchema(Class<TEntity> aType) throws Exception
aType - [IN]
describe the entity type.Exception - if operation failed and entity data couldn't be removed.
Note It throws NO exception in case entity is unknown within these DB.Copyright © 2016 as-development.net. All rights reserved.