project management and data store
DESCRIPTION
TRANSCRIPT
![Page 2: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/2.jpg)
What do you have?
1. Milestones2. Project3. Technology4. Class diagram5. Use case6. Scenarios7. and…
A QUANTIFIED LEARNING TEAM
![Page 3: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/3.jpg)
What is the next step?
![Page 4: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/4.jpg)
How can we do it?
Tasks Dependencies
Risks Responsibilities
![Page 5: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/5.jpg)
How do we define a task?
To learn JQUERY
To implement the model
To implement the control part (Servlets)
To design the interface
![Page 6: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/6.jpg)
Take care!!!!
Design tasks are low time consuming…
… while implementation tasks are high time consuming
![Page 7: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/7.jpg)
Take care!!!!
Design tasks are easily addressable…
… while implementation tasks are sometimes complex to fix them
![Page 8: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/8.jpg)
What is a dependency?
Task A Task B
Design Implementation
Interface Controller
![Page 9: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/9.jpg)
What is a risk?
Take them seriously!!!!
![Page 10: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/10.jpg)
Who knows why it failed?
![Page 11: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/11.jpg)
What can we do?
![Page 13: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/13.jpg)
ServletDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
Entity person = new Entity("Person", "test");person.setUnindexedProperty("name", "TestUser"); //Unindexed properties for these properties that you will not filter on
Entity weddingPhoto = new Entity("Photo", person.getKey()); // We link this Entity to another (Foreign key)weddingPhoto.setProperty("imageUrl", "http://scm-l3.technorati.com/11/02/05/25749/marriage.jpg");weddingPhoto.setProperty("date", new Date());
Entity weddingVideo = new Entity("Video", person.getKey()); // We link this Entity to another (Foreign key)weddingVideo.setProperty("videoUrl", "http://www.criticallayouts.com/images/rsgallery/original/just-married-cans-ag1.gif");weddingVideo. setUnindexedProperty("date", new Date());
datastore.put(person);datastore.put(weddingPhoto);datastore.put(weddingVideo);
req.setAttribute("Key", person.getKey()); //Sending an object to a jsp fileRequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/store.jsp");dispatcher.forward(req,resp);
![Page 14: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/14.jpg)
JSPDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();Key key = (Key)request.getAttribute("Key"); //We get an object not only an Stringif (key != null){Query userMediaQuery = new Query();userMediaQuery.setAncestor(key); // Ancestor queries return ancestors by default. This filter excludes the ancestor from query results.userMediaQuery.addFilter(Entity.KEY_RESERVED_PROPERTY, Query.FilterOperator.GREATER_THAN, key);
// Returns both weddingPhoto and weddingVideo even though they are different entity kinds.List<Entity> results = datastore.prepare(userMediaQuery).asList( FetchOptions.Builder.withDefaults());
for (int i=0;i<results.size();i++){if (results.get(i).getKind().compareTo("Video")==0){%>This is a photo:<br/><img src="<%=results.get(i).getProperty("videoUrl")%>"></img><br/><% }else if (results.get(i).getKind().compareTo("Photo")==0){%>This is a video:<br/><img src="<%=results.get(i).getProperty("imageUrl")%>"></img><br/><% }%>
![Page 15: Project management and data store](https://reader033.vdocument.in/reader033/viewer/2022061114/5461f0ddaf7959f84e8b4c97/html5/thumbnails/15.jpg)
Objectify
http://code.google.com/p/objectify-appengine/wiki/IntroductionToObjectify