java

L

Lew

ajit said:
in java what does it means getConnection function

That depends on from what type the method comes. What type are you discussing?

In general terms, such a method returns a reference to some sort of "connection" object given some sort of information about what "connection" you want. There are various classes and interfaces in the standard API alone thatsport a 'getConnection()' method, or in some cases more than one such method:

<http://download.oracle.com/javase/7...rManager.html#getConnection(java.lang.String)>
<http://download.oracle.com/javase/7...erManager.html#getConnection(java.lang.String, java.util.Properties)>
<http://download.oracle.com/javase/7...erManager.html#getConnection(java.lang.String, java.lang.String, java.lang.String)>
<http://download.oracle.com/javase/7/docs/api/javax/sql/DataSource.html#getConnection()>
<http://download.oracle.com/javase/7...ataSource.html#getConnection(java.lang.String, java.lang.String)>
<http://download.oracle.com/javase/7/docs/api/java/sql/Statement.html#getConnection()>

There may be others in third-party libraries.
 
A

Arne Vajhøj

in java what does it means getConnection function

The developer of the class decided to call a method
getConnection most likely because it gets a connection.

Arne
 
L

Lew

markspace said:
Sweet link there, thanks for pointing that index out.

Useful to the OP provided they're talking about the standard API - not so useful if they happen to be talking about some other library. Something the OP will have to clarify.
 
L

Lew

Roedy said:
ajit kumar wrote, quoted or indirectly quoted someone who said :
in java [sic] what does it means getConnection function

see http://mindprod.com/jgloss/jdbc.html

The OP has not stated that the method is from a JDBC type, though that is a reasonable first guess. Even within JDBC there are many methods with that name, each with somewhat different semantics.

One hopes that the OP will respond and clarify their question.
 
R

Rajiv Gupta

in java what does it means getConnection function

It means to obtain the Connection for the Java with the function
getConnection. This is very useful for the getting of connection for
use in the Java program which is developed by the programming team.

After you get the connection you need to store it in a safe place where
it cannot be lifted by the malware or virus, so often the programmer
puts the connection inside an array (which makes it difficult for the
malware to see it).

When you need to use the connection (for example to ask for the data of
the connection or the connection speeds (and to change connection
speeds) you must unhide it temporarily for to use it.

Java is not the best language for getConnection function. There are
problems with syntax dripping and difficulties with encryptor. I would
recommend to switch to a more performant language like Visual Basic.
The advantage of the Visual Basic is that it is supported by Microsoft.
The Java is not supported by Microsoft any more
 
R

Rajiv Gupta

in java what does it means getConnection function

It means to obtain the Connection for the Java with the function
getConnection. This is very useful for the getting of connection for
use in the Java program which is developed by the programming team.

After you get the connection you need to store it in a safe place where
it cannot be lifted by the malware or virus, so often the programmer
puts the connection inside an array (which makes it difficult for the
malware to see it).

When you need to use the connection (for example to ask for the data of
the connection or the connection speeds (and to change connection
speeds) you must unhide it temporarily for to use it.

Java is not the best language for getConnection function. There are
problems with syntax dripping and difficulties with encryptor. I would
recommend to switch to a more performant language like Visual Basic.
The advantage of the Visual Basic is that it is supported by Microsoft.
The Java is not supported by Microsoft any more
 
A

Arved Sandstrom

It means to obtain the Connection for the Java with the function
getConnection. This is very useful for the getting of connection for use
in the Java program which is developed by the programming team.

After you get the connection you need to store it in a safe place where
it cannot be lifted by the malware or virus, so often the programmer
puts the connection inside an array (which makes it difficult for the
malware to see it).

When you need to use the connection (for example to ask for the data of
the connection or the connection speeds (and to change connection
speeds) you must unhide it temporarily for to use it.

Java is not the best language for getConnection function. There are
problems with syntax dripping and difficulties with encryptor. I would
recommend to switch to a more performant language like Visual Basic.
The advantage of the Visual Basic is that it is supported by Microsoft.
The Java is not supported by Microsoft any more
Visual Basic is good because you can use the better variables in Visual
Basic. Java has variables too but they are copy on value references. You
cannot write a swap function of Java copy on value references. So use
real variables in Visual Basic. This means you can better swap
connections. It is hard to write a Java connection pool because of this.

AHS
 
A

Arne Vajhøj

Roedy said:
ajit kumar wrote, quoted or indirectly quoted someone who said :
in java [sic] what does it means getConnection function

see http://mindprod.com/jgloss/jdbc.html

The OP has not stated that the method is from a JDBC type, though that is a reasonable first guess. Even within JDBC there are many methods with that name, each with somewhat different semantics.

But Roedy will get a few extra pages views ...

Arne
 
J

jaap

Visual Basic is good because you can use the better variables in Visual
Basic. Java has variables too but they are copy on value references. You
cannot write a swap function of Java copy on value references. So use
real variables in Visual Basic. This means you can better swap
connections. It is hard to write a Java connection pool because of this.

Java has the nasty habit that he wants variables to be declared before
you can use them. Visual Basic is much smarter, she creates them on the
fly. Java programmers are afraid to make mistakes, that's why Java is
created this way. Visual Basic programmers are real hero's: they don't
make mistakes.

Jaap
 
L

Lew

Rajiv said:
ajit kumar said:
in java [sic] what does it means getConnection function

It means to obtain the Connection for the Java with the function
getConnection. This is very useful for the getting of connection for
use in the Java program which is developed by the programming team.

After you get the connection you need to store it in a safe place where
it cannot be lifted by the malware or virus, so often the programmer
puts the connection inside an array (which makes it difficult for the
malware to see it).

When you need to use the connection (for example to ask for the data of
the connection or the connection speeds (and to change connection
speeds) you must unhide it temporarily for to use it.

Java is not the best language for getConnection function. There are
problems with syntax dripping and difficulties with encryptor. I would
recommend to switch to a more performant language like Visual Basic.
The advantage of the Visual Basic is that it is supported by Microsoft.
The Java is not supported by Microsoft any more

To the OP: It will be useful to keep in mind that Rajiv is being satirical here. You are meant to laugh, not follow his nonsensical but very clever advice.
 
P

Paul Cager

Java has the nasty habit that he wants variables to be declared before
you can use them. Visual Basic is much smarter, she creates them on the
fly.

So Java is male, but VB is female? I can't help but wonder what their
offspring would look like.

private Runnable r = new Runnable() {
Public Sub Run() Implements Runnable.run
Dim AsyncCall As New AsyncCallback(AddressOf
Me.BuiltInCallback)
TestDelegate.BeginInvoke(asyncCall, Nothing)
End Sub
};
 
J

Joshua Cranmer

Java has the nasty habit that he wants variables to be declared before
you can use them. Visual Basic is much smarter, she creates them on the
fly. Java programmers are afraid to make mistakes, that's why Java is
created this way. Visual Basic programmers are real hero's: they don't
make mistakes.

So explicit scoping is a "nasty habit"? Implicit scoping of variables
unarguably makes closures in Python a lot harder to use, and experience
from other dynamic programming languages is that implicit scoping often
causes as many problems as it solves. In addition, static typing also
allows the compiler to report more errors at compile-time, which greatly
reduces costs as opposed to suddenly discovering them at runtime. It's
not that VB programmers don't make mistakes, it's that they're unaware
of their mistakes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top