Create your own short and simple jdbc java code

Assignment Help JAVA Programming
Reference no: EM131405255

Using the Schema you developed in Homework 1 for your e-Commerce project, design and implement a Virtual Private Database that limits database access. Your design should be based on two of your columns and two of your tables. (Hint: where col1 = value1 AND col2 = value2). Which columns and tables you choose is up to you and will be based on your initial design. You may alter your tables if it makes sense to do so.

In most cases you will need to create a separate policy and function for each of the two tables you select. Use the tutorial as a reference and follow the steps for creating the policy function, creating the virtual private database policy and testing the policy.
Deliverables:

1. Create a word or PDF document that describes your process, steps and results. Be sure to describe your schema and why you selected the tables and columns you did for your Private database. Provide screen shots showing the successful running of all of your SQL statements and testing your implementation. Be sure your testing is comprehensive and clearly demonstrates how the virtual private database restricts access to specific records. The document should be neat, well-organized, well-written and contain minimal grammar and spelling errors.

2. A .sql script file containing all SQL statements you used for this effort. All SQL statements should be in one file with appropriate connect statements to differentiate users who run the script. The script file should contain comments describe each major set of SQL statements.

The script should run perfectly without error when executed from the Oracle SQL*PLUS environment.

3. Create your own short and simple JDBC Java code example that inserts 2 records into an Oracle table of your creation.

From a design perspective, the Java functionality should be separated into methods and use prepared Statements for your SQL statements.

Post your fully functional code along with screen shots demonstrating the successful running of it.

Note this code should compile and run from the command prompt.

Reference no: EM131405255

Questions Cloud

Allocation of work assignments and resources : 1) The following table shows the allocation of work assignments and resources needed for an investment firm to make a decision on investing in company XYZ. a) Create Responsibility Matrix
What is the difference between data and information : What is the difference between data and information?What is granularity? What are the advantages of coarse-grain architecture and fine-grain architecture?
How large a simple random sample will be necessary : If a larger study is to be undertaken, how large a simple random sample will be necessary to have 99% con- fidence that the sample mean will not differ from the actual population mean by more than 1.0 points?
Financial variables that affect the price-earnings ratio : 1. Discuss some financial variables that affect the price-earnings ratio. 2. Explain how the Du Pont system of analysis breaks down return on assets. Also explain how it breaks down return on stockholders' equity.
Create your own short and simple jdbc java code : Using the Schema you developed in Homework 1 for your e-Commerce project, design and implement a Virtual Private Database that limits database access. Your design should be based on two of your columns and two of your tables. (Hint: where col1 = v..
Perception on the company performance : Managers continually use innovative ways to reach their objectives. The main issue is whether managers can influence earning reporting to achieve investors' perception on the company's performance.
Explain what is meant by the stocks expected return : FIN 3331- Explain what is meant by the stock's "Expected Return". Calculate each stock's coefficient of variation. Under what situation is the coefficient of variation useful? Briefly explain.
Major concerns regarding us energy policy : (1) Identify at least three major concerns regarding US energy policy. What are our vulnerabilities and challenges?
Source of competitive advantage : Do ethical practices affect a firm's ability to develop a brand name as a source of competitive advantage? If so, how does this happen? Identify two (2) brands that are a source of competitive advantage in part because of the firm's ethical practic..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Compilers check programs for syntax errors

Compilers check programs for syntax errors, but frequently a lack of one symbol (such as a missing brace or comment starter) will cause the compiler to spill out a number of diagnostics without identifying the real error

  Method that reads a text file and returns a list of tokens

Write a method that reads in a text file and returns a list of the tokens (preferably alphanumeric) in that file. Write a method to print out frequency results.

  Write a function that searches a [n][n] matrix

there is a y or multiple y values with a blank on one side (left/right or top bottom) and a x on the other

  Write a java class that asks the user to enter three numbers

CS101- Write a java class that asks the user to enter three numbers N1, N2, N3 , obtains the numbers, then calculates and displays the largest number Max followed by the text "is the largest" and the smallest number.

  Design and implement a randomqueue

Design and implement a RandomQueue. This is an implementation of the Queue interface in which the remove() operation removes an element that is chosen uniformly at random among all the elements currently in the queue.

  Details about the consultants and projects

A consulting firm maintains a database of its employees (a number of consultants) and a list of projects it has accomplished, has been developing, and is about to start. Details about the consultants and projects are given below:

  Tasks for an array of integers

Write array methods that carry out the subsequent tasks for an array of integers by completing the ArrayMethods class below. Test each method.

  When are stubs & skeletons created for my ejb components

When are stubs & skeletons created for my EJB components? is it at development time, deployment time or run time?

  What way to test if string is containe within another string

So that's when this curious consultant started wondering... what is the fastest way to test and see if a string is contained within another string?

  Create a 2-by-3 two-dimensional array of integers

Create a 2-by-3 two-dimensional array of integers and fill it with data. Loop through the array and locate the smallest value stored.

  1design an abstract data type in java that represents a

1.design an abstract data type in java that represents a musical pitch noteadt.java. the adt should store the note or

  Prompts the user for three first names

Write an application that prompts the user for three first names and concatenates them in every possible two-name combination so that new parents can easily compare them to find the most pleasing baby name. Save the file as BabyNameComparison.java

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd