Class OldPropertyJDBC
java.lang.Object
de.hybris.platform.persistence.property.OldPropertyJDBC
this class reads and writes old style (dump) properties via JDBC.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcheckDumpData(int typeCode, String propertyName, String oldPropTableName) static EJBPropertyCachecreateProperties(PK itemPK, long timestamp, String oldPropTableName) static intfillValueStatement(PreparedStatement pstmt, int typeCode, Object value, int stringIdx, int blobIdx) static EJBPropertyCachegetProperties(PK itemPK, long timestamp, String oldPropTableName) static intgetValueTypeCode(Object value) static voidmoveDumpData(int typeCode, String propertyName, String oldPropTableName, OldPropertyJDBC.DumpPropertyConverter conv) static voidpatchPropertyNamesAfterUpdate(String propsTableName) static EJBPropertyreadOldProperty(ResultSet rs, PK itemPK) static voidremoveAllPropertyData(PK itemPK, String tableName) static voidremoveAllPropertyData(Collection<PK> itemTypePKs, String propertyName, String tableName) static voidupdatePropertyTypePKs(PK itemPK, PK typePK, String oldPropTableName) changes all property data rows of one item to the new type pk.static voidwriteOldProperties(EJBPropertyCache oldPropCache, PK itemPK, PK typePK, String tableName)
-
Field Details
-
LOG_TOPIC
- See Also:
-
ITEMPK
- See Also:
-
ITEMTYPEPK
- See Also:
-
NAME
- See Also:
-
REALNAME
- See Also:
-
LANGPK
- See Also:
-
TYPE1
- See Also:
-
VALUESTRING1
- See Also:
-
VALUE1
- See Also:
-
NULL
public static final int NULL- See Also:
-
STRING
public static final int STRING- See Also:
-
BOOLEAN
public static final int BOOLEAN- See Also:
-
DOUBLE
public static final int DOUBLE- See Also:
-
LONG
public static final int LONG- See Also:
-
DATE
public static final int DATE- See Also:
-
INTEGER
public static final int INTEGER- See Also:
-
SERIALIZABLE
public static final int SERIALIZABLE- See Also:
-
STRING_TRUNCATED
public static final int STRING_TRUNCATED- See Also:
-
ITEM
public static final int ITEM- See Also:
-
CLASS
public static final int CLASS- See Also:
-
-
Constructor Details
-
OldPropertyJDBC
public OldPropertyJDBC()
-
-
Method Details
-
createProperties
-
getProperties
-
updatePropertyTypePKs
changes all property data rows of one item to the new type pk. this will not invalidate any of its property caches - so make sure they are reloaded when the type has changed -
writeOldProperties
public static void writeOldProperties(EJBPropertyCache oldPropCache, PK itemPK, PK typePK, String tableName) -
removeAllPropertyData
-
removeAllPropertyData
public static void removeAllPropertyData(Collection<PK> itemTypePKs, String propertyName, String tableName) -
patchPropertyNamesAfterUpdate
-
moveDumpData
public static void moveDumpData(int typeCode, String propertyName, String oldPropTableName, OldPropertyJDBC.DumpPropertyConverter conv) -
checkDumpData
-
readOldProperty
- Throws:
SQLException
-
getValueTypeCode
-
fillValueStatement
public static int fillValueStatement(PreparedStatement pstmt, int typeCode, Object value, int stringIdx, int blobIdx) throws SQLException - Returns:
- the actual value typecode - it may change for some reasons
- Throws:
SQLException
-