@Override public void createJoinTable( ISQLiteDBSchemaEntityCreator creator, IEntity entity1, IEntity entity2) { ISQLiteDBSchemaEntityCreator c = new SQLiteDBSchemaJoinTableCreator(mDataBase, creator, entity1, entity2); creator.addSQLiteEntityCreator(creator); }
@Override public void createEntity(IEntity entity) { if (null == mSQLiteDBSchemaEntityCreator) mSQLiteDBSchemaEntityCreator = new SQLiteDBSchemaEntityCreator(mDataBase, entity); else { if (entity instanceof JoinTableModel) { JoinTableModel jt = (JoinTableModel) entity; mSQLiteDBSchemaEntityCreator.addSQLiteEntityCreator( new SQLiteDBSchemaJoinTableCreator( mDataBase, this.mSQLiteDBSchemaEntityCreator, jt.getEntity1(), jt.getEntity2())); } else mSQLiteDBSchemaEntityCreator.addSQLiteEntityCreator( new SQLiteDBSchemaEntityCreatorDecorator( mDataBase, entity, this.mSQLiteDBSchemaEntityCreator)); } }