Class OldPropertyJDBC
- java.lang.Object
-
- de.hybris.platform.persistence.property.OldPropertyJDBC
-
public final class OldPropertyJDBC extends java.lang.Object
this class reads and writes old style (dump) properties via JDBC.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
OldPropertyJDBC.DumpPropertyConverter
-
Field Summary
Fields Modifier and Type Field Description static int
BOOLEAN
static int
CLASS
static int
DATE
static int
DOUBLE
static int
INTEGER
static int
ITEM
static java.lang.String
ITEMPK
static java.lang.String
ITEMTYPEPK
static java.lang.String
LANGPK
static java.lang.String
LOG_TOPIC
static int
LONG
static java.lang.String
NAME
static int
NULL
static java.lang.String
REALNAME
static int
SERIALIZABLE
static int
STRING
static int
STRING_TRUNCATED
static java.lang.String
TYPE1
static java.lang.String
VALUE1
static java.lang.String
VALUESTRING1
-
Constructor Summary
Constructors Constructor Description OldPropertyJDBC()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
checkDumpData(int typeCode, java.lang.String propertyName, java.lang.String oldPropTableName)
static EJBPropertyCache
createProperties(PK itemPK, long timestamp, java.lang.String oldPropTableName)
static int
fillValueStatement(java.sql.PreparedStatement pstmt, int typeCode, java.lang.Object value, int stringIdx, int blobIdx)
static EJBPropertyCache
getProperties(PK itemPK, long timestamp, java.lang.String oldPropTableName)
static int
getValueTypeCode(java.lang.Object value)
static void
moveDumpData(int typeCode, java.lang.String propertyName, java.lang.String oldPropTableName, OldPropertyJDBC.DumpPropertyConverter conv)
static void
patchPropertyNamesAfterUpdate(java.lang.String propsTableName)
static EJBProperty
readOldProperty(java.sql.ResultSet rs, PK itemPK)
static void
removeAllPropertyData(PK itemPK, java.lang.String tableName)
static void
removeAllPropertyData(java.util.Collection<PK> itemTypePKs, java.lang.String propertyName, java.lang.String tableName)
static void
updatePropertyTypePKs(PK itemPK, PK typePK, java.lang.String oldPropTableName)
changes all property data rows of one item to the new type pk.static void
writeOldProperties(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
-
-