Class OldPropertyJDBC


  • public final class OldPropertyJDBC
    extends java.lang.Object
    this class reads and writes old style (dump) properties via JDBC.
    • Constructor Detail

      • OldPropertyJDBC

        public OldPropertyJDBC()
    • 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)
      • 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