Registering class - what does it mean?

In one book dealing with JDBC there's statement like: "Whenever a driver is loaded into memory
Class.forName("org.gjt.mm.mysql.Driver")
it is registered as an available driver with the
java.sql.DriverManager
class".
I have to say that I'm not newbie in database/JDBC programming and that I already created dozens of programs and web applications working with databases using DriverManager/DataSource approaches but now I'd like to understand what's really going on in the background with driver class.
When you say "driver is registered" what does it really mean; what is registered and where?, how it is registered?, is it registered somewhere as ActiveX/COM component in Windows registry?

hi sbrbot,
There has been lot of confusion in people who try to get deep into what the books are telling. let me tell you what i could understand from analysing the informations and specifications ....
when u call Class.forName with the driver class as the argument.., u instantiate a class of the driver.. like org.gjit.mm.mysql.Driver.. This class will contain some mechanism.., usually a static method that will call the java.sql.DriverManager.registerDriver(DriverClass) method.. this method needs the driver class as argument.. u can see it in the java sdk source code..
The DriverManager now gets a handle to the driver class instance and whatit does can be seen from the foll. code ..in the java.sql.DriverManager class...
    public static synchronized void registerDriver(java.sql.Driver driver)
     throws SQLException {
     if (!initialized) {
         initialize();
     DriverInfo di = new DriverInfo();
     di.driver = driver;
     di.driverClass = driver.getClass();
     di.driverClassName = di.driverClass.getName();
     drivers.addElement(di);
     println("registerDriver: " + di);
    }for your information.. if u are again doubtful abt something.. see the foll. code part tooo again from java.sql.DriverManager
// DriverInfo is a package-private support class.
class DriverInfo {
    Driver         driver;
    Class          driverClass;
    String         driverClassName;
    public String toString() {
     return ("driver[className=" + driverClassName + "," + driver + "]");
    }So i hope u now know how the DriverManager class stores the information about the drivers that are available.. :-D
Hope that was of some help.. do correct me if my concepts are wrong.
cheers,
-Jer

Similar Messages

  • I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?

    I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?

    See TS2690: iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert.
    tt2

  • I'm trying to sync my i phone. I haven't synced it in a few months, but the notice that comes up is  itunes was unable to load data class information from sync services..what does it mean?

    I'm trying to sync my i phone. I haven't synced it in a few months, but the notice that comes up is  itunes was unable to load data class information from sync services..what does it mean?

    In the course of your troubleshooting to date, have you worked through the following document?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • I want a song i purchased on ipad with my apple id transferred to our family computer which is registered to my husbands apple id. But a message comes up saying 90days before can download? What does this mean i just want to play my song through the mac

    I want a song purchased on my ipad with my apple id downloaded onto our home mac mini. So i can listen to it via that computer. However the mac is registered to my husbands apple id and it comes up with a message about 90days wait needed or something. What does this mean? And how do I get one measly song downloaded?!

    Welcome to the Apple Community.
    It sounds like you are trying to change your login in the Tunes store through iTunes on your computer, which you can only do once in 90 days, which you don't need to do for this.
    What does your iPad usually sync with.

  • I tried to register my stolen iPhone onto My Profile but it says that it's registered under another apple ID (which is not mine) What does this mean? Does it mean the person who stole my phone is using my phone under another Apple ID?!

    Hi everyone,
    My iphone and Ipad got stollen yesterday...
    I registered my Ipad onto "my profile" but when I tried to register my Iphone 4 onto "My Profile" it says that the product has been registered under ANOTHER apple ID. What does this mean?! Does this mean that the thief is using my phone under a new apple ID?!
    I am getitng  abit paranoid because when I tried to download a new app onto my macbook pro, it says that someone had accessed my account from a new computer. I am so scared.. as I know that if they are able to access my apple ID account they can see my billing/card details. I tried to delete my billing address and card details on my apple ID account to prevent this from occuring but I can't. Please help
    Many thanks,
    Kim

    You should change your AppleID password NOW. And if it says it was registered under another AppleID, the thief has probably done it.

  • What does it mean by Stream and how does it is different from Class?

    What does it mean by Stream and how does it is different from Class?

    www.dictionary.com does
    Stream: An abstraction referring to any flow of data from a source (or sender, producer) to a single sink (or
    receiver, consumer).
    Class:
    The prototype for an object in an
    object-oriented language; analogous to a derived type in a
    procedural language. A class may also be considered to be a
    set of objects which share a common structure and behaviour.
    The structure of a class is determined by the class
    variables which represent the state of an object of that
    class and the behaviour is given by a set of methods
    associated with the class.

  • Trying to send "Message" on iPad 2 and keep getting message that "x" is "not registered with iMessage." Never happened on previous iPad. What does it mean and how do I solve?

    Trying to send "Message" on iPad 2 and keep getting message that "x" is "not registered with iMessage." Never happened on previous iPad. What does it mean and how do I solve?

    Trying to send "Message" on iPad 2 and keep getting message that "x" is "not registered with iMessage." Never happened on previous iPad. What does it mean and how do I solve?

  • Java1.5: Class AbstractCollection E E - what does it mean?

    Class AbstractCollection<E> <E> - what does it mean?
    http://java.sun.com/j2se/1.5.0/docs...Collection.html
    I also found <T> symbol e.g. Interface Iterable<T>
    http://java.sun.com/j2se/1.5.0/docs...g/Iterable.html
    ????

    http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html
    http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf

  • When clicking on opening mail or any page a pop up says: Components.classes['@Softage.r4/Skype/SkypeFffExtension'] is undefined. What does it mean and how can I fix it?

    When I open up Mozilla or try to open up mail or website, I have to click okay each time I try to read something because it tells me: Components.classes['@Softage.r4/Skype/SkypeFfExtension',] is undefined.
    What does this mean and how can I clear up the problem?
    Thank you,
    Melinda

    Make sure Thunderbird isn't blocked by a personal firewall.

  • GetResponseCode() returns -1,what does it mean

    Hi ,
    The HttpURLConnection class's getResponseCode() method returns -1.
    getResponseMessage() returns null.i m accessing my servlet through a proxy.i know only about 1xx to 5xx codes.i dont know what does it mean by -1.But at server side the request is properly sent and processed and i m getting 200 and ok after processing at serverside. the object is sent to client also. but it is not received by the client.
    Null object is returned.I think proxy is the culprit.If anyone can help me what -1 means,it will be really greatfull to diagnoise my issue in detail and solve my problem soon.
    Your help will be greatfull.
    Thanks
    prakash

    As it says perfectly clearly, right there in the API documentation for the method:
    "Returns -1 if no code can be discerned from the response (i.e., the response is not valid HTTP)."

  • Why has my monitor suddenly begun to have a moiré pattern all over – it is even showing up on my icons on the dock? It appears to be very thin bright green vertical lines. I have a 2008 iMac which is running 10.6.8. What does this mean?

    Why has my monitor suddenly begun to have a moiré pattern all over – it is even showing up on my icons on the dock? It appears to be very thin bright green vertical lines. I have a 2007 iMac which is running 10.6.8. What does this mean? I've attached some screen shots below.
    Also experiencing some funky issues with my wireless keyboard. With new batteries, it will just stop functioning. Certain keys intermittently won't work. Also the fans go on as soon as I turn the computer on - some times they stay on and sometimes they don't. Ever since upgrading the operating system - I've been having many issues with this iMac. Not happy. Any answers out there?

    Thanks for your reply LexSchellings, There is no disc in the drive and I went through the suggestions you put forward on the phone with Apple support without any luck. I can put a disc in but it pops straight back out again without registering on finder.
    The idea of using an external drive was to enable me to avoid the cost and loss of productivity whilst machine in repair... if I have to take it in to get the old drive removed than I might as well have a new internal drive put in, although I do worry about the reliability of these apple drives given my experience with this one coupled with my limited online research ... on line forums seem to be full of people with the same problem (although perhaps searching such forums is bound to make it seem a common problem as users with perfectly working machines are less likely to post (?)) Your reply suggests that no external drive will work whilst the existing drive is in place.
    As a postscript: I do realise that this is a user forum ...my secondary question was asking if anyone knows how to put forward a case/complaint to Apple... I can't find a link on the support page that would enable me to do so and I was wondering if anyone on this user forum had any ideas/experience..

  • Rookie question: what does "delegate" mean?

    in api explanation, it is sometimes mentioned that, 'A currently delegates to B",
    like "DefaultListModel" delegates to "Vector", what does it mean exactly? Forgive me, my English is really bad.
    is it saying that wherever A was previously used, use B instead now?
    thanks

    Basically when a request is made to Object A (for example a method is called), Object A forwards the request to Object B (the delegate). Object B then does some work to handle the request.
    public class A {
      private B delegate = new B();
      public int getSize() {
        return B.size();
    }This is actually not "true" delegation, rather "forwarding" since true delegation would require A to be forwarded to B as well as the request.

  • Unicode convertible, what does it mean?

    TYPES: BEGIN OF zbficheentry_list2,
    FICHENO type zbficheentry-ficheno,
    LOGISTICSCENTER type zbficheentry-logisticscenter,
    KANTARNO type zbficheentry-kantarno,
    TRDATE type zbficheentry-trdate,
    TRHOUR type zbficheentry-trhour,  line_color(4) type c,
    END OF zbficheentry_list2.
    DATA: zbficheentry_list TYPE STANDARD TABLE OF zbficheentry_list2 WITH HEADER LINE,
          wa_ficheentry TYPE zbficheentry_list2.
    The program triggers the error:
    The type of the database table and work area (or internal table)          
    "WA_FICHEENTRY" are not Unicode-convertible . . . . . . . . . .          
    What does this mean?
    Please help.
    Thanks.

    Hello,
    U have to use like this :
    DATA: zbficheentry_list TYPE STANDARD TABLE OF zbficheentry_list2 WITH HEADER LINE,
    wa_ficheentry TYPE line of zbficheentry_list2.
    <b>WHAT is UNICODE ?</b>
    About brief idea about unicode
    In the past, SAP developers used various codes to encode characters of different alphabets, for example, ASCII, EBCDI, or double-byte code pages.
    ASCII (American Standard Code for Information Interchange) encodes each character using 1 byte = 8 bit. This makes it possible to represent a maximum of 28 = 256 characters to which the combinations [00000000, 11111111] are assigned. Common code pages are, for example, ISO88591 for West European or ISO88595 for Cyrillic fonts.
    EBCDI (Extended Binary Coded Decimal Interchange) also uses 1 byte to encode each character, which again makes it possible to represent 256 characters. EBCDIC 0697/0500 is an old IBM format that is used on AS/400 machines for West European fonts, for example.
    Double-byte code pages require 1 or 2 bytes for each character. This allows you to form 216 = 65536 combinations where usually only 10,000 - 15,000 characters are used. Double-byte code pages are, for example, SJIS for Japanese and BIG5 for traditional Chinese.
    Using these character sets, you can account for each language relevant to the SAP System. However, problems occur if you want to merge texts from different incompatible character sets in a central system. Equally, exchanging data between systems with incompatible character sets can result in unprecedented situations.
    One solution to this problem is to use a code comprising all characters used on earth. This code is called Unicode (ISO/IEC 10646) and consists of at least 16 bit = 2 bytes, alternatively of 32 bit = 4 bytes per character. Although the conversion effort for the R/3 kernel and applications is considerable, the migration to Unicode provides great benefits in the long run:
    The Internet and consequently also mySAP.com are entirely based on Unicode, which thus is a basic requirement for international competitiveness.
    Unicode allows all R/3 users to install a central R/3 System that covers all business processes worldwide.
    Companies using different distributed systems frequently want to aggregate their worldwide corporate data. Without Unicode, they would be able to do this only to a limited degree.
    With Unicode, you can use multiple languages simultaneously at a single frontend computer.
    Unicode is required for cross-application data exchange without loss of data due to incompatible character sets. One way to present documents in the World Wide Web (www) is XML, for example.
    ABAP programs must be modified wherever an explicit or implicit assumption is made with regard to the internal length of a character. As a result, a new level of abstraction is reached which makes it possible to run one and the same program both in conventional and in Unicode systems. In addition, if new characters are added to the Unicode character set, SAP can decide whether to represent these characters internally using 2 or 4 bytes.
    A Unicode-enabled ABAP program (UP) is a program in which all Unicode checks are effective. Such a program returns the same results in a non-Unicode system (NUS) as in a Unicode system (US). In order to perform the relevant syntax checks, you must activate the Unicode flag in the screens of the program and class attributes.
    In a US, you can only execute programs for which the Unicode flag is set. In future, the Unicode flag must be set for all SAP programs to enable them to run on a US. If the Unicode flag is set for a program, the syntax is checked and the program executed according to the rules described in this document, regardless of whether the system is a US or an NUS. From now on, the Unicode flag must be set for all new programs and classes that are created.
    If the Unicode flag is not set, a program can only be executed in an NUS. The syntactical and semantic changes described below do not apply to such programs. However, you can use all language extensions that have been introduced in the process of the conversion to Unicode.
    As a result of the modifications and restrictions associated with the Unicode flag, programs are executed in both Unicode and non-Unicode systems with the same semantics to a large degree. In rare cases, however, differences may occur. Programs that are designed to run on both systems therefore need to be tested on both platforms.
    You can also check out these official SAP locations on the SAP Service Marketplace:
    http://service.sap.com/unicode
    http://service.sap.com/unicode@SAP
    http://service.sap.com/i18n
    Regards,
    Deepu.K

  • My macbook pro says "the server encountered an error processing registration.please try again later." What does it mean ? i tried since the previous day. help me.

    my macbook pro says "the server encountered an error processing registered.please try again later."in facetime .what does it mean?

      Direct you to the proper forum for MacBook :
    MacBook Series Forums 
    https://discussions.apple.com/community/notebooks?view=discussions

  • I keep getting a this message after compiling....What does it mean?

    Note: C:\Work\ProjectFolder\Project\Login.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    Tool completed successfully
    Then after I recompile this is what I get...
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are used
    -classpath <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release
    -target <release> Generate class files for specific VM version
    -help Print a synopsis of standard options
    Tool completed with exit code 2
    what does this mean?

    You're using an old method from an API that has been deprecated
    IE: it isn't recommended that you use that object/ object method/ objects' regular expression-function any more.
    Use this
    prompt>javac -deprecation yourProgramName.java
    then tell us what it says.

Maybe you are looking for

  • Very Bad Experience with EDGE Program, Trying to get a resolution for 2 Months

    This is long winded but a lot has happened in two months. My wife and I are both on the Edge program. When she initially signed up for the program she got the Iphone 5. She ended up having some technical problems with the screen on her phone so she t

  • Itunes Error 7 Windows Error 126

    After having to remove iTunes from my computer, I have tried to reinstall it several times without luck getting itunes error 7 windows error 126. I have tried uninstalling and reinstalling at least five times and keep getting the same message! I real

  • Check deposit print from FF68

    Hello, the scenario is that i want to print the check deposit form from FF68 according to a different fornat(which is very diff from the standard one).. I checked in the customizing and it gave me the option of defining my own form. But for printing

  • Can an slideshow be viewed by non mac users?

    If i create a slideshow in iphoto can I send it to someone who uses a pc? If so how do i do that?

  • How do I enable NTLM v1 on OS X Server 10.5?

    1. How do I enable NTLM v1 on OS X Server 10.5.4? 2. The reason I ask is because my Windows XP PCs are taking a lonnnng time (minutes) to connect to my XServe using SAMBA. In my smdb.log, I found alot of eDSAuthMethodNotSupported errors: dsDoDirNodeA