Class OldPropertyJDBC
- java.lang.Object
-
- de.hybris.platform.persistence.property.OldPropertyJDBC
-
public final class OldPropertyJDBC extends java.lang.Objectthis class reads and writes old style (dump) properties via JDBC.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOldPropertyJDBC.DumpPropertyConverter
-
Field Summary
Fields Modifier and Type Field Description static intBOOLEANstatic intCLASSstatic intDATEstatic intDOUBLEstatic intINTEGERstatic intITEMstatic java.lang.StringITEMPKstatic java.lang.StringITEMTYPEPKstatic java.lang.StringLANGPKstatic java.lang.StringLOG_TOPICstatic intLONGstatic java.lang.StringNAMEstatic intNULLstatic java.lang.StringREALNAMEstatic intSERIALIZABLEstatic intSTRINGstatic intSTRING_TRUNCATEDstatic java.lang.StringTYPE1static java.lang.StringVALUE1static java.lang.StringVALUESTRING1
-
Constructor Summary
Constructors Constructor Description OldPropertyJDBC()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcheckDumpData(int typeCode, java.lang.String propertyName, java.lang.String oldPropTableName)static EJBPropertyCachecreateProperties(PK itemPK, long timestamp, java.lang.String oldPropTableName)static intfillValueStatement(java.sql.PreparedStatement pstmt, int typeCode, java.lang.Object value, int stringIdx, int blobIdx)static EJBPropertyCachegetProperties(PK itemPK, long timestamp, java.lang.String oldPropTableName)static intgetValueTypeCode(java.lang.Object value)static voidmoveDumpData(int typeCode, java.lang.String propertyName, java.lang.String oldPropTableName, OldPropertyJDBC.DumpPropertyConverter conv)static voidpatchPropertyNamesAfterUpdate(java.lang.String propsTableName)static EJBPropertyreadOldProperty(java.sql.ResultSet rs, PK itemPK)static voidremoveAllPropertyData(PK itemPK, java.lang.String tableName)static voidremoveAllPropertyData(java.util.Collection<PK> itemTypePKs, java.lang.String propertyName, java.lang.String tableName)static voidupdatePropertyTypePKs(PK itemPK, PK typePK, java.lang.String oldPropTableName)changes all property data rows of one item to the new type pk.static voidwriteOldProperties(EJBPropertyCache oldPropCache, PK itemPK, PK typePK, java.lang.String tableName)
-
-
-
Field Detail
-
LOG_TOPIC
public static final java.lang.String LOG_TOPIC
- See Also:
- Constant Field Values
-
ITEMPK
public static final java.lang.String ITEMPK
- See Also:
- Constant Field Values
-
ITEMTYPEPK
public static final java.lang.String ITEMTYPEPK
- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
REALNAME
public static final java.lang.String REALNAME
- See Also:
- Constant Field Values
-
LANGPK
public static final java.lang.String LANGPK
- See Also:
- Constant Field Values
-
TYPE1
public static final java.lang.String TYPE1
- See Also:
- Constant Field Values
-
VALUESTRING1
public static final java.lang.String VALUESTRING1
- See Also:
- Constant Field Values
-
VALUE1
public static final java.lang.String VALUE1
- See Also:
- Constant Field Values
-
NULL
public static final int NULL
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
BOOLEAN
public static final int BOOLEAN
- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
-
LONG
public static final int LONG
- See Also:
- Constant Field Values
-
DATE
public static final int DATE
- See Also:
- Constant Field Values
-
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
-
SERIALIZABLE
public static final int SERIALIZABLE
- See Also:
- Constant Field Values
-
STRING_TRUNCATED
public static final int STRING_TRUNCATED
- See Also:
- Constant Field Values
-
ITEM
public static final int ITEM
- See Also:
- Constant Field Values
-
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
createProperties
public static EJBPropertyCache createProperties(PK itemPK, long timestamp, java.lang.String oldPropTableName)
-
getProperties
public static EJBPropertyCache getProperties(PK itemPK, long timestamp, java.lang.String oldPropTableName)
-
updatePropertyTypePKs
public static void updatePropertyTypePKs(PK itemPK, PK typePK, java.lang.String oldPropTableName)
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, java.lang.String tableName)
-
removeAllPropertyData
public static void removeAllPropertyData(PK itemPK, java.lang.String tableName)
-
removeAllPropertyData
public static void removeAllPropertyData(java.util.Collection<PK> itemTypePKs, java.lang.String propertyName, java.lang.String tableName)
-
patchPropertyNamesAfterUpdate
public static void patchPropertyNamesAfterUpdate(java.lang.String propsTableName)
-
moveDumpData
public static void moveDumpData(int typeCode, java.lang.String propertyName, java.lang.String oldPropTableName, OldPropertyJDBC.DumpPropertyConverter conv)
-
checkDumpData
public static int checkDumpData(int typeCode, java.lang.String propertyName, java.lang.String oldPropTableName)
-
readOldProperty
public static EJBProperty readOldProperty(java.sql.ResultSet rs, PK itemPK) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getValueTypeCode
public static int getValueTypeCode(java.lang.Object value)
-
fillValueStatement
public static int fillValueStatement(java.sql.PreparedStatement pstmt, int typeCode, java.lang.Object value, int stringIdx, int blobIdx) throws java.sql.SQLException- Returns:
- the actual value typecode - it may change for some reasons
- Throws:
java.sql.SQLException
-
-