|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.BlobRewriter
Manages rewriting of blobs and smallblobs.
Field Summary | |
private static String |
BLOB_REWRITE_ENABMED_MC_PROP
|
private static DMLGenerator |
DMLGENERATOR
|
static String |
DO_BLOB_REWRITE_METHOD_CONTEXT_PROP
|
private static String |
EQUAL_PLACEHOLDER
Duplicate of SQLBuilder.EQUAL_PLACEHOLDER. |
Constructor Summary | |
BlobRewriter()
|
Method Summary | |
private static WTConnection |
getConnection()
|
private static WTPreparedStatement |
getWTPreparedStatement()
|
static boolean |
isRewriteEnabledForCurrentMethodContext()
Returns the current setting for whether blob rewriting is enabled in the current MethodContext. |
(package private) static boolean |
isRewriteNeeded()
Check immediately after using PDSEncoder to decode a blob or smallblob into a Java object. |
(package private) static void |
preBlobDecode()
Always invoke before using PDSEncoder to decode a blob or smallblob that may contain serialized Java objects. |
(package private) static void |
recordEncounteredGoodLvInstance()
Invoked from PDSEncoder when an instance of wt.meta.LocalizedValues from R6.0- or wnc.6.2.2+. |
(package private) static void |
recordEncounteredPjl60LvInstance()
Invoked from PDSEncoder when an instance of wt.meta.LocalizedValues from wnc.6.2.0 and wnc.6.2.1 is encountered during(small)blob decoding. |
(package private) static void |
recordEncounteredWnc620LvInstance()
Invoked from PDSEncoder when an instance of wt.meta.LocalizedValues from wnc.6.2.0 and wnc.6.2.1 is encountered during(small)blob decoding. |
static void |
requestRewriteOfEvolvedBlobbedObject()
Invoke from readOldVersion methods to request that the PDS rewrite the containing(small)blob to the database at the soonest convenience. |
(package private) static Serializable |
rewrite(LobLocator lob_locator,
Serializable serializable,
Persistable containing_object)
Store the serializable as a blob using the lob locator as the pointer to the blob. |
(package private) static Serializable |
rewrite(String attribute_name,
Serializable serializable,
Persistable containing_object)
Store the serializable as a smallblob using the attribute_name to identify the smallblob column. |
(package private) static Serializable |
rewrite(String attribute_name,
String blob_attribute_name,
Serializable serializable,
Persistable containing_object)
Store the serializable as a smallblob using the attribute_name to identify the smallblob column. |
static void |
setRewriteEnabledForCurrentMethodContext(boolean enabled)
Override the value of the db.property wt.pom.blobRewrite.enabled for the current MethodContext. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String BLOB_REWRITE_ENABMED_MC_PROP
public static final String DO_BLOB_REWRITE_METHOD_CONTEXT_PROP
private static final DMLGenerator DMLGENERATOR
private static final String EQUAL_PLACEHOLDER
Constructor Detail |
public BlobRewriter()
Method Detail |
static final void preBlobDecode()
public static final void requestRewriteOfEvolvedBlobbedObject()
static final void recordEncounteredWnc620LvInstance()
static final void recordEncounteredPjl60LvInstance()
static final void recordEncounteredGoodLvInstance()
public static final boolean isRewriteEnabledForCurrentMethodContext()
#setRewriteEnabledForCurrentThread(boolean)
. Thus
callers should not assume that this value is constant.
#setRewriteEnabledForCurrentThread
public static final void setRewriteEnabledForCurrentMethodContext(boolean enabled)
#isRewriteEnabledForCurrentThread
static final boolean isRewriteNeeded()
This method will return true if a serialized object was encountered during deserialization in the PDSEncoder that will be a continued problem unless stored back to the database.
static final Serializable rewrite(LobLocator lob_locator, Serializable serializable, Persistable containing_object) throws DatastoreException
This method creates a new transaction, locks the referencing object, and stores the blob.
DatastoreException
static final Serializable rewrite(String attribute_name, Serializable serializable, Persistable containing_object) throws DatastoreException
This method creates a new transaction, locks the perstable object, and stores the smallblob.
DatastoreException
static final Serializable rewrite(String attribute_name, String blob_attribute_name, Serializable serializable, Persistable containing_object) throws DatastoreException
This method creates a new transaction, locks the perstable object, and stores the smallblob.
DatastoreException
private static final WTConnection getConnection() throws DatastoreException
DatastoreException
private static final WTPreparedStatement getWTPreparedStatement()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |