Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am working on encrypting and decrypting of savable data of my application. For that i need to know the strings that saving in my database(I need them exactly just before saving into DB).
How to track that data while before saving ?? any help ??
thanks .
Hinernate supports the concept of interceptors and events. You can use the public boolean onSave(...)
You can do this with the help of Data Access Object design pattern. where u can track data before going to save by implementing your custom function
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to monitor changes that occur in the database. Say, for instance when an item is removed from the database. I want to be able to use an interface to monitor such changes and create an alert of how many no of items are left in the database . Every 5 min or so. Is there any plugin for java, or some kind of interface or something else? I will be grateful for the help.
Best Option Use DDL TRIGGER as it is DB change event meaning
CREATE DDL TRIGGER
ON DB AFTER DELETE AS
"YOUR ACTION STATEMENT" ;
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have encountered a problem using byte array. The exception it suggested to me that I ought to use Blob in the properties of HttpServletRequest , but I can not find information about this.
The complete package: com.google.appengine.api.datastore.Blob
Can you say I like this class uses? or any web which has examples
There is an example of extracting blobs, I think here.
http://www.programcreek.com/java-api-examples/index.php?api=org.apache.commons.fileupload.FileUpload
I'm not familiar with the datastore, but as far as I know, Blob types are 'just' wrappers for byte arrays.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
how to retrieve the value from the mongodb using springframe work , can anyone share the code or tell the procedure .
and how to put the values comes from the database store them in a csv file.
Thanks
Navneet
You can use the MongoOperations interface implemented by MongoTemplate to perform all your common database operations, including but not limited to:
List find(Query query,
Class entityClass)
void insert(Collection batchToSave,
Class entityClass)
void remove(Object object)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have many records in to fetch and it could be in millions, I want to use hashmap, but I am not sure if that is ok or what would be the memory implications.
Please suggest
Thanks
VIvek
Welcome to StackExchange. A good place to start would be taking a look at this question:
Difference between HashMap, LinkedHashMap, and SortedMap in Java
HashMap is generally discouraged if you need to grab items in a specific order.
If you need to store 1,000,000+ records, you may want to look into an external database to store the information, as it will be memory consuming to hold all of the records.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
It's the task:
"The page contains ADD button to add new entity on the next page and after SAVE button has been pressed you make again XSLT transformation to get XML with new entity, save it and generate in the response list of entities.
During addition of entity call the JAVA code using xalan extension to validate fields.
PS You can not use jsp"
I don't understand how to do it. Can you help me understand this?
Dmitry, my friend, I know you know Russian. Try this link out - http://www.ibm.com/developerworks/ru/library/x-xjavaforum5/index.html Also, could you please clarify, why do you have to use XSLT?