PerTableSerializableIdSourceKey(IdSourceKey key) { columnName = key.getColumnName(); columnValue = key.getColumnValue(); }
private String createId(IdSourceKey key) { StringBuilder builder = new StringBuilder( key.getTable() ); builder.append( ":" ); builder.append( key.getColumnName() ); builder.append( ":" ); builder.append( key.getColumnValue() ); return builder.toString(); }
@Override public void writeObject(ObjectOutput output, IdSourceKey key) throws IOException { output.writeInt( VERSION ); output.writeUTF( key.getTable() ); //Wrapping in String[] and Object[] respectively as this used to be the format, //to maintain compatibility with Hibernate OGM 5.0 output.writeObject( new String[] { key.getColumnName() } ); output.writeObject( new Object[] { key.getColumnValue() } ); }
@Override public void writeObject(ObjectOutput output, IdSourceKey key) throws IOException { output.writeInt( VERSION ); output.writeUTF( key.getTable() ); //Wrapping in String[] and Object[] respectively as this used to be the format, //to maintain compatibility with Hibernate OGM 5.0 output.writeObject( new String[] { key.getColumnName() } ); output.writeObject( new Object[] { key.getColumnValue() } ); }
public static PersistentIdSourceKey fromIdSourceKey(IdSourceKey key) { return new PersistentIdSourceKey( key.getColumnName(), key.getColumnValue() ); }
private static Document prepareIdObject(IdSourceKey key) { return prepareIdObject( key.getColumnName(), key.getColumnValue() ); }
SerializableIdSourceKey(IdSourceKey key) { columnName = key.getColumnName(); columnValue = key.getColumnValue(); table = key.getTable(); }
private static Document prepareIdObject(IdSourceKey key) { return prepareIdObject( key.getColumnName(), key.getColumnValue() ); }
public static PersistentIdSourceKey fromIdSourceKey(IdSourceKey key) { return new PersistentIdSourceKey( key.getColumnName(), key.getColumnValue() ); }