Daniol Thomas has Published 209 Articles

How to delete document from a collection in MongoDB using deleteOne() method?

Daniol Thomas

Daniol Thomas

Updated on 30-Jul-2019 22:30:25

236 Views

To delete document from a collection in MongoDB, you can use the deleteOne() method. Let us first create a collection and insert some documents to it:> db.deleteDocumentsDemo.insert({"Name":"Larry", "Age":23}); WriteResult({ "nInserted" : 1 }) > db.deleteDocumentsDemo.insert({"Name":"Mike", "Age":21}); WriteResult({ "nInserted" : 1 }) > db.deleteDocumentsDemo.insert({"Name":"Sam", "Age":24}); WriteResult({ "nInserted" : 1 })Now display ... Read More

The get() method of AbstractList class in Java

Daniol Thomas

Daniol Thomas

Updated on 30-Jul-2019 22:30:25

130 Views

The get() method of the AbstractList class is used to get the element at the specified position in the list. It returns the element at the position set as parameter.The syntax is as follows:public abstract E get(int index)Here, index is the index of the element to return.To work with the ... Read More

What is the use of setFetchSize() and setMaxRows() methods of the JDBC Statement Interface?

Daniol Thomas

Daniol Thomas

Updated on 30-Jul-2019 22:30:25

1K+ Views

The setFetchSize(int) method defines the number of rows that will be read from the database when the ResultSet needs more rows. setFetchSize(int) affects how the database returns the ResultSet data.Whereas, setMaxRows(int) method of the ResultSet specifies how many rows a ResultSet can contain at a time. setMaxRows(int) affects the client ... Read More

Python Functions creating iterators for efficient looping

Daniol Thomas

Daniol Thomas

Updated on 30-Jul-2019 22:30:24

189 Views

As in most programming languages Python provides while and for statements to form a looping construct. The for statement is especially useful to traverse the iterables like list, tuple or string. More efficient and fast iteration tools are defined in itertools module of Python’s standard library. These iterator building blocks ... Read More

Difference between Session Storage and Local Storage in HTML5

Daniol Thomas

Daniol Thomas

Updated on 30-Jul-2019 22:30:22

667 Views

Session StorageThe Session Storage is designed for scenarios where the user is carrying out a single transaction but could be carrying out multiple transactions in different windows at the same time.Local StorageThe Local Storage is designed for storage that spans multiple windows and lasts beyond the current session. In particular, ... Read More

What are the differences between group and layer in KineticJs with HTML?

Daniol Thomas

Daniol Thomas

Updated on 30-Jul-2019 22:30:22

342 Views

When making HTML5 web application using KineticJS, grouping, and layering need to be used.Groups are basically containers whereas layers are separators basically.The group is a container which is having shaped objects inside layers for ex group might contain both circle and rectangle.If a group is manipulated then elements within that ... Read More

What are secured cookies in JavaScript?

Daniol Thomas

Daniol Thomas

Updated on 30-Jul-2019 22:30:21

2K+ Views

A secured cookie is a cookie that works with HTTP/HTTPS, known as a httpOnly cookie. These cookies are only used for HTTP requests, so unethical access though scripting is not possible. Therefore, cross-site scripting can be stopped, which in turn stops attacks.The secure attribute is always activated for secured cookies, ... Read More

Storing Personal Information in LDAP/AD or in SAP HR module

Daniol Thomas

Daniol Thomas

Updated on 30-Jul-2019 22:30:20

105 Views

LDAP can store sensitive information but it is not recommended to store sensitive information in LDAP from a security point of view. This information should go to some HR information or you can also develop a middleware to store this information. You can use EMP ID to track this information ... Read More

Extract data from SAP system using ERPConnect

Daniol Thomas

Daniol Thomas

Updated on 30-Jul-2019 22:30:20

315 Views

As per my understanding of your question, the better option for you will be to code the selection in ABAP. Then you can wrap this selection in a function module which will be remote function call enabled. Then go ahead and use this module.But let’s say you are not able ... Read More

Advertisements