boolean isGroup = (fetchMode & PDO.FETCH_GROUP) != 0;
boolean isUnique = (fetchMode & PDO.FETCH_UNIQUE) != 0;
if (isGroup)
throw new UnimplementedException("PDO.FETCH_GROUP");
if (isUnique)
throw new UnimplementedException("PDO.FETCH_UNIQUE");
fetchStyle = fetchStyle & (~(PDO.FETCH_GROUP | PDO.FETCH_UNIQUE));
boolean isClasstype = (fetchMode & PDO.FETCH_CLASSTYPE) != 0;
boolean isSerialize = (fetchMode & PDO.FETCH_SERIALIZE) != 0;