public Data(final DataInputExtended input) throws IOException { this.className = input.readUTF(); this.resolveState = input.readUTF(); // TODO: make ResolveState // encodable? this.oid = input.readEncodable(Oid.class); initialized(); }
public SqlOid(final DataInputExtended input) throws IOException { this.className = input.readUTF(); this.primaryKey = input.readSerializable(PrimaryKey.class); this.newPrimaryKey = input.readSerializable(PrimaryKey.class); this.previous = input.readEncodable(SqlOid.class); this.state = input.readSerializable(State.class); initialized(); }
@Override public byte readByte() throws IOException { return underlying.readByte(); }
public CollectionDataImpl(final DataInputExtended input) throws IOException { this.collectionType = input.readUTF(); this.elementType = input.readUTF(); this.oid = input.readEncodable(Oid.class); this.version = input.readEncodable(Version.class); this.hasAllElements = input.readBoolean(); this.elements = input.readEncodables(ReferenceData.class); initialized(); }
public PersistenceQueryFindUsingApplibQuerySerializable(final DataInputExtended input) throws IOException { super(input); this.query = input.readSerializable(Query.class); this.cardinality = QueryCardinality.valueOf(input.readUTF()); initialized(); }
public ObjectData(final DataInputExtended input) throws IOException { super(input); final int size = input.readInt(); for (int i = 0; i < size; i++) { final String key = input.readUTF(); final As as = As.readFrom(input); if (as == As.OBJECT) { final Data object = input.readEncodable(Data.class); fields.put(key, object); } else if (as == As.NULL) { fields.put(key, NO_ENTRY); } else { final String value = input.readUTF(); fields.put(key, value); } } initialized(); }
@Override public String readUTF() throws IOException { return underlying.readUTF(); }
public ExecuteServerActionRequest(final DataInputExtended input) throws IOException { super(input); this.actionType = ActionType.valueOf(input.readUTF()); this.actionIdentifier = input.readUTF(); this.target = input.readEncodable(IdentityData.class); this.parameters = input.readEncodables(Data.class); initialized(); }
@Override public <T> T readObject(final DataInputExtended input, final Class<T> cls) throws IOException { // not quite symmetrical with write; the byte has already been // read from stream // to determine which As instance to delegate to return input.readEncodable(cls); } },
public ExecuteServerActionResponse(final DataInputExtended input) throws IOException { this.result = input.readEncodable(Data.class); this.updatesData = input.readEncodables(ObjectData.class); this.disposedData = input.readEncodables(ReferenceData.class); this.persistedTarget = input.readEncodable(ObjectData.class); this.persistedParameters = input.readEncodables(ObjectData.class); this.messages.addAll(Arrays.asList(input.readUTFs())); this.warnings.addAll(Arrays.asList(input.readUTFs())); initialized(); }
public RequestAbstract(final DataInputExtended input) throws IOException { id = input.readInt(); session = input.readEncodable(AuthenticationSession.class); initialized(); }
public MultiUserExplorationSession(final DataInputExtended input) throws IOException { super(input); sessions.addAll(Arrays.asList(input.readEncodables(SimpleSession.class))); selectedSession = input.readEncodable(SimpleSession.class); initialized(); }
@Override public <T> T readObject(final DataInputExtended input, final Class<T> cls) throws IOException { // not quite symmetrical with write; the byte has already been // read from stream // to determine which As instance to delegate to return input.readSerializable(cls); } };
@Override public <T> T[] readEncodables(final Class<T> encodableType) throws IOException { return underlying.readEncodables(encodableType); }
public SerialOid(final DataInputExtended input) throws IOException { this.serialNo = input.readLong(); this.state = input.readBoolean() ? State.TRANSIENT : State.PERSISTENT; final boolean hasPrevious = input.readBoolean(); if (hasPrevious) { final long previousSerialNo = input.readLong(); final State previousState = input.readBoolean() ? State.TRANSIENT : State.PERSISTENT; this.previous = new SerialOid(previousSerialNo, previousState); } initialized(); }
public ExecuteClientActionRequest(final DataInputExtended input) throws IOException { super(input); this.data = input.readEncodables(ReferenceData.class); this.types = input.readInts(); initialized(); }
@Override public int readInt() throws IOException { return underlying.readInt(); }
@Override public long readLong() throws IOException { return underlying.readLong(); }
@Override public boolean readBoolean() throws IOException { return underlying.readBoolean(); }