Page 1 of 2 12 LastLast
Results 1 to 20 of 24

Thread: Urgent

  1. #1
    agentkiran007 is offline Member
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default Urgent

    Hi friends. I doing serializing objects. I storing all data related to the object with the actual content of instance variables. But i want only content of instance variables without other content. Please its urgent for me. Thanks in Advance.

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,036
    Rep Power
    20

    Default

    ??
    Could you explain that again?
    Beyond serializing I didn't really understand any of that.

  3. #3
    cselic is offline Senior Member
    Join Date
    Apr 2010
    Location
    Belgrade, Serbia
    Posts
    278
    Rep Power
    5

    Default

    ^ You are right.
    Please explain it better. Give us some example of that what you are trying to do.

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,560
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Tolls View Post
    ??
    Could you explain that again?
    Beyond serializing I didn't really understand any of that.
    I think he only wants the banana, not the entire gorilla that comes with it; i.e. the OP only wants one instance variable value, not the entire object. The Serializable API documentation gives quite a lot of clues about tailoring the serialization process itself for certain classes.

    kind regards,

    Jos

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  6. #6
    Ramanjaneyulu is offline Member
    Join Date
    Aug 2010
    Posts
    11
    Rep Power
    0

    Default

    agentkiran007,
    I am guessing you are looking store an object data into database. If my guess is right,please go through this document
    Steps to insert Blob object in MySql | Java Cafe
    (Note:To work with that code,please replace the character “ with character " in that code)

    If you want to avoid particular instance variables while storing the object into database, use "transient" keyword along with the declaration of those particular instance variables.

  7. #7
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,036
    Rep Power
    20

    Default

    Serialising objects into a db always fills me with dread...

  8. #8
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,560
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Tolls View Post
    Serialising objects into a db always fills me with dread...
    It does? I (ab)use databases for that all the time using simple blobs and it works as a breeze. Of course there's nothing 'relational' about it but ...

    kind regards,

    Jos

  9. #9
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,036
    Rep Power
    20

    Default

    What do you do it for though?
    Is it done locally (embedded possibly), or is it some way of transmitting between systems?

  10. #10
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,560
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Tolls View Post
    What do you do it for though?
    Is it done locally (embedded possibly), or is it some way of transmitting between systems?
    It's hasn't any special purpose; one of my hobby projects is a functional language RPL (Reverse Polish Lisp) and it has a 'persistent' store in which I can store RPL objects associated to other RPL objects. When I ask for the key it passes me back the associated value which can be used in my RPL system again. I use a relational database for the persistent storage and the RPL objects are simply serialized forms of the internal objects; I think it's fun ;-)

    I keep a repository on Huddle; if you're interested I can make you a member of the project (there's one other member in South Africa so there is a user group ;-)

    kind regards,

    Jos

  11. #11
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,036
    Rep Power
    20

    Default

    "Reverse Polish Lisp"?
    RPL/2 is a special language, and could be the strange child of forbidden love between Lisp and Forth. The reversed polish notation and the definitional working come from Forth, only keeping an anonymous stack; the control structures come from Lisp. What a brilliant genealogy !
    (from here)

    Good God!
    :eek:

  12. #12
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Quote Originally Posted by Tolls View Post
    "Reverse Polish Lisp"?


    (from here)

    Good God!
    :eek:
    You mean Good God, Almighty! ;-)

  13. #13
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    the solution is

    Quote Originally Posted by Ramanjaneyulu View Post
    If you want to avoid particular instance variables while storing the object into database, use "transient" keyword along with the declaration of those particular instance variables.

  14. #14
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,560
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by masijade View Post
    You mean Good God, Almighty! ;-)
    No, there's nothing special about its evaluation scheme; it is simple as a matter of fact. My version of RPL can also do infix expressions (they are translated to their postfix form internally before evaluation) and lots of other things are possible with it, such as symbolic evaluation, memoization, tail recursion removal, lambda bindings, lazy evaluation, closures (Java can't do it properly, neener, neener, neener! ;-) and some niche features such as voice synthesis. html streams and a simple IDE for the language to make it workable; it can also run in parallel with other (identical) RPL evaluators on any machine or cluster thereof; I do like to test that feature over the internet.

    kind regards,

    Jos

  15. #15
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    "Reverse Polish Lisp"

    Does that mean that "TH" sounds like "S"? ;-)

  16. #16
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,560
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by masijade View Post
    "Reverse Polish Lisp"

    Does that mean that "TH" sounds like "S"? ;-)
    No, it sounds like "Reverth Polish Lithp" as it should sound ;-)

    kind regards,

    Jos

  17. #17
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,298
    Rep Power
    20

    Default

    Don't you mean "Reverth Polith Lithp" ? ;-)

  18. #18
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,560
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Darryl.Burke View Post
    Don't you mean "Reverth Polith Lithp" ? ;-)
    Yeth, thorry for the thilly typo.

    kind regardth,

    Joth ;-)

  19. #19
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  20. #20
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,560
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Fubarable View Post
    Negative repth for all who lithped in thith thread! Geesh!
    Mathiade tharted it! I'm innothent! ;-)

    kind regardth,

    Joth

Page 1 of 2 12 LastLast

Similar Threads

  1. [URGENT]SHA Encryption System...need urgent helps
    By java_idiot in forum New To Java
    Replies: 6
    Last Post: 05-02-2010, 10:04 AM
  2. Urgent
    By Anchal in forum Java Servlet
    Replies: 1
    Last Post: 04-10-2010, 05:35 PM
  3. Urgent ???
    By programmer_007 in forum Entertainment
    Replies: 0
    Last Post: 04-02-2010, 11:49 AM
  4. Help Urgent pls pls pls!!!!
    By jammyjamsticy in forum Java 2D
    Replies: 5
    Last Post: 05-06-2009, 10:55 PM
  5. Help me ...urgent!
    By googgoo in forum New To Java
    Replies: 7
    Last Post: 04-05-2008, 08:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •