public static IsolationLevel fromBytes(byte [] bytes) { return IsolationLevel.fromByte(bytes[0]); }
/** * @return The isolation level of this query. * If no isolation level was set for this query object, * then it returns READ_COMMITTED. * @return The IsolationLevel for this query */ public IsolationLevel getIsolationLevel() { byte[] attr = getAttribute(ISOLATION_LEVEL); return attr == null ? IsolationLevel.READ_COMMITTED : IsolationLevel.fromBytes(attr); }
public byte toByte() { return (byte)this.ordinal(); }
/** * Set the isolation level for this query. If the * isolation level is set to READ_UNCOMMITTED, then * this query will return data from committed and * uncommitted transactions. If the isolation level * is set to READ_COMMITTED, then this query will return * data from committed transactions only. If a isolation * level is not explicitly set on a Query, then it * is assumed to be READ_COMMITTED. * @param level IsolationLevel for this query */ public Query setIsolationLevel(IsolationLevel level) { setAttribute(ISOLATION_LEVEL, level.toBytes()); return this; }
public byte [] toBytes() { return new byte [] { toByte() }; }
public static IsolationLevel fromByte(byte vbyte) { return IsolationLevel.values()[vbyte]; } }
/** * Set the isolation level for this query. If the * isolation level is set to READ_UNCOMMITTED, then * this query will return data from committed and * uncommitted transactions. If the isolation level * is set to READ_COMMITTED, then this query will return * data from committed transactions only. If a isolation * level is not explicitly set on a Query, then it * is assumed to be READ_COMMITTED. * @param level IsolationLevel for this query */ public Query setIsolationLevel(IsolationLevel level) { setAttribute(ISOLATION_LEVEL, level.toBytes()); return this; }
public byte [] toBytes() { return new byte [] { toByte() }; }
public static IsolationLevel fromByte(byte vbyte) { return IsolationLevel.values()[vbyte]; } }
/** * @return The isolation level of this query. * If no isolation level was set for this query object, * then it returns READ_COMMITTED. * @return The IsolationLevel for this query */ public IsolationLevel getIsolationLevel() { byte[] attr = getAttribute(ISOLATION_LEVEL); return attr == null ? IsolationLevel.READ_COMMITTED : IsolationLevel.fromBytes(attr); }
public void setIsolationLevel(IsolationLevel level) { setAttribute(ISOLATION_LEVEL, level.toBytes()); } /*
public byte toByte() { return (byte)this.ordinal(); }
public byte [] toBytes() { return new byte [] { toByte() }; }
public static IsolationLevel fromByte(byte vbyte) { return IsolationLevel.values()[vbyte]; } }
public static IsolationLevel fromBytes(byte [] bytes) { return IsolationLevel.fromByte(bytes[0]); }
public IsolationLevel getIsolationLevel() { byte[] attr = getAttribute(ISOLATION_LEVEL); return attr == null ? IsolationLevel.READ_COMMITTED : IsolationLevel.fromBytes(attr); } }
/** * Set the isolation level for this query. If the * isolation level is set to READ_UNCOMMITTED, then * this query will return data from committed and * uncommitted transactions. If the isolation level * is set to READ_COMMITTED, then this query will return * data from committed transactions only. If a isolation * level is not explicitly set on a Query, then it * is assumed to be READ_COMMITTED. * @param level IsolationLevel for this query */ public Query setIsolationLevel(IsolationLevel level) { setAttribute(ISOLATION_LEVEL, level.toBytes()); return this; }
public byte toByte() { return (byte)this.ordinal(); }
public byte [] toBytes() { return new byte [] { toByte() }; }
public static IsolationLevel fromByte(byte vbyte) { return IsolationLevel.values()[vbyte]; } }