code: protected Collection<String> getConstraintsAddingScripts()
     {
        Collection<String> scripts = new ArrayList<String>();
  
        String constraintName = "JCR_PK_" + valueTableSuffix + " PRIMARY KEY(ID)";
        scripts.add("ALTER TABLE " + valueTableName + " ADD CONSTRAINT " + constraintName);
  
        constraintName = "JCR_PK_" + itemTableSuffix + " PRIMARY KEY(ID)";
        scripts.add("ALTER TABLE " + itemTableName + " ADD CONSTRAINT " + constraintName);
  
        constraintName =
           "JCR_FK_" + valueTableSuffix + "_PROPERTY FOREIGN KEY(PROPERTY_ID) REFERENCES " + itemTableName + "(ID)";
        scripts.add("ALTER TABLE " + valueTableName + " ADD CONSTRAINT " + constraintName);
  
        constraintName = "JCR_PK_" + refTableSuffix + " PRIMARY KEY(NODE_ID, PROPERTY_ID, ORDER_NUM)";
        scripts.add("ALTER TABLE " + refTableName + " ADD CONSTRAINT " + constraintName);
  
        return scripts;
     }
docs: R{@inheritDoc}