Home
Flashcards
Preview
Java Client/Sever
Home
Get App
Take Quiz
Create
What is glassfish?
application server
made by oracle
used to show how to use JavaEE
What is the Apache Derby project?
our database
built into netbeans
What scripting language was used for a jsf page to communicate with its backing bean?
expression language
@Named
making java class(backing bean) available to the jsf page
@Inject
making this class available
does not instantiate the object
@Resource
a way to get at the database
where is the View generated?
on the server side
what types of classes is in the ViewModel
backing beans
what types of classes did the Model consist of
jdbc
4 main software's in this course
netbeans
glassfish
angular
javadb
What construct does a controller use to communicate with a view?
$scope
What is the relationship between Dependency Injection and Modules
if a module is dependent on something, you have to inject it in.
What 2 other constructs can be used in place of a Factory?
services
providers
What REST operation do we use when we want to add data via the service?
POST
When configuring Glassfish to enable REST services, what class was created?
What is the default path when the service is deployed?
ApplicationConfig.java
webresources
What REST operation was used to update a single vendor?
PUT
What other annotation was used in the resources class' update method other than PUT.
@consumed
What URL would you use to dump out all vendor info from our netbeans setup in json format to the browser?
localhost:8080/Case1/webresources/vendor
What AngularJS directive was used to create the HTML containing each individual vendor's data and styling?
ng-repeat
ON TEST
What AngularJS module is used to create the window to add/update vendor info. What method is used to actually create it?
$modal
.open
What 3 properties are passed as JSON properties to the $modal.open() path when the service is created?
template url
controller
$scope
How does the VendorCtrl code know you want to add a row as opposed to updating a row?
add would be -1
What 2 intrinsic properties were used in detect whether or not a form had changed and whether or not the field had valid data?
$pristined
$invalid
which directive was used with the 2 properties
$pristined and $invalid
ng-show
what is the syntax for using a ternary operator in an AngularJS directive? e.g. ng-click
(todo === 'add') ? add() : update()
How do you remove an element from an array in javascript?
splice
Other than @DELETE, what 2 REST annotations were added to the VendorsResource Delete method to accommodate the delete process?
@Path
@PathParam
What 7 files are required to incorporate product processing?
productDTO
productModel
productResources
2html
2controllers
Which file(s) needs to be updated to incorporate product processing?
index.html to find javascript
route file to hook up controller
What is the graphic type used in the collapsible panel to indicate open or close the panel?
glyph icon
How do you set up you project to be able to allow bootstrap to use graphics
font folder
What was different about jdbc code needed to add a vendor row vs that for adding a product row?
vendor you are generating a key
product you are supplying a key
EOQ
The least amount for the business to order that's good.
Economic Order Quantity
Which fields are used to calculate the extended price for a line item?
costPrice
quantity
Once an item is added, how is it removed from the generator?
qty = 0
Assuming there are at least a minimum of 5 copies of PO. Which parties would receive a copy?
requester
accounts payable
vendor
receiving
purchasing
Which tables have identity set to true:
PurchaseOrder, PurchaseOrderLineitem or both
both
both are using generated keys
How do we indicate the start of a transaction in jdbc programming?
autocommit
What 2 possible commands are coded to indicate the end of a transaction in jdbc programming?
commit
rollback
describe a servlet
sending the web server
adding functionality to the web server
list the hierarchy of interfaces/classes that the servlet is based on. ON TEST
servlet interface
http servlet
extend with my code
What annotation is used to specify things like the alias(urlPatterns) for your servlet?
@WebServlet
What angular service was used to call the servlet?
$location
How did we pass the desired PO# from angular to the servlet?
through a query string
What intrinsic object was used to obtain the data from query string in the servlet?
Request object
JNDI
Java Naming Directory Interface
how the server knows what you are talking about
ij
cmd utility to get at the database
@Context
how to get at the data source
IIFy
immediately-invoked function expression
javascript pattern we used
benefit
: not using anything global
app vs vendor folder
we wrote in the app not in the vendor
Author
djon
ID
286458
Card Set
Java Client/Sever
Description
midterm
Updated
2014-10-21T03:17:01Z
Show Answers
Home
Flashcards
Preview