What is a domain class?

I've looked on google but I can not find the correct answer.
I have an assignment that says: create a domain class and a DAO to perform the database uptdate.
What in fact is a domain class?

jschell wrote:
Kayaman wrote:
I haven't heard people talking about DAOs much lately (in relation to Java I mean), since with the latest developments in persistence, you have EJBs pretty much handle the role of data access objects.I don't understand that statement.
I would associate "EJB" with early J2EE/JEE architecture and as far as questions on this site go there are very few about EJBs (either as a general term or a specific one.) That has been replaced by POJO/Hibernate/JPA as general conversational topics.
And DAO as Data Access Object doesn't show up as much as any of those but does show up more than EJB.I guess what I meant was having session beans in general handle the data accessing. Of course that's not true for everything. A lot has changed in these 10 or so years I've been involved with Java.
My perspective is also a bit skewed due to some of the projects I'm involved in. For example we have one project that has been around for several years and it started out with EJB2 tech. Now it uses both EJB2 and EJB3 thanks to a "creative" emulation layer.
Probably Spring and Struts2 and their friends have taken away the questions that once were about the EJBs. Which is just as well in my opinion.

Similar Messages

  • RE: R : RE: Domain Classes

    I think Kal's point was that you shouldn't follow the advice in the
    "Customizing Forte Express Applications"
    manual on page 90, which suggests creating a DBSession service object
    and putting a method on a domain
    with a SQL call that uses that session. There are several alternatives
    to this, including the one you've outlined.
    From: Tomacelli Cristina[SMTP:[email protected]]
    Sent: Thursday, April 03, 1997 1:56 AM
    To: Inman, Kal
    Cc: Forte
    Subject: R : RE: Domain Classes
    First, it requires you to define a dbsession other than the one defined
    by your business model. As you talk of business model, I think you are using Express.
    Really it's not necessary defining a new dbsession and executing your sql
    across the network.
    What you should do is:
    - create a method in your domain that takes as a parameter the business
    client, construct the query you require and pass it to the select method of
    the business client.
    It's the business client that makes the work for you, passing the query to
    the business service manager, so no sql goes from the client to the server
    through the network.
    The select method of the business client finally returns an array of
    business class objects and you can use the array content to populate your
    droplist.
    Hope this helps.
    Regards,
    Cristina Tomacelli - CSI Piemonte
    Corso Unione Sovietica, 216 - 10134 TORINO - ITALY
    E-mail address: [email protected]
    Telephone Number: +39-11-4618387
    Da: Inman, Kal
    A: blunda; chiaberto; tamietti; tomacelli;
    [email protected]
    Cc: [email protected]
    Oggetto: RE: Domain Classes
    Data: mercoled? 2 aprile 1997 16.08
    Word of caution on the use of domains.
    The "Customizing Forte Express Applications" manual, uses as an example,
    defining a domain as a droplist. They go on to tell you how to create a
    method that executes SQL to populate the droplist. This sounds very
    encapsulated, but it has some strings.
    First, it requires you to define a dbsession other than the one defined
    by your business model. This is because your domain project supplies
    you busness services, thus not giving access to the business services
    dbsession.
    Second, when executing the GUI that has this domain as a widget, the sql
    is executed from the client across the network. This will cause
    performance problems.
    Third, the sql is executed every time you page to a new record. You
    must provide your own caching.
    If you choose to use domains to populate lists, build a caching object
    and have the method constructed in the domain populate from this object.
    Your caching object can be constructed to go through your existing
    business services to retrieve information, eliminating the need for
    another dbsession.
    Good luck
    Kal
    From: Don Nelson[SMTP:[email protected]]
    Sent: Wednesday, April 02, 1997 4:04 AM
    To: [email protected]
    Cc: [email protected]
    Subject: Re: Domain Classes
    Jennifer,
    Domain classes act exactly the same as sub-classes of the nullable versions
    of DataValue. The only real difference is their ability to be associated
    with a widget. Can't think of any cons, offhand.
    Don
    At 11:09 AM 3/27/97 -0400, [email protected] wrote:
    Jennifer Medeiros
    03-27-97 11:09 AM
    I am researching the pros and cons of domain classes. Can anyone give
    me
    some information? (I know how to create them and how to use them.)
    Thanks for your time --
    ===================================
    Don Nelson
    Senior Consultant
    Forte Software, Inc.
    Denver, CO
    Corporate voice mail: 510-869-3400 x2209
    Cell: 414-416-4557
    ===================================

    Jason,
    Domain Classes can also store FieldWidget information associated with them.
    For example, Widget type, Max Characters, Input Mask, Size Policy, Help
    Text, etc. This means that when a developer adds the domain to the window
    workshop it will automatically have all the settings that were previously
    defined on the domain, therefore giving a standard look and feel, as well
    as, behaviour(fillstring and SetValue).
    Regards,
    Allister
    Xpedior
    www.xpedior.com
    Ph: +61-8-9320-7604
    Fax: +61-8-9486-8650
    -----Original Message-----
    From: Jason de Cean [mailto:[email protected]]
    Sent: Thursday, 21 October 1999 9:30
    To: 'Forte Users'
    Subject: (forte-users) Domain Classes
    Hi,
    Can anyone tell me the advantage of using a domain class ?
    We have subclassed DecimalData (FormattedDecimal) and overridden the
    FillString and SetValue methods to implement other formatting. This is
    then used as an attribute on our data classes and appears to work fine
    when mapped to forms.
    So, why would we use a Domain Class instead of just sub classing
    DecimalData ?
    Jace.
    Jason de Cean
    Genisys Team
    Lumley Technology Ltd.
    Lvl. 8, 55 Sussex St
    Sydney, NSW 2000 Australia
    Ph: 02 9248 1321
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: [email protected]

  • Domain Class and EJB Component

    Hi,
    I have defined a set of domain classes(with get/set methods) and a set of EJB Session Beans for the business logics.
    The question is, where do I locate the domain classes?
    Create a package for it (e.g. com.mysystem.domain)?
    Or distribute it into the Session Bean packages (e.g. for account related domain classes, place it into com.mysystem.ejb.account)?
    The problem for placing it into the domain package:
    1. I have too many domain class ( >200). It's hard to maintain and perform analysis. (Imagine >200 classes in a class diagram)
    2. All session beans need to import the "com.mysystem.domain" package in order to reference the domain classes. Therefore, all session beans will have the dependency to the domain package. Is it what component based development (CBD) does?
    The problem for distribute it into the Session Bean packages:
    1. Some domain classes are heavily depends on other domain classes (e.g Address class has association relationship with the Customer class and Staff class) If I have a session bean for Staff Management(StaffBean) and Customer Management(CustomerBean), where should I put the Address class?
    1. Some domain classes are abstract classes. e.g. Person abstract class have a generalization relationship with the Customer class and Staff class. Similiar to point 1, where should I put the Person class?
    It is appreciate if anyone can clear my mind of component design.

    I have the same confusion, but I think we should place them in a separate packages , a package for each related bundle of domain objects, the logic behind this is that domain object should not know that you are using EJBs or any other technology .
    an OO expert advice is appreciated

  • RE: (forte-users) Domain Classes

    Hi,
    This thread coinsides with a recent posting I made on formatting percents
    (attached at end).
    The complication here is that the data field is part of an array field and
    is:
    1) editable
    2) part of an array of BObjects that are mapped to the array field
    There is no separation therefore between a BO and a DO, at least in the
    current implementation. Furthermore, the user may or may not want percent to
    be the display format. What I think I need is one field that actually has
    two values, a display value and a 'true' value, and each would probably need
    its own numeric format as well (one for data entry and one for display).
    I've never used a domain class, but do you know if such a beast be possible?
    -----Original Message-----
    I want to provide the option for a user to display values in percents or
    not, and finding this surprisingly tricky.
    Although its easy to make a DecimalData with a value of .08 look like 8% by
    changing the scale and multiplying by its value by 100, I don't see how to
    do this in a way that the variable still knows its value is .08.

    Jason,
    Domain Classes can also store FieldWidget information associated with them.
    For example, Widget type, Max Characters, Input Mask, Size Policy, Help
    Text, etc. This means that when a developer adds the domain to the window
    workshop it will automatically have all the settings that were previously
    defined on the domain, therefore giving a standard look and feel, as well
    as, behaviour(fillstring and SetValue).
    Regards,
    Allister
    Xpedior
    www.xpedior.com
    Ph: +61-8-9320-7604
    Fax: +61-8-9486-8650
    -----Original Message-----
    From: Jason de Cean [mailto:[email protected]]
    Sent: Thursday, 21 October 1999 9:30
    To: 'Forte Users'
    Subject: (forte-users) Domain Classes
    Hi,
    Can anyone tell me the advantage of using a domain class ?
    We have subclassed DecimalData (FormattedDecimal) and overridden the
    FillString and SetValue methods to implement other formatting. This is
    then used as an attribute on our data classes and appears to work fine
    when mapped to forms.
    So, why would we use a Domain Class instead of just sub classing
    DecimalData ?
    Jace.
    Jason de Cean
    Genisys Team
    Lumley Technology Ltd.
    Lvl. 8, 55 Sussex St
    Sydney, NSW 2000 Australia
    Ph: 02 9248 1321
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: [email protected]

  • What's the WMI class name to get Client Approval status

    What's the WMI class name to get Client Approval status.
    Unfortunately the below example with class "SMS_R_System" does not have the approval status
    Get-WmiObject -Namespace "root\sms\site_LAB" -Class SMS_R_System | fl *
    I listed all the available classes and... yeah It's going to take along time to go though all the possibilities.
    Note: I'm running this in powershell on the primary first
    If anyone knows it... I'd appreciate your help

    This is all still in the testing phase so I'm not sure this is the best solution... but here's my problem and idea to resolve it.
    Currently in our environment OSD can only be run against unknown computers and approved clients.
    I currently automatically approve all clients in a trusted domain. So all systems that succeed OSD and auto join the domain are approved and I can always run OSD against those machines in the future.
    Problem is with the systems that fail OSD for any reason and therefore do not automatically join the domain. They end up getting a SCCM record by the name of "Unknown" and therefore cannot run OSD again until the "Unknown" record
    is deleted. "Unknown" records happen too frequently to manually delete and I'm not too comfortable with just deleting ALL of them on a scheduled basis.
    Additionally there are way too many OU's in my environment to automatically join our OSD'd systems to the domain. So I have a script that checks using a prestart command to see if the system is already in AD, and if so then OSD continues and simply
    joins the machine to the domain in it's current OU. If not the tech is given a nasty error message telling them to add the computer object in AD in the proper OU first.
    I intend to check , with a Prestart Command if the current system already has a record in SCCM and delete it if found AND is not approved yet. This should resolve the "There are no task sequences available" error I get with
    systems that have an "Unknown" SCCM record.
    In this way the system will be essentially approved if the system was already prestaged in AD manually by a technician and any "unknown" record for that system will simply be deleted at the point of OSD.
    Note: Although I can easily use the new SCCM Powershell cmdlettts and get the "Approved" status, I need to do all of this in WinPE without the cmdletts. If this property is not available via WMI, then I'm guessing this will not work.

  • What is the standard class used to create SALES ORDER in SAP CRM?

    Hello Experts,
    Can anyone suggest me what is the standard class used for creating sales order.
    I have created sales order using the BAPI 'BAPI_SLSTRANSACT_CREATEMULTI' in my report program.
    Now, I have to create sales order using standard classes and methods(my assignment).
    Please suggest the suitable class.
    Regards
    DNR Varma

    Hi Varma,
    You can create crm documents like sales order using BOL interfaces.
    You can check one example at the following thread:
    Create OrderThro BOL
    Check if it helps you a little more.
    Kind regards,
    Garcia

  • 6.1 What is the Domain Name when using LDAP

    Hi,
    We are currently installing Tidal 6.1, we are going to integrate Oracle Directory Server for LDAP (not AD).
    Qustion is, what is the domain name we have to provide when we install?
    Master and CM both on Linux.
    Thanks!

    Do you know any document which shows LDAP compatibility?
    I havent seen on Intsallation Guide.
    Problem is, when I install, linux servers are on different network (domain) but LDAP contains different domain details. Wondering how Tidal check the domain details when authenticating.
    When we give LDAP domain details, it gives following error.
    WARN:  javax.security.auth.login.LoginException: [LDAP: error code 49 - Invalid Credentials]
    Anyone know how to increase log level to debug?
    Thanks!

  • What is an abstract class?

    What is an abstract class and what does it do compare to other classes?
    I'm having some trouble trying to understand it.
    Message was edited by:
    xc100

    s it not obvious that the OP is a worthless troll?Looking at his/her recent posts, I wouldn't say so.
    S/he looks like a newbie who is asking basic
    questions
    and is rather reluctant to follow links or read
    tutorial pages,
    but I haven't seen actual troll behaviour.My first impression was that this was another Charles_Bronson, due to the countless threads that ask basic, open-ended questions.
    Then again, CB never posted any actual code, so who knows?
    One can never know really and it's unfair to judge someone unheard. That's >why I usually start by giving a very brief reply to invite to a dialog.
    And it's not just about replying to the OP. Sometimes a discussion of >general interest develops even from a seemingly trivial question.I see your point. However, the discussions that seem to stem from these types of threads seem to be irrelevant to Java, if you know what I mean.

  • What are cookie domains used for?

    there is a choice, can someone give me some suggestion?
    What are cookie domains used for?
    A/ to be easily recognizable by digital certificates that are also based on domains
    B/ to instruct the browser that the cookie should be send only to the domain it came from
    C/ to provide convenient way for the user to group cookies by their domains
    D/ All of Above
    E/ None of Above

    Not only does that not appear to be a Java question,
    but the OP didn't even take a guess at the answer and
    explain why he thought that that answer was correct.thanks! i support with your viewpoint, solve a problem will be the most important mission, but not consured! i am cognizant of this is a mistake to ask other questions in java forum ,but this question didn't far away j2ee project, though this is a choice, but only get a answer is not my original intention! i hope i can call on anyone join in this discussion!
    thanks...

  • What file types get classed as 'Movies' in Macbook Pro?

    I'm creating space on my Macbook hard drive by moving movies onto a hard drive.  I've moved virtually all of them over, and emptied the trash can.  However a system storage report is still showing 59GB of movies.  What else does macbook class as movies?  Could it class podcasts .mp3 as Movies and count them towards the 59 GB?

    This web site may be a good place to start:
    http://www.fileinfo.com/filetypes/common
    There are other places that you may search on the Internet that may help close the gap.
    Ciao.

  • What is top level class declaration in java?

    What is top level class declaration in java?

    The declaration of a class that's not nested inside any other class.

  • What is an executable class

    What is an executable class in java. Can someone explain with an example??

    I'd guess a class with a public static void main( String[] ) method.
    i.e.
    public class Test {
        public static void main( String argv[] ) {
              System.out.println( "BOO!" );
    }javac Test.java
    it can the be executed with the java command:
    java Test
    Resources for Beginners
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java. This one has been getting a lot of very positive comments lately.

  • What  is a mapper class ?

    what is a mapper class?
    it looks like it maps to something ...right ?
    can you provide some example ? this concept is not clear.
    N.B :
    I am giving you some context where i have come accross this term ....i have noticed this , where there are some messaging (JMS,MQ etc ) involved in applications........if the application have messaging , then the project usually contain some mapper kind of class......yes, i know this is not a full information that i can give you...........the point is , have you seen this kind of mapper classes in your project ? what they do ? can you give some outline view what it does basically ......i am interested in this terminology.

    Thanks for the response.
    The "mapper" classes do you usually convert/map from
    one format to another by mapping values. you told "format".
    uhh....ok....suppose i have a XML message(complient to XSD1) which lies in JMS queue(suppose) ....does a Mapper class tears this XML message and then again build another XML Message (complient to XSD2) ......is it like this ? is it the job of a mapper class ? does it simply makes a new different format from a given format ?
    E.g. data
    from your model should be mapped into fields in a
    predefined message format.ahh....so, if i have a javabean(data model) with many properties then a mapper class takes these properties and puts these in the appropriate fields of a predefined message format.
    anything else involved here ?
    In fact , i was looking for mapper classes who are involved in messaging
    Kaj

  • What is the domain name setting under internet tcp/ip?

    In the airport utility > Internet > TCP/IP panel, what is the 'Domain Name' field used for?

    The Domain Name setting would be that of your ISP. For example, I have Cox as my ISP. My Domain Name setting is: cox.net
    This field is not mandatory and is used to establish the appropriate domain that your Public IP address is located to assist DNS in directing requests.

  • What happens to abstract classes now?

    As we can write default implementations to the methods in a interface, what happens to abstract classes now?

    just because you can doesn't mean you should. And this is a clear case of you should not.
    Allowing implementation in interfaces is a dirty hack they needed to put in to be able to bolt on some of the other stuff without breaking forward compatibility with existing code.
    That doesn't make it a good idea, in fact it's a pretty good indication that the stuff they hacked in this way is itself not a good idea.

Maybe you are looking for