Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made string converter do round-trip serialization, added read-only op…

…timization to transaction manager

Signed-off-by: gburgett <gordon.burgett@gmail.com>
  • Loading branch information...
commit a397dc06f9e3571df690b4ae4100e8165affb53a 1 parent 7995943
Gordon authored
2  java/XFlat/src/org/xflatdb/xflat/convert/converters/StringConverters.java
View
@@ -115,7 +115,7 @@ public String convert(Object source) {
@Override
public java.text.DateFormat initialValue(){
//SimpleDateFormat is not thread-safe
- return new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX");
+ return new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSX");
}
};
public static final Converter<String, Date> StringToDateConverter = new Converter<String, Date>(){
6 java/XFlat/src/org/xflatdb/xflat/transaction/ThreadContextTransactionManager.java
View
@@ -601,12 +601,14 @@ public void revert() {
throw new IllegalTransactionStateException("Cannot rollback a completed transaction");
}
- doRevert();
+ if(!this.options.getReadOnly()){
+ doRevert();
+ }
fireEvent(TransactionEventObject.REVERTED);
}
- public void doRevert(){
+ protected void doRevert(){
ThreadContextTransactionManager.this.revert(this.boundEngines, this.id, false);
}
Please sign in to comment.
Something went wrong with that request. Please try again.